Change a sites docroot

From Cheatsheet
Revision as of 23:27, 8 December 2016 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Edit their file in /var/cpanel/userdata/.

vim /var/cpanel/userdata/proof/proof.shooltz.net

Change the docroot, and then run the following.

/scripts/updateuserdomains
/scripts/updateuserdatacache
cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak.before.duplicate.documentroot
/scripts/rebuildhttpdconf
/etc/init.d/httpd restart