homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

CGI Permission denied

 12:37 pm on Nov 6, 2004 (gmt 0)

I have installed Fedora 2 with Apache 2.0.49. Whenever I'm trying to run any CGI files under user home directories (ScriptAlias /cgi-bin/ "/home/cricket/public_html/cricket") I got "Forbidden". Below apache logs.

error_log :
[Sat Nov 06 15:31:55 2004] [error] [client #*$!] (13)Permission denied: access to /cgi-bin/printenv.cgi denied

access_log :
#*$!- - [06/Nov/2004:15:31:55 +0300] "GET /cgi-bin/printenv.cgi HTTP/1.1" 403 430

But if I change the ScriptAlias in httpd.conf and point to /var/www/cgi-bin and try to run the same script...it is ok.



 9:25 am on Nov 8, 2004 (gmt 0)

ScriptAlias is normally used to map a directory that is outside your document root. I'm not sure it works for folders that are already part of your web space.


ScriptAlias /cgi-bin/ "/home/cricket/cgi-bin"

and move your cgi to:


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved