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

thc1967's avatar

Envoyer Without Sudo

So I've bitten the bullet and tried Envoyer to deploy... to my server that's a hosted server and not just an empty that I had to build myself.

Deployment gets to the point that it runs "Activate New Release", then it errors out because, no sudo. It's a hosted box. I don't get to be super-user.

stdin: is not a tty
Linux Detected...
Release Activated (20170611154953)!
PHP-FPM Detected: Reloading
bash: line 19: sudo: command not found

Anyone know if there's a way to work around not having sudo, or am I cancelling my Envoyer account?

Thanks!

0 likes
3 replies
bashy's avatar

You could fake the sudo command and just have it return 1 :D

Other than that, it requires sudo so...

thc1967's avatar

I could fake it and implement my own custom step if I knew what the sudo was trying to do. That doesn't seem evident though.

I'm guessing whatever Envoyer is trying to do with sudo, it could do without it. Sudo feels like a shortcut.

I've deployed the site manually, cancelled my Envoyer account, and emailed Taylor to see if anything can be done to work around it.

Thanks for the confirmation.

bashy's avatar

@thc1967 Ah you're the same person who posted the other thread.

sudo is required for restarting php-fpm because it uses a symlink based system. php-fpm is only restartable via sudo, because it should be run as root.

Please or to participate in this conversation.