• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question Changing Document Root has no effect (ignored)

Johannes Kingma

Basic Pleskian
Changing the Document Root in Hosting Settings seems to have no effect. The files hosted still sit at the old location.

How can we succesfully change the Document Root for a domain?
 
Changing the Root directory does not touch the files, it will only tell Apache/Nginx to use that folder as Root directory.
If you need to move files you will need to do it manually
 
When the files and folders already are in the new location there shouldn't be a reason to move any files. But files located at the new location are ignored but the files in the previous are still used : changing the root directory has no effect for us.
 
Check if you have "Apache restart interval" enabled if yes you need to wait that time until it takes effect.
If not then check for any HTACCESS or custom config that does overwrite it
 
Or if you're impatient:
  1. Log into Plesk as admin.
  2. Go to Tools & Settings > Services Management.
  3. Click Restart the service icon next to Web Server (Apache)
Then refresh your browser to see if your document root update is properly updated.
 
Back
Top