Welcome! Log In Create A New Profile

Advanced

Re: Launch FastCGI process?

Johan Bergström
October 21, 2009 02:20AM
Hey,
my take on "why shouldn't nginx spawn php" below.

On 21 okt 2009, at 07.44, jlist9 wrote:

> Hi Igor,
>
> In fact, if it's integrated it is already better :-)
>
> Although lighttpd has the spawn-fcgi tool, it still integrates this
> functionality
> into lighttpd itself and this makes setting up simple servers and
> managing
> them a lot more easier!
>
> As a matter of fact, I don't quite understand why the replies so far
> are mostly
> negative about integrating a nice feature into nginx. I think a lot
> of lighttpd
> users are using this feature and like it a lot. It's only an option
> in lighttpd
> and you don't have to use it. Phillip mentioned that if a child
> process is
> bad it may bring down the web server. I have never seen this myself.
> What I have seen is, if the fcgi process throws an exception and
> exits,
> lighttpd automatically starts another one. How nice! I really hope
> nginx
> does it, too!

That's because it's not a web servers job to handle php (or python or
whatever). Php-fpm already does a splendid job of spawning and
maintaining php processes, so I think you should look into that.

Coming from an Apache-world it would probably make sense for nginx to
handle "everything" in your web sphere, but one of the reasons Nginx
is so fast and agile is that its focus is handling http requests and
passing them along, not the other stuff.

>
>> nginx will never do it better than simple spawn-fcgi from lighttpd
>> package,
>> so I see any advantage of reimplenting spawn-fcgi.
>>
>>
>> --
>> Igor Sysoev
>> http://sysoev.ru/en/
>
Subject Author Posted

Launch FastCGI process?

jlist9 October 20, 2009 04:30AM

Re: Launch FastCGI process?

Phillip Oldham October 20, 2009 05:58AM

Re: Launch FastCGI process?

Denis F. Latypoff October 20, 2009 06:14AM

Re: Launch FastCGI process?

jlist9 October 20, 2009 08:32PM

Re: Launch FastCGI process?

Roger Hoover October 20, 2009 08:58PM

Re: Launch FastCGI process?

jlist9 October 21, 2009 01:42AM

Re: Launch FastCGI process?

Igor Sysoev October 20, 2009 09:20AM

Re: Launch FastCGI process?

jlist9 October 21, 2009 01:50AM

Re: Launch FastCGI process?

Johan Bergström October 21, 2009 02:20AM

Re: Launch FastCGI process?

Phillip Oldham October 21, 2009 03:44AM

Re: Launch FastCGI process?

jlist9 October 21, 2009 01:30PM

Re: Launch FastCGI process?

jlist9 October 21, 2009 01:30PM

Re: Launch FastCGI process?

Grzegorz Nosek October 21, 2009 02:14PM

Re: Launch FastCGI process?

Grzegorz Nosek October 21, 2009 02:54AM

Re: Launch FastCGI process?

Phillip Oldham October 21, 2009 03:44AM

Re: Launch FastCGI process?

Kiswono Prayogo October 21, 2009 04:06AM

Re: Launch FastCGI process?

Grzegorz Nosek October 21, 2009 04:24AM

Re: Launch FastCGI process?

Phillip Oldham October 21, 2009 04:38AM

Re: Launch FastCGI process?

Grzegorz Nosek October 21, 2009 04:48AM

Re: Launch FastCGI process?

Roger Hoover October 21, 2009 02:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 174
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready