Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Bedds's avatar
Level 5

restart critical services on fail

Does Laravel Forge provide a way to auto restart php-fpm, mysql, or nginx if they happen to go down unexpectedly? I have had a few failed deployments in the past week telling me that php-fpm was down and I am not sure why. I know that supervisor is installed because it is used for the queues but everything I find when searching about supervisor and php fpm is related to docker.

If this is not something I can easily do within forge. What would be the best way to do this directly within supervisor on a server setup with laravel forge. ubuntu 16.04

0 likes
1 reply
Bedds's avatar
Level 5

I found the logs showing php-fpm going down. It looks like the forge deployments are reloading several times for some reason and that is causing it to crash. can anyone make sense of this?

Aug 7 05:10:29 Server systemd[1]: Started Session 187 of user forge. Aug 7 05:10:29 Server systemd[1]: Started Session 186 of user forge. Aug 7 05:10:29 Server systemd[1]: Started Session 188 of user forge. Aug 7 05:10:29 Server systemd[1]: Started Session 189 of user forge. Aug 7 05:10:30 Server systemd[1]: Started Session 190 of user forge. Aug 7 05:10:30 Server systemd[1]: Started Session 191 of user forge. Aug 7 05:10:32 Server systemd[1]: Reloading The PHP 7.2 FastCGI Process Manager. Aug 7 05:10:32 Server systemd[1]: Reloaded The PHP 7.2 FastCGI Process Manager. Aug 7 05:10:32 Server systemd[1]: Reloading The PHP 7.2 FastCGI Process Manager. Aug 7 05:10:32 Server systemd[1]: Reloaded The PHP 7.2 FastCGI Process Manager. Aug 7 05:10:32 Server systemd[1]: php7.2-fpm.service: Main process exited, code=killed, status=12/USR2 Aug 7 05:10:32 Server systemd[1]: php7.2-fpm.service: Unit entered failed state. Aug 7 05:10:32 Server systemd[1]: php7.2-fpm.service: Failed with result 'signal'.

Please or to participate in this conversation.