How to install AWStats on CentOS 6.6

How To Install AWStats on CentOS 6.6 this assumes you have apache running and you want to monitor with stats..

First setup the epel repo on your server. https://fedoraproject.org/wiki/EPEL

If wget does not work first
yum install wget

Next download epel repo and install
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
rpm -ivh epel-release-7-5.noarch.rpm

Update and install awstats
yum update
yum install awstats


Edit /etc/httpd/conf.d/awstats.conf

Change the line below that says Allow from 127.0.0.1 to
Allow from all
Restart apache
service httpd restart

Access awstats at /awstats
There are so many other things you can do like adding an htpasswd and .htaccess file so that you require a login and password to view awstats.


<Directory "/usr/share/awstats/wwwroot">
Options None
AllowOverride All
Order allow,deny
Allow from 127.0.0.1
</Directory>
# Additional Perl modules
<IfModule mod_env.c>
SetEnv PERL5LIB /usr/share/awstats/lib:/usr/share/awstats/plugins
</IfModule>


Create the htaccess password file change the username in the command below to what you want.

htpasswd -c /etc/awstats/htpasswd.users username

Now create the .htaccess file in /usr/share/awstats/wwwroot

Add the following to the .htaccess file.

AuthName "Authenticate to gain Access"
AuthType Basic
AuthUserFile /etc/awstats/htpasswd.users
Require valid-user

 

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

CentOS6 Owncloud install

I found owncloud recently. It is a dropbox replacement that you can host yourself. It is very...

CentOS 5.7 64 bit DRBD - Apache MySQL Failover - DRBD, Heartbeat, Apache, MySQl, phpmadmin, webmin, APF, BFD, and malware detect.

CentOS 5.7 64 bit DRBD - Apache MySQL Failover - DRBD, Heartbeat, Apache, MySQl, phpmadmin,...

APF and BFD install CentOS

Installing APF and BFD 1. Find ports you need to open. type netstat -natul look for something...

chkrootkit install CentOS

1. Login to the server as root you want to install Chkrootkit on.2. To download the newest do...