When I upgraded from owncloud 9 to Nextcloud 11, my web interface was broken and I could not login to Nextcloud with the web interface. I was able to sync files to the server. I then upgraded to Nextcloud 12 through the command line interface. I still could not login to the web interface. The cause of the problem was that I moved the location of the webserver files from /var/www/owncloud to /var/www/nextcloud. I made the appropriate changes to my apache “sites-enabled” configuration file to redirect to the new location at /var/www/nextcloud. I was recieving “Internal Server” errors and the web interface was broken and unusable. I fixed the problem by following this thread https://help.nextcloud.com/t/solved-nc12-internal-server-error-after-login/13256 on deleting the data the in the database table oc_filecache. My steps were to:
- stop the apache2 webserver
- delete everything in “oc_filecache”
- restart the webserver
I used phpmyadmin to remove the contents from “oc_filecache”. I think “oc_filecache” contained information pointing to the old location of my files in the owncloud directory instead of the new nextcloud directory. Below are the steps to delete the information in “oc_filecache”.
- Login to phpmyadmin.
- Select your “nextcloud” database. Your database may have a different name that “nextcloud”
- Select the table “oc_filecache” listed on the far left of the page
- Select “Operations” from the tab at the top of the page.
- Select “Empty the table (TRUNCATE)”
- Select “Ok” to confirm you will be deleting the data in “oc_filecache”.