实战案例:CentOS 8上实现PHP-FPM状态页
[root@centos8 ~]#dnf -y install httpd php-fpm
[root@centos8 ~]#vim /etc/php-fpm.d/www.conf
pm.status_path = /fpm_status
ping.path = /ping
[root@centos8 ~]#vim /etc/httpd/conf.d/php.conf
#增加#######之间内容
<IfModule !mod_php5.c>
<IfModule !mod_php7.c>
# Enable http authorization headers
SetEnvIfNoCase ^Authorization"(.+)" HTTP_AUTHORIZATION=1
<FilesMatch /.(php|phar)$>
SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost"
</FilesMatch>
#######
<Locationmatch /(fpm_status|ping) >
SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost"
</locationmatch>
#######
</IfModule>
</IfModule>
本文链接:http://www.yunweipai.com/36105.html
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/52448.html