• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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