[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Awstats Cron job not executing



On Mon, Oct 26, 2009 at 06:04:05PM -0700, Kushal Koolwal wrote:
> 
> I am using Debian Lenny and installed awstats. Now by default the awstats creates a the following file:
> 
> debian:~# cat /etc/cron.d/awstats
> 0,10,20,30,40,50 * * * * www-data [ -x /usr/lib/cgi-bin/awstats.pl -a -f /etc/awstats/awstats.conf -a -r /var/log/apache2/access.log ] && /usr/lib/cgi-bin/awstats.pl -config=mydomain -update>/dev/null
> 
> The Syslog shows that the above job is being executed but my webpage stats (http://mydomain/awstats/awstats.pl) do NOT get updated.
> 
> However if I change the awstats cron job to be executed by "root" like this:
> 0,10,20,30,40,50 * * * * root [ -x /usr/lib/cgi-bin/awstats.pl -a
> -f /etc/awstats/awstats.conf -a -r /var/log/apache2/access.log ]
> && /usr/lib/cgi-bin/awstats.pl -config=mydomain -update
> >/dev/null
> 
> it gets executed every 10 mins and the webpage stats gets updated.
> 
> Based on /usr/share/doc/awstats/README.Debian, I have already given read permission for "others" user to access.log:
> debian:~# ls -l /var/log/apache2/access.log
> -rwr-r- 1 root adm 6671031 2009-10-26 18:00 /var/log/apache2/access.log
> 
> Not sure what am I missing?

Try becoming the www-data user and trying the above
line from the command line directly? perhaps you'll get some helpful
output.

A

Attachment: signature.asc
Description: Digital signature


Reply to: