httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Iliffe <>
Subject Re: [users@httpd] Getting PHP-FPM working
Date Thu, 25 May 2017 18:13:55 GMT
Didn't get a lot of help on the PHP list but the one fellow who tried is 
still running PHP-5.  So, I backed off to PHP-5.6.30 which is the most 
recent stable version of PHP-5 and it worked perfectly.

If you look at the PHP-7.1.3 or 7.1.5 source in fpm_main.c there is a lot 
of commentary about being unable to recover the various script paths when 
called from Apache.  This is where the problem that I encountered was.

So, there are a few updates required to the Apache documentation, as found 
in the fpm wiki:  

1.   don't use PHP-7 fpm since as of right now it won't work.  A good 
programmer (not me!) might be able to fix it but then you would have a one-
off and would have to support yourself.

2.   be careful, the ProxyPassMatch value for fcgi://  should not contain a 
trailing '/'  because it leads to double '//' in the path recovered by php-


 ProxyPassMatch "^/.*\.php(/.*)?$" fcgi://<path-to-script> 

and NOT:

 ProxyPassMatch "^/.*\.php(/.*)?$" fcgi://<path-to-script>/

This will work on UNIX based systems but seems to confuse php-fpm. 

On Monday 22 May 2017 05:49:13 Christian Hettler wrote:
> Hello John,
> I think you should try it on an php related list.
> sorry,
> Christian

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message