• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Running AWStats as CGI

C

crispy78

Guest
I'm trying to run AWstats as an CGI (mostly because I want the menubar on the left instead on top). U till now I can't seem to get it to work.

I'm running OpenSuse 10.2 with Plesk 8.3.

In my httpd.conf (located in /etc/apache2/) I've added the following:
#
# Directives to allow use of AWStats as a CGI
#
Alias /awstatsclasses "/srv/www/cgi-bin/awstats/"
Alias /awstatscss "/usr/share/apache2/icons/awstats/css/"
Alias /awstatsicons "/usr/share/apache2/icons/awstats/icon/"
ScriptAlias /awstats/ "/usr/share/awstats/wwwroot/cgi-bin/"

#
# This is to permit URL access to scripts/files in AWStats directory.
#
<Directory "/srv/www/cgi-bin/awstats">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<Directory "/usr/share/apache2/icons/awstats/css">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<Directory "/usr/share/apache2/icons/awstats/icon">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<Directory "/usr/share/awstats/wwwroot/cgi-bin">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>

In the Awstats-configuration files (awstats.model.conf located in /usr/local/psa/etc/awstats/) I've changed:
AllowToUpdateStatsFromBrowser=0
into
AllowToUpdateStatsFromBrowser=1

In the Plesk-configuration file (psa.conf located in /etc/psa/) I've changed the standard values to:
# AWStats
AWSTATS_ETC_D /etc/awstats
AWSTATS_BIN_D /srv/www/cgi-bin/awstats
AWSTATS_TOOLS_D /usr/share/awstats
AWSTATS_DOC_D /usr/share/apache2/icons/awstats

And I've chmodded awstats.pl to 755 (with chmod 755 awstats.pl).

Any idea's how to get AWstats working as a CGI-application?
 
Actually I can't help you with awstats-cgi :)
But remember, that cgi mode in AWStats is insecure with a lot of vulnerabilities reported.
 
Any idea how to get the menu on the side instead of on top?
 
Back
Top