Re: Apache2 + PHP + MySQL
| From: | Adam Voigt | Date: | Fri, 07 Jun 2002 12:56:12 +0000 |
| Subject: | Re: Apache2 + PHP + MySQL | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-7252@lists.php.net to get a copy of this message | ||
Edit the force-cgi-redirect line in your php.ini file
in your windows folder.
Adam Voigt
adam.voigt@cryptocomm.com
On Fri, 2002-06-07 at 04:42, Tai T. Le wrote:
> Hi,
>
> I'm try to run Apache2 with PHP + MySQL on WinXP. Apache2 run with no
> problems. PHP install and configure but when I test it, it said something
> like :
>
> 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.
>
> Apache httpd.conf for php as follow:
>
> # AddType allows you to add to or override the MIME configuration
> # file mime.types for specific file types.
> #
> AddType application/x-tar .tgz
> ScriptAlias /php4/ "E:/web/php/"
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php .php3
> AddType application/x-httpd-php .php4
> Action application/x-httpd-php "c:/php/php.exe"
>
> Please help ! Thanks in advanced :)
>
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>