|
-
Jan 13th, 2003, 04:52 PM
#1
PHP and PWS *resolved*
Hi,
I just downloaded the PHP Window binary from http://www.php.net/downloads.php
I chose this one:
PHP 4.3.0 installer [1,028Kb] - 27 December 2002
(CGI only, MySQL support built-in, packaged as Windows installer to install and configure PHP, and automatically configure IIS, PWS and Xitami, with manual configuration for other servers. N.B. no external extensions included)
md5: a64138b56c49df8a2b4ff099a6ee0611
so that it could go with my PWS. It installed, and restarted.
Now, I'm unable to run any PHP files. I tried this simple script from webmonkey:
PHP Code:
<html>
<body>
<?php
print ("I am the CHICKEN MAN");
?>
</body>
</html>
But I get this error:
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 opened up php.ini, and this is the closest I could get to anything:
; cgi.force_redirect is necessary to provide security running PHP as a CGI under
; most web servers. Left undefined, PHP turns this on by default. You can
; turn it off here AT YOUR OWN RISK
; **You CAN safely turn this off for IIS, in fact, you MUST.**
; cgi.force_redirect=1
; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
; will look for to know it is OK to continue execution. Setting this variable MAY
; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
; cgi.redirect_status_env=;
Help!!!!
Last edited by mendhak; Jan 13th, 2003 at 05:05 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|