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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

You don't have permission to access /cgi-bin on this server.

Status
Not open for further replies.

GNiessen

IS-IT--Management
Apr 20, 2001
3
US
I am trying to enable running CGI scripts on Apache 1.3.23 on Mandrake 8.2 where suExec appears to be running. This is a pretty plain install, but I have added:

ScriptAlias /scripts/ &quot;/<directory>/httpd/cgi-bin/&quot;

<Directory &quot;/<directory>/httpd/cgi-bin&quot;>
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>

But I still get the error that I don't have permission to run. And I am seeing that suexec is enabled, but I have not done anything to configure it. It is the base install from Mandrake.
 
It looks like it should work to me so there must be something else causing the error. If your permissions (using chmod) are set up so apache has access to the the directory, then the only thing I can think of is the way you are calling the cgi script. The way you have it defined in httpd.conf, the url would be The ScriptAlias directive is doing 2 things. It tells apache to treat everything in that directory as a script, and to pretend the directory is inside the DocumentRoot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top