PHP-FPM status page is empty after nginx update from 1.2.1 to 1.9.2

I have been using Nginx 1.2.1 for a while, and due to security issues, I decided to switch to 1.9.2.

The problem is that the php-fpm status page now serves me as an empty blank page. The HTTP response code says: 200 ok, but content = 0 bytes

What I tried:

Verifying the Nginx user / group: www: www (as it was before) Verifying the Php-FPM user / group: www: www (as it was before) During the aptitude update, I decided to save the configuration files

tail / var / log / nginx / error.log says: nothing tail / var / log / nginx / mywebsite-error.log says: nothing tail / var / log / php-fpm / php5-fpm.log says nothing any processing completed but nothing relevant

I use this code before updating, no problem:

    location ~ ^/(php_status|ping)$ {
    # access_log off;
    allow 127.0.0.1;
    allow MY_IP_ADRESS;
    deny all;
    include fastcgi_params;
    fastcgi_pass    unix:/var/run/php5-fpm.sock;
}

:

fastcgi_pass 127.0.0.1:9000;

502 nginx, , .

...

.

+4
2

:

location ~ ^/(php_status|ping)$ {
    # access_log off;
    allow 127.0.0.1;
    allow MY_IP_ADRESS;
    deny all;
    include fastcgi_params;

    # This is important
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

    fastcgi_pass    unix:/var/run/php5-fpm.sock;
}
+22

,

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+9

Source: https://habr.com/ru/post/1613561/


All Articles