How to Enable/Disable Awstats on a cPanel/WHM Server

 

Awstats is a free tool used on cPanel servers to check the number of visitors on your website. By default Awstats will be enabled on cPanel servers.
 

How to Enable Awstats on a cPanel/WHM Server

 
1. Login to WHM (Webhost Manager) as root

Open a new browser and type the link https://ServerIP:2087 to access WHM. ‘ServerIP’ should be replaced with IP address of your cPanel server.

Enter username and server root password to access WHM

2. Search for ‘Tweak Settings’ in the WHM search bar

Home » Server Configuration » Tweak Settings
 

Tweak settings

Tweak settings


 
3. Click on ‘Tweak Settings’ under ‘Server Configuration’

4. Select ‘Stats Programs’ tab in ‘Tweak Settings’

5. Select ‘On’ Radio button for ‘Enable Awstats stats’ and Click on ‘save’
 

Enable Awstats

Enable Awstats


 
OR

1. Login to server via SSH as root

2. Open /var/cpanel/cpanel.config file using vi editor

3. Change the line ‘skipawstats=1’ to ‘skipawstats=0’ to enable awstats for cpanel accounts

4. Save the file and exit

5. Restart cPanel service after making the above changes : service cpanel restart

By default awstats will be enabled on cPanel server, do the above steps only if it is disabled. The above steps will enable Awstats server wide for all domains on the server.
 


 

How to Disable Awstats on a cPanel/WHM Server

 
1. Login to WHM as root user

2. Click on ‘Tweak Settings’ under ‘Server Configuration’

3. Under ‘Stats Programs’ tab select ‘Off’ radio button for ‘Enable Awstats stats’

OR

1. Login to server via SSH as root

2. Edit /var/cpanel/cpanel.config file using vi editor

3. Change the line ‘skipawstats=0’ to ‘skipawstats=1’ to disable awstats

4. Restart cPanel service using command : service cpanel restart

This will disable awstats for all domains on the server.