Level 9
OK, for anybody else bumping into this, it's automatically restarted in the activate new release hook.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
ON forge documentation it says:
When configuring your server, Forge configures FPM so that it can be restarted without using your server's "sudo" password and suggests following script:
( flock -w 10 9 || exit 1
echo 'Restarting FPM...'; sudo -S service $FORGE_PHP_FPM reload ) 9>/tmp/fpmlock
When I add it as a deployment hook on envoyer I get
Restarting FPM...
[sudo] password for forge:
sudo: no password was provided
sudo: a password is required
Any ideas of how to solve this? Thanks
OK, for anybody else bumping into this, it's automatically restarted in the activate new release hook.
Please or to participate in this conversation.