Unable to see a php page

Francis Daly francis at daoine.org
Sun Mar 15 14:00:31 UTC 2020

On Sun, Mar 15, 2020 at 05:19:57PM +0330, Mahmood Naderan wrote:

Hi there,

> I started php-fpm and opened localhost/index.php
> This time I see the content of index.php as a plain text.
> I have to do more debugging. Thanks.

That's useful.

I suggest that the first step is to look at the http headers returned
from your request -- if they include something like "X-Powered-By: php",
then you can be confident that nginx asked php to process the file (and
further investigation should be on the php side); if they do not, then
you should probably check the nginx side (and the error log, possibly
in debug mode for the test), to see what nginx did with the request that
involved it *not* making the fastcgi_pass request.

Good luck with it,

Francis Daly        francis at daoine.org

More information about the nginx mailing list