Page 1 of 1

awstats with Plesk 8.1 upgrade are not working

Posted: Sat Dec 02, 2006 7:44 pm
by aus-city
Hey,

I upgraded from Plesk 8.01 to Plesk 8.1 No issues at all ran fine. Just watch out as qmail gets upgraded besure to restart it as the second pass of the updater left qmail stopped.

I changed my stats over from webalizer to awstats. All worked well exept I get no stats...

When I run:
/usr/local/psa/admin/sbin/statistics

I get a bunch of errors per domain..

I have taken one domain...

System error 2: No such file or directory
sh: /var/www/cgi-bin/awstats/awstats.pl: No such file or directory
sh: /usr/share/awstats/awstats_buildstaticpages.pl: No such file or directory
statistics: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=domain-http -dir=/var/www/vhosts/domain/statistics/webstat/

System error 32: Broken pipe
statistics: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=domain-http -dir=/var/www/vhosts/domain/statistics/webstat/

System error 32: Broken pipe
sh: /var/www/cgi-bin/awstats/awstats.pl: No such file or directory
sh: /usr/share/awstats/awstats_buildstaticpages.pl: No such file or directory
statistics: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=domain-https -dir=/var/www/vhosts/domain/statistics/webstat-ssl/

System error 32: Broken pipe
statistics: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=domain-https -dir=/var/www/vhosts/domain/statistics/webstat-ssl/

System error 32: Broken pipe
sh: /var/www/cgi-bin/awstats/awstats.pl: No such file or directory
sh: /usr/share/awstats/awstats_buildstaticpages.pl: No such file or directory
statistics: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=domain-anon_ftp -dir=/var/www/vhosts/domain/statistics/anon_ftpstat/

System error 2: No such file or directory
statistics: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=domain-anon_ftp -dir=/var/www/vhosts/domain/statistics/anon_ftpstat/

System error 2: No such file or directory
sh: /var/www/cgi-bin/awstats/awstats.pl: No such file or directory
sh: /usr/share/awstats/awstats_buildstaticpages.pl: No such file or directory
statistics: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=domain-ftp -dir=/var/www/vhosts/domain/statistics/ftpstat/

System error 17: File exists
statistics: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=domain-ftp -dir=/var/www/vhosts/domain/statistics/ftpstat/

System error 17: File exists

___________________

Okay if you want:
awstats_buildstaticpages.pl

Its located:
/usr/share/awstats/tools/awstats_buildstaticpages.pl

NOT

/usr/share/awstats/awstats_buildstaticpages.pl


Next

awstats.pl

Its located:
/usr/share/awstats/wwwroot/cgi-bin/awstats.pl

NOT
/var/www/cgi-bin/awstats/awstats.pl

______________________

So when you run:
/usr/local/psa/admin/sbin/statistics

What file is being accessed looking for these paths? It needs to be changed then awstats will run.

Any idea's how I can fix it?

I emailed Plesk support and got a long winded email basically saying buy a 75 dollar support ticket and we will take a look. I thought it was rather rude as Plesk 8.1 installer installed awstats and their 'statistics' binary runs with all those errors....

Thanks!

Re: awstats with Plesk 8.1 upgrade are not working

Posted: Wed Mar 02, 2011 9:29 pm
by jishaashok
: locate awstats_buildstaticpages.pl
ln -s /usr/bin/awstats_buildstaticpages.pl /usr/share/awstats/
ln -s /var/www/awstats/ /var/www/cgi-bin/

Then run stats manually for this domain

/usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=domain.tld

:)