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

pascalb's avatar

We couldn't reload FPM on one of your servers

Hi guys,

I have a problem when I try to deploy me code using envoyer.

It is actually the second Laravel app that I deploy using Forge/Envoyer and I didn't have this problem before with the first one (which has almost the same config). Now everytime I test the connection I get the warning notice mention in the title, AND when I deploy the code, it fails and tell me this : « Release Activated (20151205005617)! PHP-FPM Detected: Reloading php5-fpm: unrecognized service »

Now when I SSH into my server, I run the query suggested by the envoyer documentation « echo "forge ALL=NOPASSWD: /usr/sbin/service php5-fpm reload" | sudo tee -a /etc/sudoers.d/php-fpm > /dev/null »

And I also tried to uncheck in Server Options "Restart FPM After Deployments: [X]".

But still, when I re-deploy it fails... :(

Any ideas?

0 likes
5 replies
pascalb's avatar

Hi, yes I provision with Forge

I followed your tip and checked into /etc/init.d/

And it turns out I am using php7.0-fpm for this server (dont know why)

So then I run the command suggested in the warning message but for php7.0 and it works now.

the command is « echo "forge ALL=NOPASSWD: /usr/sbin/service php7.0-fpm reload" | sudo tee -a /etc/sudoers.d/php-fpm > /dev/null »

And yes I saw the discussion you linked to and already tried unchecking the Server Option.

Thanks for your help!

1 like
lindstrom's avatar

@Chess

@chess Glad you got it sorted. Did you upgrade that server from 5 to 7? Check your /etc/nginx/sites-enabled config file for this line as well:

fastcgi_pass unix:/var/run/php5-fpm.sock;

and change it to

fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;

BTW, using your sudo password, you can reload like so:

sudo service php7.0-fpm reload
pascalb's avatar

@lindstrom

Hi,

Yeah it was already set to :

fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;

I did the reload also... quick question, does that mean I have php7 running on this server? Because I didn't remember that I checked that option when I created the server (with forge).

lindstrom's avatar

Exactly. Just php -v to verify. Depends on when you provisioned. Once 7 went stable, the checkbox for provisioning to 7 switched to 5.6.

1 like

Please or to participate in this conversation.