Jump to content

CGI Problem?


pkallberg21

Recommended Posts

Hello!

 

I am having trouble my Apache webserver to work with CGI, so it would be nice if someone could help me get it up and running. I have followed this guide so far:

 

http://www.thesitewizard.com/archive/addcgitoapache.shtml

 

When I try to enter the cgi proxy url, I get this:

 

Forbidden

 

You don't have permission to access /cgiproxy/nph-proxy.cgi/010110A/x-proxy/start on this server.

Is this something to do with permissions, or have I done something wrong with the CGI installation?

 

Checking through the logs, it seems as though there is a problem with permissions. Here is an extract of when I try to access the cgi file:

[Tue Jul 17 00:08:33 2007] [error] [client ***IP***] "use" not allowed in expression at D:/Program Files/Apache Software Foundation/Apache2.2/htdocs/cgiproxy/nph-proxy.cgi line 151, at end of line\r, referer: http://***IP***/

[Tue Jul 17 00:08:33 2007] [error] [client ***IP***] syntax error at D:/Program Files/Apache Software Foundation/Apache2.2/htdocs/cgiproxy/nph-proxy.cgi line 151, near "use strict "\r, referer: http://***IP***/

[Tue Jul 17 00:08:33 2007] [error] [client ***IP***] BEGIN not safe after errors--compilation aborted at D:/Program Files/Apache Software Foundation/Apache2.2/htdocs/cgiproxy/nph-proxy.cgi line 152.\r, referer: http://***IP***/

What do I have to edit in the conf file to allow access to this file?

 

Link to comment
https://forums.phpfreaks.com/topic/60363-cgi-problem/
Share on other sites

Looks like there is a problem with the script, and that is why you get the aborted message in the error logs.  However, that type of problem is using followed my a client response of internal server error.  I'm not sure why you are getting a forbidden message.  Is that all there is in the log file, or is there another message that says client denied?

Link to comment
https://forums.phpfreaks.com/topic/60363-cgi-problem/#findComment-303084
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.