Internal Server Error after trying to move to new root directory

Nextcloud version: 17.0.1
Operating system and version: Ubuntu 18.04
Apache or nginx version: Apache 2.4.29
PHP version: 7.2.24

The issue you are facing:
I host two web servers with two different domains on the same ip and server. I was previously hosting nextcloud under I want to change the root location to I’ve tried both copying the /nextcloud folder to the site2 root directory and redownloading and following the steps to install nextcloud fresh in the new directory. Both ways allow me to connect to but I get an “Internal Server Error” every time. First of all how can I tell what is causing the error? Secondly what is the proper way to do what I want to do. Keeping my data would be nice but I would be ok downloading the old data and uploading it to the new website.

Is this the first time you’ve seen this error? (Y/N):


The output of your Nextcloud log in Admin > Logging:

I don’t know where the log is. /var/log/nextcloud.log is empty

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

There is no config.php in /var/www/website/nextcloud

The output of your Apache/nginx/system log in /var/log/____:

Error log:

Access log:

Other Vhost log