How to change DocumentRoot?

Avatar
  • Answered
By default, the DocumentRoot is in the folder ~/public_html/. You can normally change this value in apache's httpd.conf file. Is there a way I can change this property without contacting support? I have a dedicated server.

Thank you.
Avatar
jamesr
Thank you for your question LennyBJ! You can change the document root of your cPanel accounts. You will need root access. The instructions to change the doc root are at the following link. Changing the document root with ROOT access We don't recommend editing this your self because its a root access change. Hope this helps. Best Regards, James R