How to restart PHP-FPM on Linux
PHP-FPM is a service. On most modern Linux systems that use systemd, restart it with systemctl. The service name depends on your distribution and PHP version.
sudo systemctl restart php8.3-fpm
On Debian and Ubuntu the name includes the version (for example php8.3-fpm). On other distributions it may be just php-fpm. List the real name with:
systemctl list-units --type=service | grep -i fpm
Reload instead of restart
A reload applies configuration changes gracefully:
sudo systemctl reload php8.3-fpm
Test the configuration first
php-fpm8.3 -t
The binary name also varies by system. Replace the version number with the one you have installed.