[BlueOnyx:04480] Re: Problems with awstats

Ken - Precision Web Hosting, Inc kenlists at precisionweb.net
Thu May 13 11:14:20 -05 2010


----- Original Message ----- 
From: ""Søren S. Straszek"" <dump_mail at straszek.dk>
To: "BlueOnyx General Mailing List" <blueonyx at blueonyx.it>
Sent: Thursday, May 13, 2010 8:42 AM
Subject: [BlueOnyx:04478] Re: Problems with awstats


>
> Den 13/05/2010 kl. 17.23 skrev Ken - Precision Web Hosting, Inc:
>
>>
>> ----- Original Message ----- 
>> From: ""Søren S. Straszek"" <dump_mail at straszek.dk>
>> To: "BlueOnyx General Mailing List" <blueonyx at blueonyx.it>
>> Sent: Thursday, May 13, 2010 1:15 AM
>> Subject: [BlueOnyx:04474] Re: Problems with awstats
>>
>>
>>>
>>> Den 03/05/2010 kl. 16.47 skrev Michael Stauber:
>>>
>>>> Hi Søren,
>>>>
>>>> Sorry, been busy the last 3 weeks with tax stuff and a couple of odds 
>>>> and
>>>> sods
>>>> that had sucked up my time.
>>>>
>>>>> Awstats is running, but the statistics are not updating, i cant see 
>>>>> any
>>>>> statistics.
>>>>>
>>>>> Does anybody know how to fix this?
>>>>
>>>> As first step try to run the AWStats related cronjobs manually as root:
>>>>
>>>> /etc/cron.daily/zz_awstats-run.pl
>>>> /etc/cron.daily/zzz_awstats-run.pl
>>>>
>>>> If they don't generate error messages, then the problem is most likely
>>>> that
>>>> your logs don't rotate. AWStats works on the logs out of the
>>>> /home/sites/<site>/logs/ directories. These directories usually recieve
>>>> their
>>>> daily split of traffic from the central Apache log 
>>>> /var/log/httpd/access.
>>>>
>>>> If the logrotate cronjob is not working right, those logs don't update
>>>> and
>>>> AWStats has nothing to chew on.
>>>>
>>>> To test this run logrotate manually and see if it produces an error:
>>>>
>>>> /etc/cron.daily/logrotate
>>>>
>>>> -- 
>>>> With best regards
>>>>
>>>> Michael Stauber
>>>>
>>>> _______________________________________________
>>>> Blueonyx mailing list
>>>> Blueonyx at blueonyx.it
>>>> http://www.blueonyx.it/mailman/listinfo/blueonyx
>>>
>>>
>>> Hi Michael,
>>>
>>> Thanks for your reply;
>>>
>>> it tried
>>>> /etc/cron.daily/zz_awstats-run.pl
>>>> /etc/cron.daily/zzz_awstats-run.pl
>>>
>>> And that does not produce any errors
>>>
>>> And
>>>
>>>> /etc/cron.daily/logrotate
>>>
>>> Did not produce an error.
>>>
>>> I have the same problem on another server, both with awstats installed
>>> from your solarspeed special template.
>>>
>>> Where to look for the problem?
>>>
>>> Regards
>>>
>>> Søren
>>>
>>
>>
>> Søren
>>
>> If you look  at
>> ls -la /home/sites/*.*/logs/web.log
>>
>> Do those files have today's date on them?
>> If not then your log files are not rotating.
>>
>> Ken
>>
>> _______________________________________________
>> Blueonyx mailing list
>> Blueonyx at blueonyx.it
>> http://www.blueonyx.it/mailman/listinfo/blueonyx
>
>
>
> Hi,
>
> No they have old dates,  how do i get uptodate?
>
> Regards
>
> Søren
>
>


Søren

So, it is not a problem with awstats.
It is a problem with logrotate.

How big is your log file at
ls -lah   /var/log/httpd/access_log

Does it have recent data?
tail /var/log/httpd/access_log

----
Ken M
Precision Web Hosting, Inc.
http://www.precisionweb.net








More information about the Blueonyx mailing list