cPanel : Change Main Domain DocumentRoot

18 sec read

:: 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

How to add NAT iptables…

Learn how to enhance your server's security with Config Server Firewall (CSF), a powerful and free firewall for Linux. This guide will walk you...
Sysadmin.ID
32 sec read

Fix AWStats on WHM/cPanel with…

Discover how to fix AWStats issues on WHM/cPanel with NGINX in just a few easy steps, ensuring accurate web statistics for your server. Follow...
Sysadmin.ID
24 sec read

Can’t open freshclam.log in append…

Encountering an error with ClamAV's freshclam.log? Learn how to resolve permission issues on your cPanel server by adjusting file ownership and user settings for...
Sysadmin.ID
33 sec read

One Reply to “cPanel : Change Main Domain…”

Leave a Reply

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