On Mon, Oct 26, 2009 at 07:08:04PM -0700, Kushal Koolwal wrote:
> 
>  <20091027012939.ga19...@localhost.localdomain>
> Content-Type: text/plain; charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
> MIME-Version: 1.0
> 
> 
> > Try becoming the www-data user and trying the above
> 
> > line from the command line directly? perhaps you'll get some helpful
> 
> > output.
> 
> Actually I did intended to send the output of the above in my original mail=
>  but I forgot. Here is the output:
> debian:~# sudo -u www-data /usr/bin/perl /usr/lib/cgi-bin/awstats.pl -updat=
> e -config=3Dmydomain
> 
> Create/Update database for config "/etc/awstats/awstats.mydomain.conf" by A=
> WStats version 6.7 (build 1.892)
> >From data in log file "/var/log/apache2/access.log"...
> Error: Couldn't open server log file "/var/log/apache2/access.log" : Permis=
> sion denied

what are the permissions on /var/log/apache2? 

> Setup ('/etc/awstats/awstats.mydoamin.conf' file=2C web server or permissio=
> ns) may be wrong.
> Check config file=2C permissions and AWStats documentation (in 'docs' direc=
> tory).
> debian:~#=20
> 
> Not sure where else I need to give permission to www-data. As noted in my p=
> revious mail=2C access.log already has "read" permission. Also I checked "a=
> wstats.mydomain.conf" but did not find anything related to www-data and cro=
> n jobs.

not sure what else to suggest. On my machines access.log has
permissions

-rw-r---- root adm

so to read the logs chmod o+r or access them from the adm group.

sorry, I've got nothing else to suggest.

A

Attachment: signature.asc
Description: Digital signature

Reply via email to