• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

[AWStats] Error 404

ErragalE

New Pleskian
Hi guys,

I'm coming to ask your help.

I have a server with Plesk installed. All works fine except AWStats

In my domain, when I select AWStats in the Stats Module I've got an Error 404 Page viewing the stats

If I select Webalyzer, I've got my stats correctly

Before asking you, I'll try the different suggestions :
- PERL is/was activated
- Here's my /etc/psa/psa.conf
Code:
AWSTATS_ETC_D /etc/awstats
AWSTATS_BIN_D /usr/lib/cgi-bin
AWSTATS_TOOLS_D /usr/share/doc/awstats/examples
AWSTATS_DOC_D /usr/share/awstats
- Making the command : /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=mydomain give me this warning : WARNING during statistics_collector execution: : Executing logs preparation...

So can you help me please with AWStats ?

Thanks in advance for your help

Best regards

Erragal
 
The values in /etc/psa/psa.conf should be:

AWSTATS_BIN_D /var/www/cgi-bin/awstats
AWSTATS_TOOLS_D /usr/share/awstats
 
Many Thanks Igor - but there is no directory at /var/www/cgi-bin/awstats - can that be right?
I tried amending this anyway and running:
# /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name= ....
...but still got
WARNING during statistics_collector execution: : statistics[25795]: Executing logs preparation...
and no improvement i.e. 404 error.

current settings are:
AWSTATS_BIN_D /usr/lib/cgi-bin
AWSTATS_TOOLS_D /usr/share/doc/awstats/examples

contents of /usr/lib/cgi-bin
-rwxr-xr-x 1 root root 676840 Dec 28 2013 awstats.pl
drwxr-xr-x 2 root root 4096 Oct 8 15:59 icinga
drwxr-xr-x 2 root list 4096 Jul 21 11:45 mailman
lrwxrwxrwx 1 root root 29 Jul 21 11:45 php -> /etc/alternatives/php-cgi-bin
-rwxr-xr-x 1 root root 9026920 Oct 29 12:17 php5

contents of /usr/share/doc/awstats/examples:
-rw-r--r-- 1 root root 1441 Nov 16 2013 apache.conf
-rwxr-xr-x 1 root root 26101 Dec 28 2013 awstats_configure.pl
-rwxr-xr-x 1 root root 12739 Dec 28 2013 awstats_exportlib.pl
-rwxr-xr-x 1 root root 5504 Dec 28 2013 awstats_updateall.pl
drwxr-xr-x 2 root root 4096 Jul 21 11:46 css
-rw-r--r-- 1 root root 2562 Nov 15 2008 example.pm.gz
-rwxr-xr-x 1 root root 16466 Apr 17 2010 geoip_generator.pl
drwxr-xr-x 2 root root 4096 Jul 21 11:46 js
-rwxr-xr-x 1 root root 27814 Dec 28 2013 maillogconvert.pl
-rwxr-xr-x 1 root root 878 Nov 16 2013 redostats.sh
-rwxr-xr-x 1 root root 9800 May 2 2010 urlaliasbuilder.pl
drwxr-xr-x 2 root root 4096 Jul 21 11:46 xslt

contents of /usr/share/awstats are:
drwxr-xr-x 7 root root 4096 Jul 21 11:46 .
drwxr-xr-x 139 root root 4096 Oct 24 15:50 ..
drwxr-xr-x 9 root root 4096 Jul 21 11:46 icon
drwxr-xr-x 5 root root 4096 Jul 21 11:46 lang
drwxr-xr-x 2 root root 4096 Jul 21 11:46 lib
drwxr-xr-x 2 root root 4096 Jul 21 11:46 plugins
drwxr-xr-x 2 root root 4096 Jul 21 11:46 tools
 
I have the same problem. The webstat/
awstats032015.domain.tld-http.txt is generated, and also in main index.html file, but the dir 2015-03 stays empty. this problem appears only for one domain
 
Here's my Ubuntu 14.04.2 LTS with Plesk 12.0.18 /etc/psa/psa.conf...
Code:
# AWStats
AWSTATS_ETC_D /etc/awstats
AWSTATS_BIN_D /usr/lib/cgi-bin
AWSTATS_TOOLS_D /usr/share/doc/awstats/examples
AWSTATS_DOC_D /usr/share/awstats

I did have a problem on one domain that runs Wordpress and PHP-FPM where I got a Wordpress 404 page.
The subdomains without PHP-FPM are fine.

Hope it helps
Regards

Lloyd
 
I solved the problem: the path
AWSTATS_TOOLS_D /usr/share/doc/awstats/examples
is wrong. It should be
AWSTATS_TOOLS_D /usr/share/awstats/tools

Seems the be a plesk bug? I think the problem appears, when the statistic generation is called from the command line (also via plesk).

This is how it works for me (ubuntu 14.04 + plesk 12)
AWSTATS_ETC_D /etc/awstats
AWSTATS_BIN_D /usr/lib/cgi-bin
AWSTATS_TOOLS_D /usr/share/awstats/tools
AWSTATS_DOC_D /usr/share/awstats
 
On my test Plesk 15 server on CentOS 6.6 server I see:

# grep AWSTATS_TOOLS_D /etc/psa/psa.conf
AWSTATS_TOOLS_D /usr/share/awstats
 
Back
Top