View Full Version : Why php as an apache module??
yayien
25th October 2005, 14:55
All is in the title... I don't understand why you run php as an apache module whereas we can use cgi and so run each php script by his owner so simply...
falko
25th October 2005, 18:54
You can run PHP as cgi. Simply check CGI in the web site settings, and if you have configured PHP as cgi, it should work. :)
till
25th October 2005, 19:02
Generally PHP is faster with apache mod_php, the drawback is that everything runs under the permissions of the webserver user. A solution might be the use of suphp. Does anyone tried this?
yayien
26th October 2005, 00:35
yes me under debian but not with the package because it is too permissive so I compiled it..
Spum
26th October 2005, 12:44
Hmm, yeah - but there are some advantages to running PHP as an apache module, mainly because of the integration, and also that it's handled by apache, as opposed to having to pass arguments through the binary.
yayien
26th October 2005, 19:40
Yes but php scripts will not be run by apache user, but by the currently user..(because under apache there is a big exploit with uploading scripts..)
till
26th October 2005, 19:45
Maybe we shall have a look at suPHP. This enables PHP to run under individual users with the good integration and fast execution of mod_php.
The website of the project is:
http://www.suphp.org/
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.