To solve the problem, log in to SSH as root and edit the httpd.conf file with nano or a similar editor. Here is an example of what I would run:
Code:
nano /etc/httpd/conf/httpd.conf
Then, find the section of the file named DocumentRoot. If you are using nano, push CTRL+W and enter 'DocumentRoot' to find it. Once you have found it, change it accordingly. For example:
Code:
DocumentRoot = "/home/myuser/mydomain.com"
Then save the file - in nano, push CTRL+X, push the y key, then push the ENTER key.
Once your configuration file as been changed, you will need to restart httpd for the changes to take effect. Run the following code to restart httpd:
Code:
service httpd restart
Now you're done!