LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-15-2007, 01:55 PM   #1
koobi
Member
 
Registered: Jun 2006
Location: Colombo, Sri Lanka
Distribution: Ubuntu
Posts: 103

Rep: Reputation: 15
AWStats on Apache vhost. What am I doing wrong?


Hi,
I'm trying to install AWStats on a RH ES4 machine.

I've configured my Apache files but I get a 404 so I was hoping you guys could help me out

My AWStats files exist in /usr/share/awstats/wwwroot
My webserver document root is /var/www/vhosts/example.org/httpsdocs

It's a virual host so I edited this file:
Code:
/var/www/vhosts/example.org/conf/httpd.include
and added the following:
Code:
<VirtualHost 111.111.111.111:443>
    ServerName www.example.org
    ServerAlias example.org
    DocumentRoot /var/www/vhosts/example.org/httpsdocs
    ServerAdmin admin@example.org
</VirtualHost>
<VirtualHost 111.111.111.111:80>
    ServerName www.example.org
    ServerAlias example.org
    DocumentRoot /var/www/vhosts/example.org/httpdocs
    ServerAdmin admin@example.org
</VirtualHost>
in the hopes that this URL:
Code:
http://example.org/cgi-bin/awstats.pl?config=example.org
or

Code:
https://example.org/cgi-bin/awstats.pl?config=example.org
(just using HTTPS there) will both show me the AWStats UI.


I also have this in my httpd.conf:
Code:
#
# Directives to allow use of AWStats as a CGI
#
Alias /awstatsclasses "/usr/share/awstats/wwwroot/classes/"
Alias /awstatscss "/usr/share/awstats/wwwroot/css/"
Alias /awstatsicons "/usr/share/awstats/wwwroot/icon/"
ScriptAlias /awstats/ "/usr/share/awstats/wwwroot/cgi-bin/"

#
# This is to permit URL access to scripts/files in AWStats directory.
#
<Directory "/usr/share/awstats/wwwroot">
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

Does anyone see what I'm doing wrong?

Thanks for your time
 
Old 10-16-2007, 08:25 AM   #2
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
Your cgi-bin seems to map wrongly. Have you check your apache logs (check error_log)? Maybe it will tell you what error the system encountered.
 
Old 10-16-2007, 09:32 AM   #3
koobi
Member
 
Registered: Jun 2006
Location: Colombo, Sri Lanka
Distribution: Ubuntu
Posts: 103

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ghostdancer View Post
Your cgi-bin seems to map wrongly. Have you check your apache logs (check error_log)? Maybe it will tell you what error the system encountered.
that's what i thought too but my mapping is correct.

turns out the problem is that i had suexec running and since awstats was not in its docroot, it didn't permit the webuser to run it
 
  


Reply



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
Apache 2 vhost problem Pygobombe Linux - Software 0 05-07-2006 02:28 PM
Apache: Alias is working on ssl vhost but not on mass vhost jonavogt Linux - Software 0 06-07-2005 02:05 PM
vhost in apache jelgavchik Linux - Networking 3 02-07-2005 06:41 PM
Apache 2 vhost and permissions basse- Linux - Software 1 04-05-2004 07:48 AM
apache 1.3 vhost z4Rilla Linux - Software 0 08-03-2003 06:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:52 AM.

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