I have a debian x64 server (8.5) and was running OC 9.0
I tried to update to OC 9.1 on the way I was used to: apt-get update followed by apt-get upgrade. I disabled the maintenance mode in config.php and normally I coud update the database from my web server. Now OC says it is too big and I have to use the command line updater. That's where I am stuck!
I found out my http user is root (really bad I know, but it's not the point right now), so my command would look like "/
bin/su root occ upgrade" However, when I do this in the installation folder of my owncloud (it's default, /var/www/owncloud ) I get:
occ: line 2: ?php: No such file or directory occ: line 3: /bin: Is a directory occ: line 4: syntax error near unexpected token `(' occ: line 4: ` * Copyright (c) 2013 Thomas Müller <.... >'
And when I do
/bin/su root php occ upgrade
/usr/bin/php: /usr/bin/php: cannot execute binary file
Also when I locate the php directory or use an other command then upgrade (ex.
/bin/su root /usr/bin/php occ status) I get the same message.
I don't understand how to use the occ command on an other way. Can someone help?
---- edit ----
The owner of my config.php file seems to be www-data, so I got that far I typed:
/bin/su www-data php occ status
This gives me: This account is currently not available. According to this topic it should stay this way. What's the correct way of using occ command?
I tried to enable the login anyway, but I keep getting 'cannot execute binary file'.