[SOLVED] awstats missing the tools directory
[SOLVED] awstats missing the tools directory
I've just installed awstats via yum. However, the tools sub-directory was not included. Where can I get the awstats tools? TIA.
Re: awstats missing the tools directory
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
Maybe a 'yum reinstall awstats'can solve the problem.
cheers
Re: awstats missing the tools directory
Thanks for the reply but no joy. For whatever reason, the CentOS distribution of awstats omitted the tools.
Re: awstats missing the tools directory
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.
Re: awstats missing the tools directory
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.
So to rephrase my previous post: The awstats package provided by epel seems to work fine.
Re: awstats missing the tools directory
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.
Re: awstats missing the tools directory
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.
Re: awstats missing the tools directory
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.
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.
Re: awstats missing the tools directory
Are you sure the log files are readable by apache?
[code]
su - apache -s /bin/bash -c "ls -la /var/log/httpd"
[/code]
[code]
su - apache -s /bin/bash -c "ls -la /var/log/httpd"
[/code]
Re: awstats missing the tools directory
Arrgh! You nailed it. I forgot the permissions on the parent folder. Thanks.