Welcome! Log In Create A New Profile

Advanced

php-fpm ignores me

Posted by mauricev 
php-fpm ignores me
March 20, 2017 01:48AM
I am trying to get php-fpm to process php files from nginx. Nginx is configured as follows

location ~ \.php$ {
try_files $uri =404;
include fastcgi_params;
fastcgi_pass unix:/var/run/php.socket;
# fastcgi_pass 127.0.0.1:9000;
}

If I put in a bogus page, I get a not found 404, which indicates the location block is being exected. However, real php pages just display nothing. I turned up logging to debug for php-fpm and fastcgi.logging = 1, but nothing is logged except

[20-Mar-2017 01:50:02.193330] DEBUG: pid 14906, fpm_pctl_perform_idle_server_maintenance(), line 379: [pool www] currently 0 active children, 2 spare children, 2 running children. Spawning rate 1

I tried both the unix socket and the tcp port. The behavior is the same.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 103
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready