Installing AWSTATS in Linux

This is my owned installation file…I used it n its working.. You guys also keep habit of maintaining installation file.

Download installation from website

1. wget http://nchc.dl.sourceforge.net/sourceforge/awstats/awstats-6.7.tar.gz
2. tar -xvzf awstats-6.7.tar.gz
3. mv awstats-6.7 /usr/local/
4. cd /usr/local/
5. mv awstast-6.7 awstats
6. cd awstats/tools/
7. perl awstats_config.pl       — This will run the script, feel the details & note down final results.

8. mkdir /var/lib/awstats

9. chmod 655 /var/lib/awstats/

10. Take backup of yout httpd.conf file (If in case anything goes wrong)
11. vi /usr/local/apache2/conf/httpd.conf

Add following lines in httpd.conf

+++++++————————————————++++++++++
# Directives to allow use of AWStats as a CGI
#
Alias /awstatsclasses “/usr/local/awstats/wwwroot/classes/”
Alias /awstatscss “/usr/local/awstats/wwwroot/css/”
Alias /awstatsicons “/usr/local/awstats/wwwroot/icon/”
ScriptAlias /awstats/ “/usr/local/awstats/wwwroot/cgi-bin/”

#
# This is to permit URL access to scripts/files in AWStats directory.
#
<Directory “/usr/local/awstats/wwwroot”>
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
+++++++————————————————–+++++++++

12. vi /etc/awstats/awstats.your.server.com.conf

Change the log file location as per your configuration

##LogFile=”/usr/local/apache2/logs/access_log

13. /usr/local/apache2/bin/apachectl stop
14 ./usr/local/apache2/bin/apachectl start

15. Now run “/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=<server.name.com>” #This will take some time to complete this process.

15. DONE now check “http://domainname/awstats/awstats.pl?config=<servername&gt; #what you configured.

———————————————-

If wants to schedule this command then add the following line to crone tab

0 * * * * nice /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=<server.name.com>

________________________________

Author : VIJAY LAD

Advertisements
This entry was posted in LAMP, Linux. Bookmark the permalink.

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