:: What’s is cPanel
cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site.
:: How to Change Main Domain DocumentRoot in cPanel
+ Change documentroot

vi /var/cpanel/userdata/USERNAME/DOMAINNAME.TLD

Replace USERNAME and DOMAINNAME.TLD with your info.
Change on this line:

documentroot: /home/USERNAME/public_html

+ Rebuild apache.conf and restarting Apache

/scripts/rebuildhttpdconf
/etc/init.d/httpd restart

:: Links
+ Google
+ ServeInt

Hi, I’m Sysadmin.ID

One Comment

Leave a Reply

Your email address will not be published. Required fields are marked *