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...
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.
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?
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.
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..)
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/