#from httpd.conf
#For PHP/FI (PHP2) as a cgi binary
Addtype application/x-httpd-php2 .php .php2
Action application/x-httpd-php2 /cgi-bin/php.cgi
This works for the php2 cgi installation. It might work for php3,4 as well.
oktay
----- Original Message -----
From: "Chris Chan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 18, 2001 4:33 AM
Subject: [PHP] how to change from php Apache module to php CGI?
>
> I need the suexec feature. so i recompile the php4 to cgi. but i have
> hundreds of php scripts under the existing web site. it's not a easy task
to
> add the line
> #!/usr/local/bin/php
> to each php file.
>
> Anyone know is there any easy way to configure the httpd.conf without
modify
> hundreds of php files? Thanks in advance
>
> ----
> Chris Chan
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]