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

/etc/init.d/httpd restart

:: Links
+ Google
+ ServeInt

How to add NAT iptables rules with CSF

What is CSF Config Server Firewall (or CSF) is a free and advanced firewall for most Linux distributions. How to add NAT iptables rules...
32 sec read

Fix AWStats on WHM/cPanel with NGINX

What is AWStats AWStats is short for Advanced Web Statistics. AWStats is powerful log analyzer which creates advanced web, ftp, mail and streaming server statistics reports  based on the...
24 sec read

Can’t open freshclam.log in append mode

:: Error in cronjob ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log). ERROR: Can’t open /var/log/clamav/freshclam.log in append mode (check permissions!). :: How to...
33 sec read

One Reply to “cPanel : Change Main Domain DocumentRoot”

Leave a Reply

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