Are you interested for monthly server support with Unlimited tickets, 24×7 monitoring, Security Audit and lot more ? please check our Monthly server support plans

Follow the steps below for changing the document root of a domain.

Step 1.

Login to the server via ssh

Step 2.

Edit the following file from the server,


Step 3.

Look for the following line in the file,


Modify the location as per your need and save the file

Step 4.

Rebuild the apache configuration using the following command,


Step 5.

Restart the httpd service using the command below,

service httpd restart

Now it will be changed..
Need our help to fix the issue ? Submit Support Ticket Now


[button size=”large” color=”green” title=”Server Administration Services from Stack Supports” link=””]View Server Administration Packages[/button]