Linux: Sysstat (sar)

The sar utility which is use monitor the history system performance data on your system.

To use the sar command, simply enter sar from the system,

# sar

To check the memory statistic,

# sar -r

To check the disk statistic,

# sar -d

To check network statistic,

# sar -n

To check processor statistic,

# sar -P ALL

To check certain date statistic let say 8th of the month

# sar -f /var/log/sa/sar09

WordPress Plugin: P3 (Plugin Performance Profiler)

Feeling your WordPress apps slower and slower? As using too much plugin from your WordPress is actually reducing the website performance, you may now use WordPress plugin named P3 which stand for Plugin Performance Profiler.

To install P3, it is simply easy,

  1. Log into your WordPress admin.
  2. Click Plugins.
  3. Click Add New.
  4. Search for P3.
  5. Click Install Now under “P3 (Plugin Performance Profiler)”.
  6. Activate the plugin.
To start profile your website, you may start scanning the website.
And it will just take less than a minute to calculate the performance from your WordPress website.
Next, you could understand the statistic from the result.
P3 do support email the report of your performance test where you may forward the result to your webmaster.

Install and configure AWStats on Centos

Assume that you have Apache installed and it is working, you want to apply AWStats to your Centos server.

1. Install AWStats with yum.
yum install awstats
2. Edit the file named /etc/httpd/conf.d/awstats.conf with line below,

Alias /awstats/icon/ /var/www/awstats/icon/

ScriptAlias /awstats/ /var/www/awstats/

        Options ExecCGI
        order deny,allow
        allow from all

Alias /awstatsclasses "/var/www/awstats/lib/"
Alias /awstats-icon/ "/var/www/awstats/icon/"
Alias /awstatscss "/var/www/awstats/examples/css"

3. Edit the following line from /etc/awstats/awstats.localhost.localdomain.conf.


4.Rename the configuration file to the correct one,
mv /etc/awstats/awstats.localhost.localdomain.conf /etc/awstats/
5. Update the statistic,
/usr/bin/ now -confdir=”/etc” -awstatsprog=”/var/www/awstats/”

Enable Awstats GeoIP from Windows Operating System

For some reason, AwStats showing some IPs with unknown status. However, to get this fix, you may apply GeoIP plugin to your AwStats statistic.

1. Install Perl module.  Open your Perl Package Manager which is stand for ppm.bat in bin folder.
2. Install Geo-IP-PurePerl and Geo-IPfree module.
3. Download the GeoIP data from,
4. Extract the data and place it to C:\Perl\lib\Geo\IP folder.
5. Open the awstats.base.conf(C:\awstats\wwwroot\cgi-bin) and paste the following command.

LoadPlugin="geoip GEOIP_STANDARD C:\Perl\lib\Geo\IP\GeoIP.dat"

6. You have done and you will see the result in next update.

How to access AwStats outside from cPanel

Many of the user will ask how could them access the AwStats outside cPanel since cPanel restricted them must log into the cPanel to get their information.

To get the AwStats for every of your webmaster to view and you do not need to let them access to the cPanel account, you may follow with the full step as below.

1. Assume that you are creating a subdomain name where I will use

1. Download the latest stable version of AwStats as URL below. (I’ll guide you for Unix tar.gz file)
2. Extract the tar file. (according to your downloaded version)
$ tar zxf awstats-6.95.tar.gz
3. Move the all folder from the extracted file wwwroot folder to subdomain folder.
4. Go to the cgi-bin folder, copy the file named awstats.model.conf to
5. Open and edit the file
– Edit the LogFile, change it to/usr/local/apache/domlogs/
– Edit the SiteDomain, change it to
– Edit the HostAliases, delete the REGEX[myserver\.com$] and change it ( and
– Edit the DirData, from . to /home/mickgenie/tmp/awstats/ where this MUST same like your cPanel setting.
6. You have done for all.

You may now access to your awstats as URL below.