Welcome! Log In Create A New Profile

Advanced

Re: Best way to use PHP with nginx?

Juan Fco. Giordana
November 14, 2009 11:06AM
Jérôme Loyet wrote:
> 2009/11/13 John Moore <grails@jmsd.co.uk>:
>> Peter Leonov wrote:
>>> On 13.11.2009, at 16:45, John Moore wrote:
>>>
>>>> I have come across a handful of different methods detailed on the
>>>> Internet for getting PHP running with nginx, but haven't come across the
>>>> 'definitive' version. What method do the regular nginx users on here favour?
>>>>
>>>
>>> This thread might be of help:
>>> http://forum.nginx.org/read.php?2,15145,15401
>>> It's about complicated things (unstable nginx module, process
>>> supervising), so get ready ;)
>>>
>>>
>> I have an aversion to complicated things :). Actually, I gave the Tomasz
>> Sterna method a go on a new Ubuntu installation and it worked perfectly, and
>> is seemingly rather simpler than the previous method I've tried. I'm just
>> wondering why it's not universally adopted. What is the value of spawn-fcgi,
>> which Igor Sysoev give the thumbs-up to in the thread you mention?
>
> spawn-fcgi is almost the same thing, it's just a generic launcher for
> fastcgi processes with features like chroot or change owner. At the
> end, there is no spawn-fastcgi process running, as I said it's just a
> launcher.
>
> So spawn-fcgi and php-fastcgi are "kif kif" ("the same" in french) or
> in a shorter way : "the same shit" (not scalable, no fine management,
> no real chroot, ...)
>
> php-fpm is interesting but it has patch PHP to work, when a fully PHP
> supported version ? :)

php-fpm actually uses PHP's sources to build its own binary. AFAIK it
doesn't change anything in PHP itself.

You launch the daemon this way:

/usr/local/bin/php-fpm --fpm-config /usr/local/etc/php-fpm/php-fpm.conf

Work is being done to integrate the project on the main PHP tree.

Regards
Subject Author Posted

Best way to use PHP with nginx?

John Moore November 13, 2009 08:50AM

Re: Best way to use PHP with nginx?

vesperto November 13, 2009 08:56AM

Re: Best way to use PHP with nginx?

John Moore November 13, 2009 09:48AM

Re: Best way to use PHP with nginx?

John Moore November 13, 2009 09:48AM

Re: Best way to use PHP with nginx?

vesperto November 13, 2009 10:24AM

Re: Best way to use PHP with nginx?

Jérôme Loyet November 13, 2009 10:32AM

Re: Best way to use PHP with nginx?

vesperto November 13, 2009 10:38AM

Re: Best way to use PHP with nginx?

Arie Karhendana November 13, 2009 10:44AM

Re: Best way to use PHP with nginx?

Momchil Ivanov November 15, 2009 09:28AM

Re: Best way to use PHP with nginx?

Jérôme Loyet November 15, 2009 09:54AM

Re: Best way to use PHP with nginx?

Jérôme Loyet November 15, 2009 10:56AM

Re: Best way to use PHP with nginx?

Grzegorz Nosek November 16, 2009 04:16AM

Re: Best way to use PHP with nginx?

Peter Leonov November 13, 2009 11:08AM

Re: Best way to use PHP with nginx?

Grzegorz Nosek November 13, 2009 11:32AM

Re: Best way to use PHP with nginx?

Peter A Leonov November 13, 2009 02:12PM

Re: Best way to use PHP with nginx?

John Moore November 13, 2009 12:58PM

Re: Best way to use PHP with nginx?

Jérôme Loyet November 13, 2009 01:10PM

Re: Best way to use PHP with nginx?

Juan Fco. Giordana November 14, 2009 11:06AM

Re: Best way to use PHP with nginx?

William Dode November 15, 2009 12:50PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 173
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