• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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