TuÄŸberkK
New Pleskian
Hello guys, some of my php-fpm proccesses are going crazy with cpu usage so I need the details of them. I figured to see that I need to reach the status page of PHP-FPM. But I couldn't manage that, I searched a lot.
PHP Settings --> Additional directives
Apache & nginx Settings --> Additional nginx directives
After applying these code and running /status on the web site I get "File not found." error.
PHP Settings --> Additional directives
Code:
pm.status_path=/status
Apache & nginx Settings --> Additional nginx directives
Code:
location ~ ^/status$ {
allow 127.0.0.1;
allow [yourip];
deny all;
fastcgi_split_path_info ^((?U).+\\.php)(/?.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass "unix:///var/www/vhosts/system/[yourdomainname]/php-fpm.sock";
# I write my domain name here: [yourdomainname]
include /etc/nginx/fastcgi.conf;
}
After applying these code and running /status on the web site I get "File not found." error.