Click to See Complete Forum and Search --> : Best way to run php as current user


bsgrules
07-28-2006, 02:16 PM
I used to have a shared account with dreamhost (http://dreamhost.com) where they have a very nice setup. They have php setup so it runs as the current user rather than the standard apache user which is how I'd like to have my server setup. My questions are, 1. what are my options? 2. What's the easiest and most efficient method to setup php like this?

I'm running debian, with apache2, mysql 5, and php as an apache module. Can someone please point me in the right direction...a howto or tutorial on phpsuexec or whatever other options i have.

NOTES: I've tried using this howto on SUPHP (http://www.howtoforge.com/apache2_suphp_php4_php5_p3) and I failed. Followed it to the nose and couldn't get it to work.

bsgrules
07-28-2006, 05:56 PM
Ok i actually got this working.
I tried again using this howto and got it working.
http://www.howtoforge.com/apache2_suphp_php4_php5_p3

I installed php5-cgi and then suphp and configured everything and its running fine...Does anyone know how much more resources this will take as opposed to running php as apache module.

mrtechguy
07-31-2006, 08:18 AM
It would probably take a few more as there are two different processes not just the one

MTG