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

FrazeColder's avatar

Using Laravel Horizon on shared webhosting

Hello everyone,

I use Laravel for my application and have shared web hosting package. I can run all my processes on the environment without any problems. However, I am now reaching the limits. Because I would like to use Laravel Horizon to process my queue.

To do this, I need to run the following command in the terminal:

php artisan horizon

This then starts my worker. This works quite well so far. But unfortunately only when I have the terminal open.

As soon as I close it, the worker stops working. How can I keep the worker running in the background on my shared web hosting?

Best regards

0 likes
2 replies
puklipo's avatar

Neither Laravel nor Horizon should be run on shared hosting.

If you're a artisan, you should at least use a VPS.

Please or to participate in this conversation.