UK Web Hosting LiveChat Software

Why Document root changes for a domain

0 votes
asked 5 years ago in Cpanel Issues & Tutorials by whukadmin (5,940 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


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/, so whenever we change the document root for a domain that time make sure it will change under both the files.
answered 5 years ago by whukadmin (5,940 points)

Related questions