php-windows | 2002071
Date: 07/06/02
- Next message: Alexandr Polupanov: "[PHP-WIN] PHP Access violation"
- Previous message: Alex Francis: "[PHP-WIN] Problems installing PHP4 under PWS"
- In reply to: Alex Francis: "[PHP-WIN] Problems installing PHP4 under PWS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Alexandr Polupanov: "[PHP-WIN] PHP Access violation"
- Previous message: Alex Francis: "[PHP-WIN] Problems installing PHP4 under PWS"
- In reply to: Alex Francis: "[PHP-WIN] Problems installing PHP4 under PWS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

