Re: Running PHP as CGI

From: Date: Sat, 27 Nov 2004 05:53:52 +0000
Subject: Re: Running PHP as CGI
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-202930@lists.php.net to get a copy of this message
I guess what I'm really asking is do the php_admin environment variables that can get set in Apache get passed to the CGI version of php when called as a CGI ? Tim. Curt Zirzow wrote:
* Thus wrote Tim Traver:
Hi all, In the quest to secure php script running, I am starting to think about running php as a cgi instead of through the module. I generally set the open_basedir directory within the apache configuration file for individual hosts. If I ran php as a CGI, would that directive still be in effect ? or do I have to set that in a php.ini file that is specific for that virtual host ?
The directive will be effectve for which ever apache's <Directory> direcve applies, other wise the setting to the default directory will be used. php in general, has no clue about virtual hosts. This is rather a appache issue. Curt


« previous php.general (#202930) next »