The main issue here is that supervisor, when trying to run your command, doesn’t know what
We usually run
php artisan command from within the project folder so it seems like that
php artisan is a “global php command” but it is not. In addition to that, supervisor may also not know what
php means, but usually it is not the case.
What you need to do is provide full path to your
artisan command. While you are at it, set the full path to
php as well just in case. Which means you need to do something like:
/usr/bin/php /home/cleaver/<YOUR DOMAIN NAME>/current/artisan queue:work --tries=3
It is always a good idea to set full paths when running an “automated” script like a Process Monitor to make sure that you always execute what you intend to without anything interfering your call, intentionally or not. I hope that helps.
PS: There could still be other issues after this like your queue is just not working or throwing an exception right off the bat. But you need to fix the path first.