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

rvkvino's avatar

Need to run php artisan queue:listen on shared hosting

Need a help to run queue job in shared hosting. I have tried using SSH, but when I close my system this queue also get the stop. How to run queue on shared hosting please help anyone.

0 likes
6 replies
rvkvino's avatar

@mvd I have bought VPS in Linux OS now, Could you please assist me to execute this command in this hosting without any interrupt in queue process.

athulpraj's avatar

Use supervisor if you can configure it in your hosting the documentation is in the link mentioned by @adamprickett , It's pretty simple

rvkvino's avatar

I have tried sudo apt-get install supervisor this command. But itis showing like username is not in the sudoers file. I have VPS on CentOS 7 64-bit

rvkvino's avatar

I have created my queue-worker as like [program:queue-worker] process_name=%(program_name)s_%(process_num)02d command=php /home/adbullminwin/public_html/api/artisan queue:work --sleep=3 --tries=3 autostart=true autorestart=true user=root numprocs=8 redirect_stderr=true stdout_logfile=/home/adbullminwin/public_html/api/worker.log

But when I run the command supervisorctl start queue-worker:* it showing response as like queue-worker: ERROR (no such group)

Please or to participate in this conversation.