Re: PHP Security on Apache
| From: | Craig | Date: | Mon, 19 May 2003 15:02:21 +0000 |
| Subject: | Re: PHP Security on Apache | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-148169@lists.php.net to get a copy of this message | ||
Have a look here:
http://archives.neohapsis.com/archives/php/2003-04/0007.html
Then after reading that, have a look at the ini_set, this might work...not
100%
craig
"Jonathan Wilkes" <jonathan@callview.com> wrote in message
news:B7A83DB6E1CFD6119EA100A0C945122602D513@SWANSVR-01...
> I am VERY new to PHP (and I think it's very cool). but I am trying to get
a
> PHP script working (through Apache) that I have written, but keep on
getting
> the following error when I try to run it from one of my HTML pages.
>
> "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."
>
> I understand what the error means and that most of you would recommend
> removing the setting from the PHP configuration file on my web server, but
I
> cannot, I don't have access to that.
>
> I think that another solution would be to set an environment variable,
> "REDIRECT_STATUS", but I don't know what to or where....
>
> Has anyone else had to do this ? and can you help me ?
>
> thanks,
> Jonathan
>
>