Page 2 of 2

Setup

Posted: Sat Jun 22, 2002 2:51 pm
by kappar
Please Help I am useing PWS on Win 98 and useed the PHP installer because I am New to this and am trying to learn and taught the installer would be eaiser but i keep getting this error when trying to view my PHP Page I have been trying all day to fix this but can't any help.

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.

Posted: Sat Jun 22, 2002 5:30 pm
by Sevengraff
I would try Xitami server, PHP installs with it fine, but ive never gotten mysql to work with it. I use Xitami for local testing on my laptop.

Posted: Mon Jun 24, 2002 11:00 am
by Zmodem
I recall reading somewhere, that in order to get PWS to execute CGI correctly, you need to edit registry variables. I don't remember which though

There are tons of free web servers out there. Xitami/Apache are 2 that have already been mentioned, and are probably your best bet

Posted: Tue Jun 25, 2002 1:42 am
by twigletmac
Try editting your php.ini file (found in the Windows directory) so that:

Code: Select all

cgi_force_redirect=1
becomes

Code: Select all

cgi_force_redirect=0
I know this works to solve the same problem on IIS so it may help on PWS as well.

If that doesn't work you need to read this...

Mac