Google Answers Logo
View Question
 
Q: Apache server on Windows XP--permission error on .cgi files ( No Answer,   1 Comment )
Question  
Subject: Apache server on Windows XP--permission error on .cgi files
Category: Computers > Internet
Asked by: lando00-ga
List Price: $10.00
Posted: 24 Feb 2006 21:55 PST
Expires: 26 Mar 2006 21:55 PST
Question ID: 700716
I am running the Apache 2 webserver on my Windows XP laptop. I am able
to run PHP and MySql, but when trying to run a basic CGI script, I get
the following error:
You don't have permission to access /hello.cgi on this server.

I've read the documentation for Apache, and have changed the httpd
file (and restarted the server) with the following lines:
 ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache2/cgi-bin/"
and
<Directory "C:/Program Files/Apache Group/Apache2/cgi-bin">
    AllowOverride None
    Options FollowSymLinks +ExecCGI 
    Order allow,deny
    Allow from all
</Directory>
the hello.cgi file is located in the above directory.
This is obviously not a file security issue (Windows XP, remember?),
so I'm trying to figure out what else I need to set up to allow Apache
to run this and obviously other .cgi files.
Answer  
There is no answer at this time.

Comments  
Subject: Re: Apache server on Windows XP--permission error on .cgi files
From: honghec-ga on 07 Mar 2006 01:05 PST
 
1,install perl for win32

2,Open httpd.conf file, find AddHandler, and delete # in #AddHandler
cgi-script .cgi to change it into AddHandler cgi-script .cgi

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy