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

Gintron's avatar

Installing Supervisor on a shared host

I am running my website on a shared web hosting. My hosting provider does not allow me to use sudo commands. Is there a way around to install supervisor, without the sudo command?

0 likes
3 replies
Snapey's avatar

If they don't allow SSH they are very unlikely to let you install stuff.

You need supervisor to run your queues? There is a workaround using cron, its not as good but can work fine depending on what you are using queues for

1 like
Snapey's avatar
Snapey
Best Answer
Level 122

You can create a cronjob (or with artisan scheduler) that runs php artisan queue:work --stop-when-empty and then fire this every minute.

Assuming your workload is light and all queued jobs can be cleared within the minute.

So once per minute the queue worker runs and then stops when there is nothing left to do.

If your workload is such that there is a chance that the queue will not clear within a minute then use the scheduler and use the withoutOverlapping

1 like

Please or to participate in this conversation.