I've seem many tutorials on setting up a PHP-FPM status page for apache with php5X but none working with php7.
I set pm.status_path = /status in /usr/local/php70/etc/php-fpm.conf
I use nginx as a proxy.
So in: nano /etc/nginx/nginx-vhosts.conf i set:
location ~ ^/(status|ping)$ {
access_log off;
allow 127.0.0.1;
allow XXX.XXX.XXX.XXX;
deny all;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
}
So far /status still gives a 404 - So i don't need to set anything in the NGINX config?
What should i set in the apache config file?
/etc/httpd/conf/extra/httpd-vhosts.conf
The 3 lines below are suggested by Martynas here: http://forum.directadmin.com/showthread.php?t=51383
<FilesMatch "^ping|status$">
SetHandler "proxy:unix:/usr/local/php56/sockets/webapps.sock|fcgi://localhost"
</FilesMatch>
Should i set the above? And where?
Help much appreciated!
I set pm.status_path = /status in /usr/local/php70/etc/php-fpm.conf
I use nginx as a proxy.
So in: nano /etc/nginx/nginx-vhosts.conf i set:
location ~ ^/(status|ping)$ {
access_log off;
allow 127.0.0.1;
allow XXX.XXX.XXX.XXX;
deny all;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
}
So far /status still gives a 404 - So i don't need to set anything in the NGINX config?
What should i set in the apache config file?
/etc/httpd/conf/extra/httpd-vhosts.conf
The 3 lines below are suggested by Martynas here: http://forum.directadmin.com/showthread.php?t=51383
<FilesMatch "^ping|status$">
SetHandler "proxy:unix:/usr/local/php56/sockets/webapps.sock|fcgi://localhost"
</FilesMatch>
Should i set the above? And where?
Help much appreciated!
Last edited: