• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

awstat does not work

maumar

New Pleskian
this is plesk 11 debian 6 fully updated
awstats does not produce any statistics for each domain for which we have configured.
Further, we are not able to trace th eissue as we can't find awastats logs
Can you provide us some way to enable awstat logs?
many thnx
 
Try recalculating domain Stats with the command ...

/usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=yourdomain.com
 
Hello abdi
you are always welcome :) in ancient greek, a guy like you was a "Soter/Soteros" :)
so, following ur suggestion i was able to fix the issue

Code:
/usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=example.com



WARNING during statistics_collector execution: : statistics_collector: Unable to execute /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl -awstatsprog=/usr/lib/cgi-bin/awstats.pl -configdir=/opt/psa/etc/awstats -config=manomarine.com-http -dir=/var/www/vhosts/manomarine.com/statistics/webstat/2012-07 -month=7 -year=2012  >/dev/null 2>&1

System error 17: File exists
statistics_collector: Unable to execute /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl -awstatsprog=/usr/lib/cgi-bin/awstats.pl -configdir=/opt/psa/etc/awstats -config=manomarine.com-http -dir=/var/www/vhosts/manomarine.com/statistics/webstat/current  >/dev/null 2>&1

System error 2: No such file or directory
statistics_collector: Unable to execute /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl -awstatsprog=/usr/lib/cgi-bin/awstats.pl -configdir=/opt/psa/etc/awstats -config=manomarine.com-https -dir=/var/www/vhosts/manomarine.com/statistics/webstat-ssl/2012-07 -month=7 -year=2012  >/dev/null 2>&1

System error 17: File exists
statistics_collector: Unable to execute /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl -awstatsprog=/usr/lib/cgi-bin/awstats.pl -configdir=/opt/psa/etc/awstats -config=manomarine.com-https -dir=/var/www/vhosts/manomarine.com/statistics/webstat-ssl/current  >/dev/null 2>&1

System error 2: No such file or directory
statistics_collector: Unable to execute /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl -awstatsprog=/usr/lib/cgi-bin/awstats.pl -configdir=/opt/psa/etc/awstats -config=manomarine.com-anon_ftp -dir=/var/www/vhosts/manomarine.com/statistics/anon_ftpstat/current  >/dev/null 2>&1

System error 2: No such file or directory
statistics_collector: Unable to execute /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl -awstatsprog=/usr/lib/cgi-bin/awstats.pl -configdir=/opt/psa/etc/awstats -config=manomarine.com-ftp -dir=/var/www/vhosts/manomarine.com/statistics/ftpstat/current  >/dev/null 2>&1

System error 2: No such file or directory
error: error accessing /var/lib/tomcat6/logs: No such file or directory
error: tomcat:1 glob failed for /var/lib/tomcat6/logs/*.log

now i try to locate it:
Code:
locate awstats_buildstaticpages.pl
/usr/share/awstats/tools/awstats_buildstaticpages.pl

and using /usr/share/awstats/tools/awstats_buildstaticpages.pl i got some results

so i could say that:

the script uses a non-existent /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl
to fix it it's enough:

Code:
ln -s  /usr/share/awstats/tools/awstats_buildstaticpages.pl /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl

thsn
Code:
/usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=example.com

WARNING during statistics_collector execution: : error: error accessing /var/lib/tomcat6/logs: No such file or directory
error: tomcat:1 glob failed for /var/lib/tomcat6/logs/*.log
 
I get the follow when I run the command.
Code:
[super@mydomain ~]# /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=my-example.com

WARNING during statistics_collector execution: : statistics_collector: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=my-example.com-http -dir=/var/www/vhosts/my-example.com/statistics/webstat/2012-07 -month=7 -year=2012  >/dev/null 2>&1

System error 17: File exists
statistics_collector: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=my-example.com-http -dir=/var/www/vhosts/my-example.com/statistics/webstat/current  >/dev/null 2>&1

System error 2: No such file or directory
statistics_collector: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=my-example.com-https -dir=/var/www/vhosts/my-example.com/statistics/webstat-ssl/current  >/dev/null 2>&1

System error 2: No such file or directory
statistics_collector: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=my-example.com-anon_ftp -dir=/var/www/vhosts/my-example.com/statistics/anon_ftpstat/current  >/dev/null 2>&1

System error 2: No such file or directory
statistics_collector: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=my-example.com-ftp -dir=/var/www/vhosts/my-example.com/statistics/ftpstat/current  >/dev/null 2>&1

System error 2: No such file or directory
error: error accessing /usr/share/tomcat5/logs: No such file or directory
error: tomcat:1 glob failed for /usr/share/tomcat5/logs/*.log

When I do the locate, I get the following. Which makes the location above..
Code:
[super@mydomain ~]# locate awstats_buildstaticpages.pl
/usr/share/awstats/awstats_buildstaticpages.pl

So then I did the follow line, and that makes the location above as well..
Code:
[super@mydomain ~]# locate awstats.pl
/var/www/cgi-bin/awstats/awstats.pl

Any ideas on to fix this?
 
what u get when try to execute the command

/usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=my-example.com-http -dir=/var/www/vhosts/my-example.com/statistics/webstat/current
 
Back
Top