HolHost.com Blog Server administrators blog


Why cPanel AWStats is Not Updating Automatically?

AWStats is one of the maximum usually using cPanel tool to analyse internet site site visitors summary. you may analyse loads of factors from here like range of visits, Pages, Hits, Bandwidth and so on. In some extraordinary conditions, you can get this problem with AWStats, it’s not updating mechanically. There are a variety of reasons at the back of this hassle including document permission. here I’m listing a few points to check if you acquire this problem with AWStats.

Awstats location:
You can simply access and analyse this from the cPanel itself. Please do follow the steps:

1, Log into cPanel.
2, Move to;

Logs >> AWStats

How to update AWStats manually?

You can do this from cPanel and also from the command line. You must have root access to server. You can do this:

1, SSH to server as root.
2, Execute:

/scripts/runweblogs $user-name

Why AWStats is not updating automatically?

1, SSH to server as root.

2, Change the directory to:


There are the conf files for domains under that particular cPanel account. We need to make sure that the directive “AllowToUpdateStatsFromBrowser” is set to 1.

grep AllowToUpdateStatsFromBrowser awstats.example.com.conf


root@tsting [/home/****/tmp/awstats]# grep AllowToUpdateStatsFromBrowser awstats.servernoobs.com.conf
# Warning: If you want to be able to use the "AllowToUpdateStatsFromBrowser"

Also please check the permission of “/usr/local/cpanel/3rdparty/bin/awstats.pl” file. It must be 775.

# ll /usr/local/cpanel/3rdparty/bin/awstats.pl
-rwxrwxr-x. 1 root root 679172 Aug 23 2009 /usr/local/cpanel/3rdparty/bin/awstats.pl*

You can see our VPS Plans.


Disable SSH from WHM

You can disable SSH by doing this:

1: Log in to your WHM

2: Under "Security Center" click on "Host Access Control"

3: On "Daemon" type: sshd

4: On "Access List" type: ALL or ALL except

This is your ip address so you can still login to SSH.

5: On "Action" type: deny

6: Click "Save Host Access List:

You can use this tutorial on VPS or Dedicated hosting.


How to assign dedicated IP to subdomain

You might want to assign dedicated IP to your subdomain for some reason such as apply SSL to your subdomain.

If you are using cPanel and wish to set dedicated IP to your subdomain, you will find no else where to do that.

However, this could still be able to fix as this article.

- You have domain domain.com and subdomain blog.domain.com.
- You wish to set dedicated IP for blog.domain.com which originally and result as blog.domain.com resolve to

1. Log into SSH, go to the folder of /var/cpanel/userdata,
cd /var/cpanel/userdata
2. Select the cPanel username folder such as mickgenie.
cd /var/cpanel/userdata/mickgenie
3. You will now see the following file,

4. Open the file named blog.domain.com,
vi blog.domain.com
5. You should find the content as below,
6. Change it to detail as below,
7. Now, you have done but you will need to rebuilt the Apache,
8. Restart the Apache services,

cheap VPS

Tagged as: , , Comments Off

Ways to free up cPanel server space

Most of the time, we are advise to keep our server disk space clean. To ensure it is clean, you may follow the following step,

1) Clean yum cache file

yum clean all

2) Delete fantastico backup file

rm -rfv /home/*/fantastico_backups

3) Delete cPanel backup file

rm -rfv /home/*/backup*.tar.gz

4) Delete cPanel file manager temp file

rm -fv /home/*/tmp/Cpanel_*

5) Terminate unwanted account

To show which account is suspended:

ls /var/cpanel/suspended

Terminate them (y/n is depend on if you wish to remain the DNS or not)

/scripts/killacct user y/n



Tagged as: , , , Comments Off

Default Bandwidth Exceeded Page

In this tutorial you will learn how to modify the Cpanel bandwidth exceeded page. This page is shown for clients automatically when they run out of bandwidth. Bandwidth counts are reset every month.

Step 1: Login to the server as root in SSH.

Step 2: This will make a backup copy of the original file incase you need to revert back
cp /usr/local/cpanel/apache/mod_bwlimited.c /usr/local/cpanel/apache/mod_bwlimited.c.bak

Step 3: Then type:
pico -w /usr/local/cpanel/apache/mod_bwlimited.c

Scroll down until you reach the section where you'll see the HTML code for the bandwidth page or do a search for it in Pico #: Ctrl+W then paste this in: <HTML><HEAD>n<TITLE>509 Bandwidth Limit Exceeded</TITLE>

Change it to whatever you like... carefully.

Step 4: Save the file while still in pico #:
Crtl+X then Y