• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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