Skip to main content

Change the way Primary Domain Document Root works

Comments

2 comments

  • quietFinn
    You must edit the file: /var/cpanel/userdata/USERNAME/DOMAIN.COM and change the line: documentroot: /home/USERNAME/public_html to documentroot: /home/USERNAME/public_html/DOMAIN.COM and then run: /scripts/rebuildhttpdconf service httpd restart
    0
  • cPanelMichael
    Hello :) You will need to manually modify the document root of the primary domain name associated with the cPanel account using the instructions in the previous post. The path to the file to edit is: /var/cpanel/userdata/$username/$domain.com
    Thank you.
    0

Please sign in to leave a comment.