Change a sites docroot

From Cheatsheet
Revision as of 23:26, 8 December 2016 by Admin (talk | contribs) (Created page with " 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 c...")
(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
cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak.before.duplicate.documentroot
/scripts/rebuildhttpdconf
/etc/init.d/httpd restart