I am trying to write a small PHP web server in VB, having got all the environment vars to go in properly I am now struggling to find the answer to this question:
How do you turn off the security, or at least get around it!
When I try and view a page I get the following:
Content-type: text/html 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.
For more information as to why this behaviour exists, see the manual page for CGI security.
For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit the manual page.
I've tried changing the PHP.ini setting cgi.force_redirect to off, 0, no and any other negative thing I could think of to no avail --BB
How do you turn off the security, or at least get around it!
When I try and view a page I get the following:
Content-type: text/html 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.
For more information as to why this behaviour exists, see the manual page for CGI security.
For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit the manual page.
I've tried changing the PHP.ini setting cgi.force_redirect to off, 0, no and any other negative thing I could think of to no avail --BB