Jump to content

Security Alert! The PHP CGI cannot be accessed directly but redirect is 0


northern_devil

Recommended Posts

please help this is maddening

 

Security Alert! The PHP CGI cannot be accessed directly.

This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive.

 

advice says to set the following as -

 

doc_root =

 

cgi.force_redirect = 0

 

cgi.redirect_status_env = "yes"

 

as i'm running iis. the error only occurs when i'm calling the second site in the inetpub/wwroot folder. php is installed using the isapi method which works apart from when i call - http://secondsite/linktopage. if i enter http://mainsite/secondsite/linktopage the link works fine. am i missing something?

thanks for any suggestions

 

david

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.