Forum Moderators: coopster

Message Too Old, No Replies

Installing PHP as CGI or Apache Module

         

Frank_Rizzo

10:43 am on Jan 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There are 2 ways to run PHP. One as an apache module, the other as CGI.

What are the speed and security differences between them?

Can they both exist at the same time? Or is it one or the other only?

If I have the Apache Module version working fine on Debian and I now run a

apt-get install php-cgi

will that just install the extra CGI version or does it remove the module version at the same time?

scatcat

12:08 pm on Jan 13, 2004 (gmt 0)

10+ Year Member



I don't know all the answers, but I was just this minute installing php on apache.

If you read the install notes there is a note there that says if you install php as cgi they consider it to be suicide!, re the security aspect.

As far as I can see you should only install it in one form, not both.

Take a look at the documentation at www.php.net.

Regards

coopster

12:23 pm on Jan 13, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Similar discussion:
PHP as CGI or Apache Module [webmasterworld.com]

Frank_Rizzo

1:06 pm on Jan 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'd would be good to install both module and CGI versions. If this is not possible then that's a pity.

Timotheos

4:24 pm on Jan 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Supposedly it's possible. See message #10 in this thread [webmasterworld.com].