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

Yamen's avatar
Level 22

Supervisor alternatives on shared hosting

I have deployed my app on shared host "Hostgator", I've ssh successfull access, however I can't install supervisor to manage queue processing, the command sudo apt-get install supervisor always return errors, so I have contacted support and I was told that I can't make sudo commands with sharedhost "cloud" plan and I have to move to VPS or dedicated which I can't move to at this time.

My question is : is there any alternative can I use to manage the queue processing without supervisor or another way to go around this ? anybody wen through this and found a solution ?

I was thinking to make a cron job with command php artisan queue:work every morning maybe but is this a good practice ?

Thanks in advance any help is appreciated.

0 likes
7 replies
bheath's avatar

Yes but it's not as easy as this solution. I honestly would move to a different host in your situation. There are many options out there that are so much better than Hostgator and will give you this functionality.

However if you want to stay where you are you should use one of the queue solutions before Laravel 5.1, which is to use an outside push queue like IronMQ.

You will need the package: https://github.com/LaravelCollective/iron-queue

Then you can push to that queue system and it will return it back to your site. If you want to learn more google laravel and ironMQ there are a ton of resources out there as this was the perfered method in Laravel before 5.1 or 5.2, I can't remembner.

Using a cron job is a bad idea. If the queue has an error it will keep trying to process. Then you have a mess.

1 like
Yamen's avatar
Level 22

@bheath Thanks for your time, would you suggest me other options than Hostgator that give me this root access ?

mikevrind's avatar

Not a single shared hoster in the world is going to give you root access.

You could try something like DigitalOcean.com (maybe with Laravel Forge to install the server for you if you don't know anything about this).

1 like
bheath's avatar

Personally, I use what @mikevrind said. DigitalOcean is really good and cost effective. Add Forge into the mix and it makes everything very easy.

Linode is ok. I use it for alt hosting. But I don't like their features as much.

However there are a ton of options out there. Seems like everyone runs hosting these days. Search VPS hosting for other alt.

If you REALLY want to get fancy you could do Docker deployments. :)

1 like
Yamen's avatar
Level 22

Thank you guys, However I managed to do that by cron jobs and untill now everything is going fine. I'll consider DigitalOcean or VPS packages on future.

HenryPineda's avatar

Hi @yamen can you share how you were able to fix the issue using cron jobs? are you still using the php artisan queue:work command?

Yamen's avatar
Yamen
OP
Best Answer
Level 22

Hello @henrypineda This is a very old thread, I recommend Laravel forge or ploi to manage supervisor and queue system. You also need at least a VPS, don't waste your time with shared hosting.

1 like

Please or to participate in this conversation.