“Update now” button for user to update Awstats on cPanel

Sometimes, it happens that Awstats are not getting updated for a domain in cPanel. In such cases, it is better idea to put up “Update now” button for user to update Awstats on demand.

You can perform this by following below steps:

1. Login to your server via SSH as root
2. cd /home/username/tmp/awstats/
3. Edit awstats config file of domain. For example awstats.domain.com.conf using following command:

vi awstats.domain.com.conf

4. Search for ”AllowToUpdateStatsFromBrowser”.
5. Assign the value “1” as shown below:

AllowToUpdateStatsFromBrowser= 1

6. Save the file and exit.

Just refresh the statistics page and you will see “update now” button on the top of the page.

Thanks!

 

Allow access to your Awstats from a single IP

Steps to allow a single IP address to access your Awstats URL:

1. Open the file awstats.yoursite.conf

2. Locate the line AllowAccessFromWebToFollowingIPAddresses=””

3. Enter your IP address like

AllowAccessFromWebToFollowingIPAddresses=”XX.XX.XX.XX”

If left blank as it is by default, then anyone can access your stats.

 

Advertisements
  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: