Initial setup failed

  • CentOS 7, PHP 7.4.33
  • ownCloud installed via CentOS-Package-Manager

The call of

sudo -u ./occ mainetance:install …

or all the other “occ” commands leads to this error:

PHP Parse error: syntax error, unexpected ‘{’ in /var/www/html/owncloud/console.php on line 66


maybe the PHP version running on the terminal is not the version ownCloud is expecting? I think this can be checked by running:

/usr/bin/env php -v
1 Like


yeah, you are so right. There was an wrong symbolic link. As soon as you do it right, everything works. I didn’t see that at first :face_with_open_eyes_and_hand_over_mouth:


1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.