northern_devil Posted April 28, 2009 Share Posted April 28, 2009 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 Link to comment https://forums.phpfreaks.com/topic/156034-security-alert-the-php-cgi-cannot-be-accessed-directly-but-redirect-is-0/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.