LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-20-2006, 09:46 PM   #1
rmarkin
LQ Newbie
 
Registered: Sep 2003
Location: Fernley, NV
Posts: 18

Rep: Reputation: 0
Call awstats.pl problem


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.
 
Old 04-20-2006, 11:48 PM   #2
rmarkin
LQ Newbie
 
Registered: Sep 2003
Location: Fernley, NV
Posts: 18

Original Poster
Rep: Reputation: 0
Hello,

If somebody could show me their relevant directives regarding awstats and cgi-bin in httpd.conf that would be very helpful. Along with where you keep your awstats.pl script.

Thanks again,
Robert
 
Old 04-21-2006, 01:12 AM   #3
rmarkin
LQ Newbie
 
Registered: Sep 2003
Location: Fernley, NV
Posts: 18

Original Poster
Rep: Reputation: 0
I figured it out!!

I simply needed to change the ScriptAlias directive in httpd.conf to point to where my awstats.pl script actually was and voila, it works.

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Awstats : update problem gerilaradio Slackware 2 01-03-2006 09:31 AM
Awstats problem gerilaradio Slackware 2 01-03-2006 06:27 AM
Awstats : update problem gerilaradio Slackware 1 01-03-2006 05:14 AM
Problem with awstats Tamara Linux - General 2 11-04-2005 12:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration