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