[Xitami] Installing PHP

Thomas Løcke xitami@lists.xitami.org
Sun, 7 Jul 2002 23:24:34 +0200


If you're running Xitami under Windows you have to disable the
cgi.force_redirect. Locate it in the php.ini file and change it to 0. At
least that was how I made it work.. :o)

Regards
Thomas


----- Original Message -----
From: "Otto" <xitami@lanjouw.com>
To: <xitami@lists.xitami.org>
Sent: Sunday, July 07, 2002 11:01 PM
Subject: [Xitami] Installing PHP


> I have installed PHP. when i test it on localhost it's working fine.
> When i test it remote i get the following error message:
>
> ***********
> 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.
> ***********
>
> In my php.ini file i have this:
>
> ; 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 = ;
>
> any ideas?
>
>
>
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami