Day: January 8, 2020

To change document root of an account in cPanel

1. SSH into the server and go to # /var/cpanel/userdata/USERNAME/DOMAIN.COM 2. Edit the file replacing the “username” with your cPanel account username and “domain.com” with your primary domain name and “subdir” with your new directory. Find the following two lines in this file: documentroot: /home/username/public_html path: /home/username/public_html/cgi-bin 3. Now, look for Text Documentroot and edit … Continue reading To change document root of an account in cPanel