I have various PHP installed in my server and every PHP there are websites attached to it, but some of the PHP-FPM are failed to initialize and FPM server is not running right now.
The journal for that unit may have information (journalctl -u php8.1-fpm) or there may be something useful in a php-fpm error log (I believe you’ll find this in /var/log/php-fpm).
Don’t post the whole logs, just the handful of entries that appear immediately when you try to restart the service.
So, are you trying to start an already running service? (That’s what that looks like.)
You could probably just reboot the system, which will shut everything down and start it all back up fresh. Or, you could make sure the existing services are actually stopped before trying to start them (systemctl stop php8.1-fpm and then check the process list to see if anything is “stuck”…because these processes are serving clients, they can take a little while for all of them to shut down…it’s possible that something went wrong and one fails to shut down at all…you’d need to kill it in such a case).
Various PHP-FPM are already running and serving the website, I couldn’t close those PHP versions, It will stop other projects as well.
Available socks are already listening other PHP-FPM versions.