Hello all,
I have recently installed awstats and have been unable to access the awstats.pl script via apache.
System is as follows:
Ubuntu Breezy
AWStats version 6.4 (build 1.814)
Apache version 2.0.54
What do I need to do in httpd.conf so that I can call the awstats.pl script via
http://www.mydomain.com/awstats/awst...w.mydomain.com........ or something similar.
Currently in httpd.conf I have the following in the "main server" section:
---------------------------------------
#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
<IfModule mod_cgid.c>
#
# Additional to mod_cgid.c settings, mod_cgid has Scriptsock <path>
# for setting UNIX socket for communicating with cgid.
#
#Scriptsock logs/cgisock
</IfModule>
#
# "/usr/local/apache2/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/usr/local/apache2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
---------------------------------------
and below my VirtualHost containers I have the following:
---------------------------------------
#
# Directives to allow use of AWStats as a CGI
#
Alias /awstatsclasses "/usr/share/doc/awstats/examples/wwwroot/classes/"
Alias /awstatscss "/usr/share/doc/awstats/examples/wwwroot/css/"
Alias /awstatsicons "/usr/share/doc/awstats/examples/wwwroot/icon/"
ScriptAlias /awstats/ "/usr/share/doc/awstats/examples/wwwroot/cgi-bin/"
#
# This is to permit URL access to scripts/files in AWStats directory.
#
<Directory "/usr/share/doc/awstats/examples/wwwroot">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
----------------------------------------
I have no cgi related directives in my VirtualHost containers.
Currently my awstats.pl script is located /usr/lib/cgi-bin/awstats.pl
Something is not correct and I cannot seem to find it. Any help would be very appreciated.