Technology

Create PHP-FPM Status Page for nginx+php-fpm in directadmin

  • Go to Custom HTTPD Configuration
  • Select the php-fpm version you are running for the domain you want to see the status
  • Under the |Custom2| section add the line “pm.status_path = /status” (without quotes), click Save and go back to the Custom HTTPD Configuration Page

pm.status_path = /status

  • Click on the Domain name to edit the Nginx configuration file adding the following to the top(modify where necessary):

location ~ ^/(php-fpm-status)$ {
allow all;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/usr/local/php|PHP1_RELEASE|/sockets/|USER|.sock;
}

Example for detailed status page:

http://example.com/php-fpm-status?full
http://example.com/php-fpm-status?json&full
http://example.com/php-fpm-status?html&full
http://example.com/php-fpm-status?xml&full

admin

Recent Posts

Renew Let’s Encrypt For Domains Command Line

cd /usr/local/directadmin/scripts ./letsencrypt.sh renew [domain.com] 4096

4 years ago

server reached pm.max_children setting (10), consider raising it.

We calculate based on the following formula: pm.max_children = Total RAM dedicated to the web…

4 years ago

Install VPN Server by script openvpn-install

I would like to introduce to you, the simplest and easiest way to install OpenVPN…

4 years ago

Instructions to upgrade DirectAdmin version

cd /usr/local/directadmin/custombuild/ ./build update ./build update_da

4 years ago

Directadmin change httpd to nginx

cd /usr/local/directadmin/custombuild ./build set webserver nginx ./build update ./build set php1_mode php-fpm ./build set php2_mode…

4 years ago

Directadmin upgrade/downgrade PHP version

vi /usr/local/directadmin/custombuild/options.conf #here you can modify 7.4 to 7.3./build update./build php n

4 years ago