Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache on XP, forbidden CGI scripts 403

Status
Not open for further replies.

MrPhreaker

Programmer
Jun 20, 2003
19
GB
Hi all

I have installed Apache on my XP pro system and all was working fine until this weekend when I did something late at night to cause cgi scripts to stop working.

As far as I can remember all I was making amendments to was the http.conf file and adding files and directories under the cgi-bin directory of my machine.

The problem I have is that now I cannot execute ANY scripts.

As you know, windows does not do CHMOD commands so I have gone into the security tab for cgi-bin directory properties and I have given all permissions to the EVERYONE group including execute.

I have also got an alias in the http.conf file of:

Alias /cgi-bin/ "C:/Apache/cgi-bin/"

And a script alias:

ScriptAlias /cgi-bin/ "C:/Apache/cgi-bin/"

And :

<Directory "C:/Apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>


I am stuck as to what has caused this error ? Is it the permissions I need to look at ? As far as I know this is correct but I need clarification from someone who knows.


Any other suggestions most welcome.



Greg
 
You don't need the Alias directive since that's one of the jobs of ScriptAlias. I don't see any problems with how you have cgi-bin configured in httpd.conf. Are you using mod_perl or do you have perl installed? What kind of "amendments" did you make to httpd.conf?
 
Just to let you know I have this working again.

Just for the sake of archiving the resolution, I did the following :

Granted all groups the correct permissions.

Removed a typo from httpd.conf (doh !)

Rebooted apache.


Thanks for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top