php-fpm works with some sites but not others?
edho at myconan.net
Mon May 28 17:02:41 UTC 2012
On Mon, May 28, 2012 at 11:53 PM, Adrian Hayter <adrianhayter at gmail.com> wrote:
> On Mon, May 28, 2012 at 5:48 PM, Edho Arief <edho at myconan.net> wrote:
>> Many times, ranges from incorrect file permission, incorrect service
>> privilege, incorrect root, incorrect alias, incorrect rewrite,
>> incorrect try_files, incorrect location, incorrect variable, bug, etc.
>> Not sure if that helps.
> All permissions look correct to me.
# sudo -u php_user cat /path/to/problematic/file.php
> I very much doubt it is something wrong
> with an alias / rewrite / try_files since this is the same config that only
> a few hours ago was working perfectly well on the old install. What doesn't
> help is that there don't appear to be any errors in the logs (i.e. nginx
> logs just log 404's rather than PHP errors, and the php-fpm error log has
> just startup info, despite me turning error reporting on to the maximum).
Because that's the error when php can't find specified input file.
It's never logged iirc.
>> I don't even know how you set up your config... (one instance per
>> host? One file per host? One "set" file per host? One big file?)
> /etc/nginx/sites-available/ <-- Individual config file per host.
> /etc/nginx/sites-enabled/ <-- Symbolic links to sites-available.
> PHP is working perfectly on 3 other sites, and one of those sites has an
> almost identical config file (only thing changed are the names /
> server_names, etc).
"only"... "etc". Ok.
More information about the nginx