• 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 broken

VicenteS

New Pleskian
My awstats are not updating statistics anymore.

I have updated awstats to 6.95 and seems that something has broken psa-awstats configuration

When awstats is making cache config file is read wrong (something like awstats_buildstaticpages.DOMAIN-http.conf instad of DOMAIN-http.conf)

How can I reisntall awstats with the right configuration?

Thanks

Create/Update database for config "/opt/psa/etc/awstats/awstats.DOMAIN-http.conf" by AWStats version 6.95 (build 1.943)
From data in log file "-"...
Phase 1 : First bypass old records, searching new record...
Searching new records from beginning of log file...
Jumped lines in file: 0
Parsed lines in file: 0
Found 0 dropped records,
Found 0 corrupted records,
Found 0 old records,
Found 0 new qualified records.
Error: Couldn't open config file "awstats_buildstaticpages.DOMAIN-http.conf" nor "awstats_buildstaticpages.conf" after searching in path "/opt/psa/etc/awstats": No existe el fichero o el directorio

- 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.DOMAIN-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).
statistics: Unable to execute /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl -awstatsprog=/usr/lib/cgi-bin/awstats.pl -configdir=/opt/psa/etc/awstats -config=DOMAIN -http -dir=/var/www/vhosts/DOMAIN/statistics/webstat/current
 
What do you mean "updated"?
Awstats should be from Parallels:

# rpm -qa | grep awstats
awstats-6.95-10102009.swsoft
psa-awstats-configurator-10.10.1-cos5.build1010110112.13

Try to reinstall these packages with force at least.
 
statistics: Unable to execute /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl -awstatsprog=/usr/lib/cgi-bin/awstats.pl -configdir=/opt/psa/etc/awstats -config=DOMAIN -http -dir=/var/www/vhosts/DOMAIN/statistics/webstat/current

I have this exact same error message since I recently upgraded from Debian Lenny to Squeeze.

Here's my setup scenario:

OS: Debian 6.0.3 / Squeeze (Kernel: 2.6.32-5)

# aptitude show awstats
Package: awstats
State: installed
Version: 6.9.5~dfsg-5

# aptitude show psa-awstats-configurator
Package: psa-awstats-configurator
State: installed
Version: 10.12.0-debian6.0.build1012110621.18

It seems that somehow in the Squeeze upgrade process the "awstats" package was (and still is) preferred over the plesk "awstats" package. Since I have no clue whatsoever on how to change that, here's a hint what seems to have worked for me:

ln -s /usr/share/awstats/tools/awstats_buildstaticpages.pl /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl
 
Back
Top