handle mod_fastcgi

10 posts / 0 new
Last post
#1 Sat, 02/19/2011 - 14:45
AleFranz

handle mod_fastcgi

Hi, I'm looking towards mod_fastcgi to use php-fpm. There is any plan to handle the "old" mod_fastcgi (I think there are no more problems between suexec and mod_fastcgi)? or some trick to let virtualmin write fastcgi handlers in apache2 configuration? I'm looking for the cleanest strategy to deploy and handle php-fpm. Thanks!

Sun, 02/20/2011 - 22:40
andreychek

Hmm, I don't know of a way to make that work.

Whenever selecting mod_php, CGI, or FCGID, a special line is added to the Apache config. Unfortunately, there's no way to specify a custom entry there.

Seeing as they're looking to include PHP-FPM support within PHP releases, it may make sense to support that, or to at least offer a way to allow custom PHP execution modes :-)

I'll explore how all that works, and talk to Joe and Jamie about that this week :-)

Thanks for the heads up!

-Eric

Sun, 03/27/2011 - 08:02
AleFranz

Hi, have you got any time to take a look into this? PHP-FPM is already bundled with PHP 5.3 and I think this could be very useful to a lot of people, specially to optimize the use of APC.

Sun, 03/27/2011 - 10:59
andreychek

Yeah, looking into that is on the todo list. We discussed it the other day, Joe is going to take a look into that and see what would go into supporting it.

-Eric

Mon, 04/04/2011 - 12:36
atz6975

I see here that fpm and mod_deflate may cause some problems on ubuntu 10.04 + Deb

In case you support fastcgi, is this something Virtualmin would warn against ? I'm not sure it is Virtualmin role to check against this "hidden/rare" issues...

Using many vhosts through fpm+mod_fcgi wrapper solution is a bit tedious and mod_fastcgi while "older" does solve this nicely with external calls.

Thanks for listening and considering this in the first place.

Mon, 04/04/2011 - 12:41
andreychek

Well, at the moment, Virtualmin doesn't support fastcgi. From what I understand, PHP-FPM requires fastcgi, it wouldn't work with the Virtualmin supported FCGID module.

Now, that's all something we're exploring. We're looking into PHP-FPM to explore the idea of supporting it alongside fastcgi.

I'm not sure if fcgid contains that bug, or if it's just an issue with fastcgi. However, until the version of fastcgi being used by Ubuntu incorporates that fix, you probably wouldn't want to use fastcgi and deflate together (or, you'd want to manually apply the patch they offered).

-Eric

Mon, 11/21/2011 - 12:26
nosco

FPM could be great asset for Drupal, also ApacheSOLR support would be great. ;)

Fri, 02/03/2012 - 09:10
PlayGod

Is there any change to the status of fpm and fastcgi?

Wed, 03/28/2012 - 13:56
Mick27

bump in the question as I am interested in php-fpm too.

Wed, 06/06/2012 - 14:46
pcfreak30

Ok heres some info i can provide on how i am using PHP-FPM

You can simply use a template based on the stock config. I am actually using the "ondemand" ability for ram reduction.

I set every domain to its own pool and use the unix socket /var/php/$pool.sock

$pool is a variable in the config that gets replaced with the pool name defined.

After just run service php5-fpm reload (debian/ubuntu) or service php-fpm reload (centos and other rpm . distros).

I hope support for this can be added as I don't want to have to edit virtualmin code and keep having to patch the files after updates.

Topic locked