<div dir="ltr">When you say &quot;You can setup a separate fastcgi pool for each user&quot;, you mean system user?<br>Or is it possible with virtual users or something easier to manager like virtualusers from pure-ftpd?<br>
Using open_basedir for each user wouldn´t be enought?<br><br>Have PHP proccess runing outside the webserver is really a nice thing,<br>cause if it had any problem, only the php scripts will be affected ! :)<br><br><div class="gmail_quote">
On Tue, Jul 15, 2008 at 4:58 PM, mike &lt;<a href="mailto:mike503@gmail.com">mike503@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On 7/15/08, Marcos Neves &lt;<a href="mailto:marcos.neves@gmail.com">marcos.neves@gmail.com</a>&gt; wrote:<br>
&gt; For a shared hosting, what are the advantages of php-fpm over mod_php?<br>
<br>
</div>You can setup a separate fastcgi pool for each user. That way if their<br>
scripts get exploited, the only files they&#39;ll be able to mess with are<br>
that user.<br>
<br>
No more &quot;www-data&quot; or the webserver user owning every uploaded file on<br>
the system.<br>
<br>
Also, you&#39;ll be using FastCGI, not mod_php, which is tied in to the<br>
webserver. From the looks of it, based on Lighty, nginx, Zeus, etc...<br>
most people consider FastCGI the better method, since it does not tie<br>
up the webserver threads/processes/whatever with processing PHP. It<br>
should be more scalable. I think Litespeed&#39;s mod_php might work well<br>
too, but again - unless you can define a different uid/gid for each<br>
vhost and configure suEXEC how you want, different FastCGI pools is<br>
still the way to go.<br>
<br>
I&#39;d say php-fpm is even more useful for shared hosting since you can<br>
easily define multiple pools (one for each user for instance) - that&#39;s<br>
how I use it right now. The other key benefit (apache-style process<br>
spawning) is coming soon, not quite finished yet. Between both of<br>
those, that takes care of my two key desires.<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Marcos Neves<br>+55 44 3263-8132<br>+55 44 9918-8488
</div>