0 votes
asked by (6.1k points)

1 Answer

0 votes
On Linux cPanel server document root for domain is set under

/etc/httpd/conf/httpd.conf as well as under

/var/cpanel/userdata/cpanel_username/domainname.com

and if ssl is installed on domain then you need check ssl entry also.

/var/cpanel/userdata/cpanel_username/domain.com_SSL In all files document root should be same. Cpanel keep its own records for the account's documetroot.

If in both files document root is different then after /script/upcp document root will be changed and  taken from file /var/cpanel/userdata/cpanel_username/domainname.com, so whenever we change the document root for a domain that time make sure it will change under both the files.
answered by (6.1k points)
...