S
S
Silver_Clash2012-10-15 22:38:02
PHP
Silver_Clash, 2012-10-15 22:38:02

Php-fpm vs spawn-fcgi, which one to choose?

Actually the question is in the title.
The situation is this: There is a certain spherical customer in a vacuum, he uses servers on RHEL (with a subscription, everything is as it should be), and he needs to install some kind of spherical software written in php. Spherical software works great on Apache + mod_rewrite, but setting everything as usual is not sporty - I want to practice setting up nginx (and there are several chips in the backlog that can be beautifully implemented on nginx).
The main question is, the customer's administrators are harsh guys, and they install only the packages included in the distribution, and if they can be persuaded to use EPEL somehow, then building from source is not an option.
Hence the main problem, with php-fpm you need to patch php, so you have to pick it yourself (oh, how you don’t want to pick with someone else’s server), with spawn-fcgi everything is set through yum.
Maybe the habra community will be able to suggest how to install php + php_fpm without a tambourine, using yum, or will be able to give arguments for and against each option?

Answer the question

In order to leave comments, you need to log in

7 answer(s)
A
Anton Anikin, 2012-10-15
@ColorPrint

FPM seems to have been supported in PHP for a long time, nothing needs to be patched.

Y
YourChief, 2012-10-15
@YourChief

and what prevents you from using your own repository with your own php5-fpm assembly?

P
Puma Thailand, 2012-10-16
@opium

I always install php-fpm in centos from the repository, it seems to be in epele, I haven’t installed it from the raw ones for 5 years

S
Sergey Fedotov, 2012-10-16
@FSA

That's just the spawn-cgi you need to pick. But php-fpm is included in PHP 5.3.3 and higher. There is no need to do any extra movements. Installed without problems on FreeBSD, Gentoo and Ubuntu. I have not tried it on other systems, but I do not think that there will be problems.
All you need to do is specify the address and port or socket where php-fpm will listen. Well, set nginx, lighttpd or apache (to taste) on it accordingly.
I will not say anything about work under load. My load is weak, but the server is not the most powerful either (regular PIV computer, 512Mb). To be honest, in this mode I don’t see any difference between nginx, lighttpd, spawn-cgi, php-fpm. Tried all options. I would be grateful if someone tests different bundles under load.

B
Boris Syomov, 2012-10-16
@kotomyava

A fairly reasonable solution would be not to abandon Apache at all, while putting nginx in front of it as a reverse proxy, and at the same time using the Nginx chips you need.
Overhead, from memory, is insignificant in comparison with fastcgi, the performance is often even higher. Plus, more monitoring options, due to Apache, which can be very useful.
Two problems are solved at once - there is no need to butt heads with admins because of the repositories, and at the same time you can easily use the Nginx capabilities you need.

A
Amadeusck, 2012-10-15
@Amadeusck

Centos.alt.ru

W
winbackgo, 2012-10-16
@winbackgo

Remi reps have php-fpm rpms.famillecollet.com/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question