• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

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.
 
i have tried both above, double checked everywhere to , i want to poin it to httpdocs/public, i have checked apache.nginx config files and also plesk conf d vhosts as well where this value is already overwrittern by plesk configuration. still do not work as expected. i have restarated apache and nginx too but it doesnt seem to take any effect. can someone help me what i can do to make it work. and my apache internval is set to 0
 
Back
Top