HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Developers' Forum (http://www.howtoforge.com/forums/forumdisplay.php?f=18)
-   -   Why php as an apache module?? (http://www.howtoforge.com/forums/showthread.php?t=995)

yayien 25th October 2005 13:55

Why php as an apache module??
 
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 17: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 18: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 25th October 2005 23:35

yes me under debian but not with the package because it is too permissive so I compiled it..

Spum 26th October 2005 11: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 18: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 18: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/


All times are GMT +2. The time now is 07:14.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.