PHP + FPM with error pages

Francis Daly francis at daoine.org
Thu Apr 7 22:50:47 MSD 2011


On Thu, Apr 07, 2011 at 02:31:20PM -0400, Humza wrote:

Hi there,

> > so some of the configuration is hidden.
> 
> I've posted the bits that are relevant, except i dont know where to find
> the bit where i included php.

You report problems only when trying .php urls.

The config you have shown says nothing about .php urls, other than
"include php".

That would seem to make the file called php in the nginx compile-time
prefix directory (default /usr/local/nginx) relevant.

Look in that file (and in any include'd files) and see what
fastcgi_intercept_errors is set to in the location block that handles
.php urls.

If it is not set to "on", understand what it does, and set it to "on".

Test, and if it shows you what you want in this case, and doesn't break
other cases, leave it on.

Otherwise, examine the debug log.

Good luck with it,

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list