[SOLVED] awstats missing the tools directory

General support questions
gw1500se
Posts: 148
Joined: 2012/05/07 13:53:35

[SOLVED] awstats missing the tools directory

Post by gw1500se » 2012/06/23 19:27:22

I've just installed awstats via yum. However, the tools sub-directory was not included. Where can I get the awstats tools? TIA.

tigalch
QA Team
Posts: 522
Joined: 2012/06/23 17:28:41
Location: Austria

Re: awstats missing the tools directory

Post by tigalch » 2012/06/23 21:18:29

I just did the same and the tools directory is there at /usr/share/awstats/tools.

Maybe a 'yum reinstall awstats'can solve the problem.

cheers

gw1500se
Posts: 148
Joined: 2012/05/07 13:53:35

Re: awstats missing the tools directory

Post by gw1500se » 2012/06/23 22:40:07

Thanks for the reply but no joy. For whatever reason, the CentOS distribution of awstats omitted the tools.

User avatar
TrevorH
Forum Moderator
Posts: 24804
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: awstats missing the tools directory

Post by TrevorH » 2012/06/24 01:19:18

Where did your copy come from? There is no package awstats in the CentOS supplied repos so it must've come from a third party repo - yum list reports a copy in EPEL for me but I didn't install it to check if it has the tools you say are missing.

tigalch
QA Team
Posts: 522
Joined: 2012/06/23 17:28:41
Location: Austria

Re: awstats missing the tools directory

Post by tigalch » 2012/06/24 08:12:23

TrevorH is right - I missed that activated epel-repo on my box again.

So to rephrase my previous post: The awstats package provided by epel seems to work fine.

gw1500se
Posts: 148
Joined: 2012/05/07 13:53:35

Re: awstats missing the tools directory

Post by gw1500se » 2012/06/25 22:06:54

I do have epel, among others, in my repo list but I was not paying attention to where it pulled it from (perhaps sourceforge). I'll have to try to figure out how to force it to reinstall from epel and try again.

User avatar
TrevorH
Forum Moderator
Posts: 24804
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: awstats missing the tools directory

Post by TrevorH » 2012/06/25 22:45:04

Running `rpm -qi awstats` will show you where it came from. You need to install and configure yum-priorities to prioritise the selection of packages.

gw1500se
Posts: 148
Joined: 2012/05/07 13:53:35

Re: awstats missing the tools directory

Post by gw1500se » 2012/06/26 15:50:45

OK, I got awstats installed using epel and the tools are now there (anyone know why rpmforge omits them?). It seems to be working except updating via the web. I can run the update from command line as root but it fails with this error when I run it as apache:

Error: Command for pipe '/usr/share/awstats/tools/logresolvemerge.pl /var/log/httpd/*log |' failed
Setup ('../wwwroot/cgi-bin/awstats.dap002.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).

This is obviously a permissions error but it does not give me a clue what file(s) it is having a problem with. The log files are readable by Apache so I don't know what else it could be. Can someone help? TIA.

User avatar
TrevorH
Forum Moderator
Posts: 24804
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: awstats missing the tools directory

Post by TrevorH » 2012/06/26 16:44:12

Are you sure the log files are readable by apache?

[code]
su - apache -s /bin/bash -c "ls -la /var/log/httpd"
[/code]

gw1500se
Posts: 148
Joined: 2012/05/07 13:53:35

Re: awstats missing the tools directory

Post by gw1500se » 2012/06/26 17:00:55

Arrgh! You nailed it. I forgot the permissions on the parent folder. Thanks.

Post Reply