Created
June 4, 2014 05:42
-
-
Save DerekMarcinyshyn/a36469fbbf586fb8c356 to your computer and use it in GitHub Desktop.
WHM change web root
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To edit DocumentRoot go to /var/cpanel/userdata/{USERNAME} | |
# Select the domain file to edit | |
# You will see | |
documentroot: /home/{USERNAME}/public_html | |
# also change | |
scriptalias: | |
path: /home/{USERNAME}/public_html/cgi-bin | |
url: /cgi-bin/ | |
# Change both of those and save | |
# Rebuild Apache | |
# Restart Apache | |
cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak100704 | |
/scripts/rebuildhttpdconf | |
/etc/init.d/httpd restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment