I have tried both the package manager upgrade and a manual upgrade to move to the latest ownCloud version (9). Both methods end up with the same result; the page
http://localhost/owncloud no longer shows the login page. Instead, I get a
404 Not Found error page. It complains:
The requested URL /var/www/owncloud/index.php was not found on this server.
but this file still exists, as shown here:
$ ll /var/www/owncloud/index.php -rw-r--r-- 1 www-data www-data 2026 March 8 08:54 /var/www/owncloud/index.php
That, I do not understand but I will admit I know very little about php.
If I restore my whole system from a backup, ownCloud 8 works fine again. I tried a manual upgrade (again) from this state, and the result is the same.
For completeness, here are the steps I used in my manual upgrade:
sudo -u www-data php /var/www/owncloud/occ maintenance:mode --on tar xjf owncloud-9.0.0.tar.bz2 sudo service apache2 stop sudo mv /var/www/owncloud /var/www/owncloud-old sudo cp -avr owncloud /var/www sudo cp backups/config.php /var/www/owncloud/config/config.php sudo service apache2 start sudo chown -R www-data:www-data /var/www/owncloud sudo -u www-data /var/www/owncloud/occ upgrade sudo -u www-data php /var/www/owncloud/occ maintenance:mode --off
error.log does not show a problem. It could be a configuration issue but I do not possess the expertise to understand why OC 8 and OC 9 would behave differently.
Alias /owncloud "/var/www/owncloud/" <Directory "/var/www/owncloud"> Options +FollowSymLinks AllowOverride All <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/owncloud SetEnv HTTP_HOME /var/www/owncloud </Directory> <Directory "/var/www/owncloud/data/"> # just in case if .htaccess gets disabled Require all denied </Directory>
Based on fkraiem's comments, how can I make sure/know that my server is not looking for
/var/www/var/www/owncloud/index.php ? EDIT: After doing the following in a virtual machine, the problem persists which probably rules this out:
cd /var/www sudo mkdir var sudo mkdir var/www sudo cp -avr owncloud var/www
Is this a php issue, after all? How do I start troubleshooting based on the symptoms of apache saying that a file cannot be found, but exists?