• 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

2 problems with AWstats

U

unsichtbarre

Guest
Hi all,
I have two, seemingly simple, and possibly related problems with Awstats:

Statistics do not update automatically. Rather I have to run
/usr/local/psa/admin/sbin/statistics
to manually refresh the statistics.

Awstats reports are missing all images. This is new, only since updating to 8.2.

Anyone have a solution to these?

-John

awstats 6.5-3.fc4
bind 9.3.1-20.FC4
coldfusion Component was not installed
coldfusion-support Component was not installed
courier-imap 3.0.8-fc4.build82070706.15
drweb Component was not installed
drweb-qmail Component was not installed
frontpage Component was not installed
httpd 2.0.54-10.4
mailman Component was not installed
mod_perl 2.0.1-1.fc4
mod_python 3.1.4-2
mysql 4.1.20-1.FC4.1
perl-Apache-ASP 2.59-fc4.build80060613.20
php 5.0.4-10.5
postgresql-server Component was not installed
psa 8.2.0-fc4.build82070706.15
psa-api-rpc 8.2.0-fc4.build82070706.15
psa-autoinstaller 3.1.0-build31061201.02
psa-backup-manager 8.2.0-fc4.build82070706.15
psa-horde 3.1.4-fc4.build82070706.15
psa-imp 4.1.4-fc4.build82070706.15
psa-logrotate 3.7-fc4.build82070706.15
psa-manual-custom-skin-guide 8.2.0-fc4.build82070706.15
psa-migration-manager 8.2.0-fc4.build82070706.15
psa-miva Component was not installed
psa-mod-fcgid-configurator Component was not installed
psa-proftpd 1.3.0-fc4.build82070706.15
psa-qmail 1.03-fc4.build82070706.15
psa-qmail-rblsmtpd 0.70-fc4.build80060613.20
psa-rubyrails-configurator Component was not installed
psa-spamassassin 8.2.0-fc4.build82070706.15
psa-tomcat-configurator 8.2.0-fc4.build82070706.15
psa-turba 2.1.3-fc4.build81070322.16
ruby 1.8.4-3.fc4
samba 3.0.23a-1.fc4.1
spamassassin 3.0.6-1.fc4
SSHTerm 0.2.2-fc4.build81061129.22
tomcat 5.0.30-5jpp_6fc
webalizer 2.01_10-28
 
awstats.conf

The error message recorded in my logs is:

[Wed Aug 08 11:22:19 2007] [error] [client 24.121.65.188] File does not exist: /var/www/html/awstats, referer: http://www.mydomain.com/plesk-stat/ftpstat/

yet the contents of my awstats.conf file (which look correct) are:
Code:
#
# Content of this file, with correct values, can be automatically added to
# your Apache server by using the AWStats configure.pl tool.
#

#
# Directives to add to your Apache conf file to allow use of AWStats as a CGI.
# Note that path "/usr/share/awstats/" must reflect your AWStats install path.
#
Alias /awstatsclasses/ "/usr/share/awstats/wwwroot/classes/"
Alias /awstatscss/ "/usr/share/awstats/wwwroot/css/"
Alias /awstatsicon/ "/usr/share/awstats/wwwroot/icon/"
ScriptAlias /awstats/ "/usr/share/awstats/wwwroot/cgi-bin/"

#
# This is to permit URL access to scripts/files in AWStats directory.
#
<Directory "/usr/share/awstats/wwwroot">
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
# Additional Perl modules
<IfModule mod_env.c>
    SetEnv PERL5LIB /usr/share/awstats/lib:/usr/share/awstats/plugins
</IfModule>
"awstats.conf" 27L, 870C
 
Okay I can help you.

By your post I see that:

awstats 6.5-3.fc4

So your using an updated awstats not plesks one.

Your going to have to play with some files and restart httpd

Lets fix it (some of the files may be changed but please check):

(/etc/psa/psa.conf)



find

# AWStats

AWSTATS_ETC_D /etc/awstats

AWSTATS_BIN_D /var/www/cgi-bin/awstats

AWSTATS_TOOLS_D /usr/share/awstats
AWSTATS_DOC_D /var/www/html/awstats



change to



AWSTATS_ETC_D /etc/awstats

AWSTATS_BIN_D /usr/share/awstats/wwwroot/cgi-bin

AWSTATS_TOOLS_D /usr/share/awstats/tools
AWSTATS_DOC_D /usr/share/awstats/wwwroot

#Broken Images in reports

You will have to modify every single domain httpd.include on your server.
#
#/var/www/vhosts/'domain'/conf/httpd.include
#
#Find:
#Alias /awstats-icon /var/www/html/awstats

or may be:
#Alias /awstats-icon /usr/share/awstats/wwwroot/icon
#
#Replace:
#

#Alias /awstats-icon /var/www/html/awstats-icon

As root:
ln -s /usr/share/awstats/wwwroot/icon /var/www/html/awstats-icon


The reason the images are broken is selinux forbids you to use /usr/share in your http.

So we have to symlink the /usr/share/awstats/wwwroot/icon back around to /var/www/html/awstats-icon and then you will see the images.
 
Back
Top