I would like to move the Nextcloud webpage folder from /var/www/nextcoud to var/www/html/nextcloud.
I moved the folder, updated the “sites-available”, and when I go to the web browser page, Nextcloud is asking to configure a new database.
How do I move the webpage folder and keep the same database?
Note: Installed via Snap.
I moved the webpage folder, and now Nextcloud is asking to create a new Admin account and a new database. Nextcloud is acting like a new installation.
Looks l if you move the webpage folder, this also moves the data folder, and there are many threads how moving the data folder causes critical problems.
I know NextCloud knows where the database is because when I try to create a new admin account, Nextcloud produces the error message the admin username already exists:
Sorry i was too quick in answering your question.
Of course datadirectory has nothing to do with that and it’s also a bad idea to put the datadirectory under the webroot directory. Better would be a location somewhere out of it.
DocumentRoot is now /var/www/html, isn’t it?
What was is before?