Re: PHP as CGI in Apache

From: Date: Fri, 11 Apr 2003 20:00:22 +0000
Subject: Re: PHP as CGI in Apache
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-10585@lists.php.net to get a copy of this message
Just a comment, we are using PHP CGI's with Apache, because we wanted that all PHP scripts of our users be executed via suexec wrapper ... much more security that way. I think those few config lines will fix your problem ... gimme some feedback. AddType application/x-httpd-php .php .php4 .php3 .phtml AddType application/x-httpd-php-source .phps Action application/x-httpd-php /cgi-bin/php <IfModule mod_alias.c> ScriptAlias /cgi-bin/ "/www/cgi-bin/" <Directory "/www/cgi-bin"> AllowOverride None Options -Indexes +ExecCGI SetHandler cgi-script Order allow,deny Allow from all </Directory> </IfModule> Comment out the line "AddHandler cgi-script .cgi" --------------------------------------------------- Frederic Trudeau PHP Coder, Colocation, Development ftrudeau@cam.org 514.529.3000 ext. 246 ----- Original Message ----- From: "Aaron Smith" <asmith@nexcerpt.com> To: <php-install@lists.php.net> Sent: Friday, April 11, 2003 3:02 PM Subject: [PHP-INST] PHP as CGI in Apache

« previous php.install (#10585) next »