Re: Problems installing PHP4 under PWS
| From: | Christoph Grottolo | Date: | Sat, 06 Jul 2002 19:50:19 +0000 |
| Subject: | Re: Problems installing PHP4 under PWS | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-14573@lists.php.net to get a copy of this message | ||
Alex Francis wrote:
> I have installed PHP4 under PWS and when I test using the command
> prompt it seems to work alright. However when I try to run a test php
> script through the browser I get the following error:
>
> "Security Alert! 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. This variable is set, for example, by Apache's Action
> directive redirect.
>
> I have tried setting cgi.force_redirect=0 and it makes no difference.
>
If you use 4.2.1 try to put a ; behind the base_dir setting in php.ini - it
helped for me (but I really don't know why and others couldn't reproduce
that). Please post if you have success with that.
> I have also installed apache, but am not sure if I need to remove PWS
> to use it.
You don't, but make shure they're not running at the same time on the same
Port (80).
Christoph