Re: A good web platform
On Tue, Feb 14, 2006 at 02:07:56PM +0100, Stefano Cislaghi wrote:
> 2006/2/14, Marc Schiffbauer <marc@schiffbauer.net>:
> > * Stefano Cislaghi schrieb am 14.02.06 um 09:20 Uhr:
> > > 2006/2/14, Mark Bucciarelli <mark@easymailings.com>:
> > > > On Mon, Feb 13, 2006 at 04:52:25PM +0100, Stefano Cislaghi wrote:
> > > > fastcgi + suexec.
> > >
> > > Suexec have to be patched to use a different user in every vhost.
> >
> > Not, if you install a different small suexec-wrapper for every
> > vhost.
>
> Can u suggest one?
#!/bin/sh
# The location of the php.ini file.
PHPRC="/usr/local/etc"
export PHPRC
# Number of child processes to fork.
PHP_FCGI_CHILDREN=1
export PHP_FCGI_CHILDREN
# Number of requests each child should process before exiting.
# Used to deal with any potential memory leaks in PHP apps.
# Default 500
PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_MAX_REQUESTS
exec /usr/local/fastcgi/php5/cgi-bin/php-fcgi
Realize that you spawn one php process for every vhost this way.
m
Reply to: