After switching to mod_php from php-fpm we are told the site is working 4x faster using mod_php instead of php-fpm.
Any explanation?
Thanks
From: William A Rowe Jr <wrowe@xxxxxxxxxxxxx>
Reply-To: "users@xxxxxxxxxxxxxxxx" <users@xxxxxxxxxxxxxxxx>
Date: Saturday, January 9, 2016 1:58 PM
To: "users@xxxxxxxxxxxxxxxx" <users@xxxxxxxxxxxxxxxx>
Subject: Re: Circumstances when mod_php would run faster than PHP-FPM?
Mod_proxy_fcgi + php-fpm or mod_fcgid with php fcgi sapi should both be equivalent when tuned correctly.
Your only option for running php in process efficiently is to use the non-threadsafe php in the httpd preform module. Your only option for running httpd efficiently is the event, or at least the worker mpm.
Since usually only a subset of the http requests are to a php resource, the answer is almost always 'no'.
On Jan 8, 2016 16:48, "Rose, John B" <jbrose@xxxxxxx> wrote:
Apache 2.4
On the same system, same web site, are there circumstances when Apache using mod_php would run faster than Apache using PHP-FPM?
Thanks