• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

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