Welcome! Log In Create A New Profile


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;

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: 336
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready