Last active
August 29, 2015 14:10
-
-
Save marlonassuncao/5384da623a6f8ae344d7 to your computer and use it in GitHub Desktop.
Change domain root folder on cPanel.
This file contains 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
# Open config by user. | |
sudo nano /var/cpanel/userdata/USERNAME/DOMAINNAME.COM | |
# Change root directory. | |
documentroot: /home/USERNAME/public_html/NEW_PATH | |
# Rebuild and restart server. | |
/scripts/rebuildhttpdconf | |
service httpd restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment