[CentOS] php-fpm on centos 6

Sat Aug 23 05:59:35 UTC 2014
Jason Woods <devel at jasonwoods.me.uk>

> On 22 Aug 2014, at 21:27, Александр Кириллов <nevis2us at infoline.su> wrote:
> 
> Does it? There's mod_fastcgi in rpmforge but I don't feel
> quite comfortable with packages from this repo.
> 
> Eero Volotinen писал 2014-08-22 22:46:
>> Remi repo provides it?
>> 22.8.2014 20.59 kirjoitti "Александр Кириллов" <nevis2us at infoline.su>:
>> 
>>> What's the story with php-fpm on centos 6?
>>> There's a php-fpm rpm for centos 6 in epel but other essential mods 
>>> like
>>> mod_fastcgi or mod_proxy_fcgi
>>> seem to be missing from the repos I'm usually using. Need a push in
>>> right direction.

mod_fastcgi is extremely old and dead. If I remember it is superseded by mod_fcgid which became part of the Apache core and actively maintained (or something, sry this is from memory many years ago)

mod_proxy_fcgi is also very much dead. Not updated since 2006.

EPEL has mod_fcgid in it and you should absolutely use it, along with suexec, if you need fcgi process mamagement for php-cgi.

When using php-fpm you do not need any of the above modules as the above modules are fpms that interact with cgi processes having fastcgi support (such as php-cgi).

php-fpm IS an fpm, written by PHP team. If you want to use php-fpm as the fpm you merely need to use mod_proxy as-is since php-fpm is pretty much a stand alone server - you just proxy your php request to it with ProxyPass.

For simple servers like pure PHP you may benefit greatly speed wise from Nginx, and support from PHP software (WordPress / Drupal etc) is now very wide. For huge feature sets, modules, and variety, Apache though.

Hope this helps. I'd been running LAMP stacks for over 6 years and LNMP for last 2.

Jason