CentOS7 + Apache + php-fpm (Couldn't find anything but a NGINX tutorial for Virtualmin)

CentOS7 + Apache + php-fpm (Couldn't find anything but a NGINX tutorial for Virtualmin)

I was reading an article on how to make apache faster and for maximum performance. It said that it's important to use php-fpm due to the resource hogging on such small requests for Apache itself, stand-alone.

How do I incorporate this into my existing setup with Apache and Virtualmin Pro?

Thanks :)

Status: 
Closed (fixed)

Comments

We don't support php-fpm yet - only php run via mod_fcgid (which should be no more expensive)

Also, Apache with FCGID is quite speedy.

Generally, the speed limitation is the database backend, or possibly the web app itself. You can use things like memcache and other caching plugins to speed up your app if you run into any slowness issues.

I was reading something on a virtualmin post from another client. Who made a mod for php-fpm that claims to work... from the sounds of what I read... he just re-applies the hack after each update. Are you familiar with this?

We've heard from a few users who have gotten PHP-FPM working in a way that they liked.

Unfortunately, we're not able to support that though, and there's various things that won't work properly with that setup.

However, if you'd like to give that a try, you could always ask those folks about it.

We do recommend against that though -- we don't think most folks will see a noticeable speed difference, and not everything will work properly under that setup.

What features would I be lacking if I decided to attempt a php-fpm mod?

We're not sure, as we haven't done any testing with it... we're not sure what to expect.

However, one of the things that we see problems with when trying different modes is that sometimes certain Install Scripts don't work when trying new modes.

A lot of folks are interested in seeing PHP-FPM, but that's one of the bigger holdups -- it's tough to test all the Install Scripts (that said, we are very likely to support this mode at some point in the future).

So basically it only affects the "1 click scripts" ?

Rather than the web servers configuration w/ permissions and domain ownership?

If that's the case... I don't personally see it being an issue with me and my needs.

I'm saying that we have no idea whatsoever what might work or not work -- but that one thing we're fairly certain of is that some of those scripts are likely to have problems.

We recommend against using it, and we won't be able to provide support regarding anything you're experiencing relating to that. But you're of course welcome to use that if you wish.

Just gathering information and understanding. Thanks andreychek.

Good news - the next Virtualmin release will include support for PHP-FPM as a built-in execution mode. So no special customization will be required..

Status: Active » Fixed
Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.