Re: how to change from php Apache module to php CGI?
| From: | Oktay Altunergil | Date: | Sun, 18 Mar 2001 16:03:18 +0000 |
| Subject: | Re: how to change from php Apache module to php CGI? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-44439@lists.php.net to get a copy of this message | ||
#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" <chris@hkseek.com>
To: <php-general@lists.php.net>
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: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net