• 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

Awstats generates nothing?!

i and simmiler problems i just made a new entry in /etc/cron.dail/PleskStats
with
#!/bin/sh
/usr/local/psa/admin/sbin/statistics

all is working here now, apparently their is going to be a hotfix within the next two weeks so might be included in that
 
thanks for the tipp this points me one step closer to the error...

look what i've got when executing the command:

sh: /srv/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=/srv/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=myextreemlysexydomain.com-http -dir=/srv/www/vhosts/myextreemlysexydomain.com/statistics/webstat/

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

System error 32: Broken pipe
sh: /srv/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=/srv/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=myextreemlysexydomain.com-https -dir=/srv/www/vhosts/myextreemlysexydomain.com/statistics/webstat-ssl/

System error 2: No such file or directory
statistics: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/srv/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=myextreemlysexydomain.com-https -dir=/srv/www/vhosts/myextreemlysexydomain.com/statistics/webstat-ssl/

System error 2: No such file or directory
sh: /srv/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=/srv/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=myextreemlysexydomain.com-anon_ftp -dir=/srv/www/vhosts/myextreemlysexydomain.com/statistics/anon_ftpstat/

System error 32: Broken pipe
statistics: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/srv/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=myextreemlysexydomain.com-anon_ftp -dir=/srv/www/vhosts/myextreemlysexydomain.com/statistics/anon_ftpstat/

System error 32: Broken pipe
sh: /srv/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=/srv/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=myextreemlysexydomain.com-ftp -dir=/srv/www/vhosts/myextreemlysexydomain.com/statistics/ftpstat/

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

i've looked into /srv/www/cgi-bin/ and indeed, there's no folder called awstats in it - but a file called awstats.pl
so i've created a folder called 'awstats' and moved the .pl file into it and tried to run it again... here's what i've got then:


Error: Couldn't open config file "awstats.myextreemlysexydomain.com-http.conf" nor "awstats.conf" after searching in path "/usr/local/psa/etc/awstats": No such file or directory

- Did you use correct config parameter ?
Example: If your config file is awstats.mysite.conf, use -config=mysite
- Did you create your config file 'awstats.myextreemlysexydomain.com-http.conf' ?
If not, you can run "awstats_configure.pl"
from command line, or create it manually.

Check config file, permissions and AWStats documentation (in 'docs' directory).
sh: /usr/share/awstats/awstats_buildstaticpages.pl: No such file or directory
statistics: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/srv/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=myextreemlysexydomain.com-http -dir=/srv/www/vhosts/myextreemlysexydomain.com/statistics/webstat/

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

System error 32: Broken pipe
Error: Couldn't open config file "awstats.myextreemlysexydomain.com-https.conf" nor "awstats.conf" after searching in path "/usr/local/psa/etc/awstats": No such file or directory

- Did you use correct config parameter ?
Example: If your config file is awstats.mysite.conf, use -config=mysite
- Did you create your config file 'awstats.myextreemlysexydomain.com-https.conf' ?
If not, you can run "awstats_configure.pl"
from command line, or create it manually.

Check config file, permissions and AWStats documentation (in 'docs' directory).
sh: /usr/share/awstats/awstats_buildstaticpages.pl: No such file or directory
statistics: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/srv/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=myextreemlysexydomain.com-https -dir=/srv/www/vhosts/myextreemlysexydomain.com/statistics/webstat-ssl/

System error 2: No such file or directory
statistics: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/srv/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=myextreemlysexydomain.com-https -dir=/srv/www/vhosts/myextreemlysexydomain.com/statistics/webstat-ssl/

System error 2: No such file or directory
Error: Couldn't open config file "awstats.myextreemlysexydomain.com-anon_ftp.conf" nor "awstats.conf" after searching in path "/usr/local/psa/etc/awstats": No such file or directory

- Did you use correct config parameter ?
Example: If your config file is awstats.mysite.conf, use -config=mysite
- Did you create your config file 'awstats.myextreemlysexydomain.com-anon_ftp.conf' ?
If not, you can run "awstats_configure.pl"
from command line, or create it manually.

Check config file, permissions and AWStats documentation (in 'docs' directory).
sh: /usr/share/awstats/awstats_buildstaticpages.pl: No such file or directory
statistics: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/srv/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=myextreemlysexydomain.com-anon_ftp -dir=/srv/www/vhosts/myextreemlysexydomain.com/statistics/anon_ftpstat/
statistics: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/srv/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=myextreemlysexydomain.com-anon_ftp -dir=/srv/www/vhosts/myextreemlysexydomain.com/statistics/anon_ftpstat/
Error: Couldn't open config file "awstats.myextreemlysexydomain.com-ftp.conf" nor "awstats.conf" after searching in path "/usr/local/psa/etc/awstats": No such file or directory

- Did you use correct config parameter ?
Example: If your config file is awstats.mysite.conf, use -config=mysite
- Did you create your config file 'awstats.myextreemlysexydomain.com-ftp.conf' ?
If not, you can run "awstats_configure.pl"
from command line, or create it manually.

Check config file, permissions and AWStats documentation (in 'docs' directory).
sh: /usr/share/awstats/awstats_buildstaticpages.pl: No such file or directory
statistics: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/srv/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=myextreemlysexydomain.com-ftp -dir=/srv/www/vhosts/myextreemlysexydomain.com/statistics/ftpstat/

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

looks like plesk doesnt even create some basic config files for awstats... any ideas?

thanks :)
daniel
 
This doesn't help to the real problem:

the awstats modules doesn't generate anything when setting up a domain using awstats instead webalizer.

Changing the path in /etc/psa/psa.conf to awstats-config-dir (AWSTATS_ETC_D) has no effect to /usr/local/psa/admin/sbin/statistics - this will search always in /usr/local/psa/etc/awstats (which is empty).

And nowhere, real nowhere any of the required files is generated. And meanwhile I'm real pissed. Setting up all the configurations needed by hand is horrible. (We're talking about a little bit more than 5 domains)

Anyone have some ideas to get plesk generating the configfiles? Or where some logs may stored to see if something goes wrong?

System is Suse 10.1 i386 with plesk 8.1

tnx
 
all i was saying is that it fixed my problem. so if the config file aintbeen read then i dont know what happened but my stats worked fine after runing the stats app before and after editing the config.
 
you have to copy the conf files to the place the statistics thing expects them to be

also you have to add the domain-name manually into the conf file. its kinda stupid, i know...
 
my sollution was..

to reinstall awstats.

rpm -qa |grep awstats

rpm -e --nodeps awstats-x.x-x.fc5

then update from the Plesk or

rpm -Uvh /root/swsoft/PSA_8.1.0/update-rpm-FedoraCore-5-i386/awstats-x.x-x.swsoft.noarch.rpm
 
Back
Top