PHP Security on Apache

From: Date: Mon, 19 May 2003 13:18:54 +0000
Subject: PHP Security on Apache
Groups: php.general 
Request: Send a blank email to php-general+get-148160@lists.php.net to get a copy of this message
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

« previous php.general (#148160) next »