Change the primary domain document root on cPanel 11

This is how to make manual changes to an Apache virtual host configuration file.

Edit /var/cpanel/userdata/USERNAME/DOMAIN.COM and make changes. delete the .cache file if present.

run these scripts:

/scripts/updateuserdatacache
/scripts/rebuildhttpdconf

restart apache.

Posted: 11/05/2014