/go/fpm manages PHP-FPM, the service that runs your websites' PHP code. GoAdmio can have several PHP versions installed side by side, each with its own PHP-FPM service. This command acts on all of them at once, so you don't have to look up each service name. It can: Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.
Quick start
# Clean up, then restart every PHP-FPM service
/go/fpm
Options
| Argument | Required | Notes |
|---|---|---|
percent |
No | A number such as 80 (a % sign is ignored). It must be the first argument. Only the digits are used. |
reload |
No | Reload instead of restart. Any argument that contains the word reload counts. |
enable |
No | Set up the services for reboots, then restart. Any argument that contains the word enable counts, and it takes priority over reload. |
Examples
# Clean up, then restart all PHP-FPM services
/go/fpm
# Reload without interrupting visitors
/go/fpm reload
# Restart only if at least 85% of memory is in use
/go/fpm 85
# After a reboot problem: set up sockets and boot start, then restart
/go/fpm enable
# Check one service (RHEL family: php83-php-fpm, Debian and Ubuntu: php8.3-fpm)
systemctl status php8.3-fpm
Output
The command prints nothing when it works. You may see:
- error messages from
systemctlif a service can’t be restarted or reloaded - output from the checks that run during the cleanup (the web server configuration tests)
| Outcome | Result |
|---|---|
Memory use is below the percent you gave |
Nothing happens. Exit status 1. |
| All other runs | The exit status is that of the last systemctl command. |
Log
Each run appends one line to /var/log/go/fpm.log:
[Nov 21 12:00:00]# fpm 85 reload
See the full reference at /go/fpm and the GoAdmio command index.
GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.
