• 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 works not for all domains after many upgrades

freeshar

New Pleskian
Hello!

I was looking two days through Plesk forums 8.xxx -9.xxx versions without success, although some problems got solved....

I had from the beginning 8.x Plesk installed and AWStats was working well.

Then I had multiple upgrades and now I have latest version 9.3.0
Somewhere in this upgrade path my AWStats stopped working.

I found some mismatches in /etc/psa/psa.conf and it started working.
I can run it from command prompt as well without visible error messages for all domains and one particular as well.
AWstats creates all directories, files and empties access.cog (moves info to .processed).

My problem is that I can see stats only for couple of my old domains. All new ones do not show.



Browser says "Problem loading page" and page never comes up.

When I check in a shell prompt I see that everything looks ok both for older a new domains - no visible difference...

In httpd.include there also big differences - although in older ones used "Alias" command and newer ones "PermanentRedirect"...

I tried to remove and crate domains from scratch - no changes. Even for very new domains I browse first page, check that log is not empty, then run:
/usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=mydomain.com


Output looks looks OK, .log file is zero size now, go on-line to

www.domain.com/plesk-stat/webstat/

same timeout


In Plesk panel I enabled statistics for all the domains - chose AWStats, enable Perl, access shell, all as usual..
Restart Apache after every change. Tried enable/disable statistic, removed domains, added again...
 
Try to recreate webstats settings for these domains with something like:

# /usr/local/psa/admin/bin/webstatmng --unset-configs --stat-prog=awstats --domain-name=domain.com
# /usr/local/psa/admin/bin/webstatmng --set-configs --stat-prog=awstats --domain-name=domain.com
# /usr/local/psa/admin/bin/webstatmng --calculate-rotated-statistics --stat-prog=awstats --domain-name=domain.com
# /usr/local/psa/admin/bin/webstatmng --help for details
 
still does not show statistic in web page

thanks for your prompt reply

I run all the three commands. They have not returned any error. Last one gave some output which looks well:
[root@localhost conf]# /usr/local/psa/admin/bin/webstatmng --calculate-rotated-statistics --stat-prog=awstats --domain-name=iminov.com
Create/Update database for config "/usr/local/psa/etc/awstats/awstats.iminov.com-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: 9
Found 0 dropped records,
Found 0 corrupted records,
Found 9 old records,
Found 0 new qualified records.
Create/Update database for config "/usr/local/psa/etc/awstats/awstats.iminov.com-https.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.

but when I go to http://MYDOMAIN.com/plesk-stat/webstat still long timeout and no page...
 
Back
Top