This article is a mirror article of machine translation, please click here to jump to the original article.

View: 4471|Reply: 2

[Practice] Check php-fpm status information through Nginx

[Copy link]
Posted on 11/28/2021 1:41:18 PM | | | |
php-fpm provides an interface to view the configuration status and monitor the execution of php-fpm on the server by modifying the php-fpm.conf configuration to start the pm.status_path settings.

First, find the php-fpm.conf configuration file, yesLocate the loaded configuration file via the php-fpm --test command

For example, my configuration file path is: /usr/local/etc/php-fpm.conf, and I can adjust php-fpm and open it with the following command:



For php-fpm tuning, please refer to:

php-fpm parameter configuration and tuning
https://www.itsvse.com/thread-3899-1-1.html

After setting the pm.status_path = /status path, you can't access the nginx service directly through the browser to view,404 errorSince the physical path does not exist in the status folder, we need to modify the nginx.conf configuration file as follows:

Once the modifications are complete, restart the php-fpm and nginx services, and access them through your browser:http://ip:8099/status, as shown in the figure below:



pool:                 www
process manager:      dynamic
start time:           28/Nov/2021:13:28:18 +0800
start since:          72
Accepted Conn: 76 #启动以来连接数
listen queue:         0
max listen queue:     0
listen queue len:     128
Idle Processes: 19 #空闲的进程数
Active processes: 1 #当前活跃的进程数
total processes: 20 #总的 work
Max Active Processes: 1 #活跃进程峰值
max children reached: 0
slow requests:        0

(End)





Previous:vsftp upload file permission issue
Next:Deploy the Discuz forum using Docker installation
 Landlord| Posted on 4/19/2023 6:32:15 PM |
View the current php-fpm configuration information command:


 Landlord| Posted on 11/13/2025 2:36:12 PM |
PHP lists all modules that the current PHP interpreter has loaded (extension)


Outputs detailed PHP configuration information, equivalent to phpinfo()
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com