PDA

View Full Version : How Do I Install AWStats?


lazyskillz
01-21-2006, 04:06 PM
I'm running into problems with installing awstats. I want to install it for certain domains, so I downloaded it and uploaded the files and changed the config file.

The problem is that the log files are root and with domain user permissions awstats.pl doesn't have access to access_log and thus it won't run. What are my options?

Anyone have a work around?

Tomas
01-24-2006, 03:21 PM
Here is a full guide for linux in a few very simple steps :

first you will need a shell access, the most popular program is putty (ssh emulator) download one if you dont have it, login as a root user and folow the instructions:

1) you need to install awstats, the best way to install it is using awstats rpm, so run this command first.

# wget http://easynews.dl.sourceforge.net/sourceforge/awstats/awstats-6.4-1.noarch.rpm

if you want to use other version of rpm find url first and replace this one.

2) to install run this command

# rpm -ivh awstats-6.4-1.noarch.rpm

3) then you will need to setup awstats_configure.pl run:

# cd /usr/local/awstats/tools
and
# ./awstats_configure.pl
you will be asked about your domain and path to httpd.conf file so enter
/etc/httpd/conf/httpd.conf

4) you need to provide correct path to access_log file, so open conf file for your domain using vi text editor usin this command:

# vi /etc/awstats/awstats.www.yourdomain.com.conf
change log path to:
LogFile="/home/httpd/vhosts/yourdomain.com/statistics/logs/access_log"
and close editor with "ZZ" command.

5) All you need to do now is to update awstats data base using one of these two commands
for each domain
# /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=www.yourdomain.com
or if you want to update all at the same time us this
# /usr/local/awstats/tools/awstats_updateall.pl now
it would be nice if you add these commands to cron tab
now use this url to see if everything is ok
http://localhost/awstats/awstats.pl?config=www.yourdomain.com

Notice: if you want to add another domain just repeat these steps from 3-5
www.soloymi.com

deltrumweb
01-28-2006, 02:33 PM
2) to install run this command

# rpm -ivh awstats-6.4-1.noarch.rpm

I get to this stage and get this error ?

awstats-6.4-1.noarch.rpm: not an rpm package (or package manifest):

I have tried installing a later version as 6.5 is the latest stable release but I still get the same error ?

Anyone ?

deltrumweb
01-29-2006, 08:32 AM
Anyone ? Or is this a support issue ?

elix
01-29-2006, 10:06 AM
the URL was condesned by the forum, so make sure you get it exactly.

wget http://easynews.dl.sourceforge.net/sourceforge/awstats/awstats-6.4-1.noarch.rpm

deltrumweb
01-29-2006, 11:43 AM
I succesfully managed to get the rpm package downloaded to the vps but got that error when I tried to install it ?

charles
01-30-2006, 10:58 PM
I succesfully managed to get the rpm package downloaded to the vps but got that error when I tried to install it ?

The download has to be corrupt. Use wget as Elix shows.

charles

lazyskillz
02-02-2006, 04:21 PM
The solution posted by Tomas doesn't work. The are permission problems for where Awstats will store it's database. Before somebody posts another solution, please make sure it WORKS FOR POWERVPS and is not from google.

google: awstats soloymi

http://forums.sw-soft.com/printthread.php?threadid=23954&perpage=15&pagenumber=1

Why isn't stuff like this in the wiki or FAQ?

Here is a full guide for linux in a few very simple steps :

- snip -

Notice: if you want to add another domain just repeat these steps from 3-5
www.soloymi.com

Robert
02-02-2006, 06:00 PM
Pssst... psssst.... ya can add stuff to the wiki yaself too.

KB stuff if you have ideas, please drop em in an email to me. robert *at* defenderhosting.com.