Skip to content

Instantly share code, notes, and snippets.

@DerekMarcinyshyn
Created June 4, 2014 05:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DerekMarcinyshyn/a36469fbbf586fb8c356 to your computer and use it in GitHub Desktop.
Save DerekMarcinyshyn/a36469fbbf586fb8c356 to your computer and use it in GitHub Desktop.
WHM change web root
# 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