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

GuntarV's avatar
Level 40

Post requisite after phpredis PHP extension install

I want my Laravel queue to use phpredis PHP extension for job queuing.

The server administrator will install the PHP extension for my application.

Are there anything alse I need to do in my application after the extension will be installed? I am planning to use the QUEUE_CONNECTION=database driver.

p.s. I am using cloudways.com for the hosting, I do have access to the command line. In my local development I am also using the QUEUE_CONNECTION=database and always running the que:work command while developing, that works great!

Thank you.

0 likes
6 replies
GuntarV's avatar
Level 40

Thank you @silencebringer ,

Hmm.., I have done that and I see that the jobs are being saved into the db table, but how do I setup the que worker? When I run the command que:work in cli, the jobs do get processed, but when I closet the cli, the worker stops working.

How do I keep the worker working :) ? I believe I do need the Predis or phpredis PHP extension for the worker to be working, right?

SilenceBringer's avatar

@guntarv you need to run queue:work command as a daemon on your server and include queue:restart to your deployment script

GuntarV's avatar
Level 40

@silencebringer , do you mean I need to create a command which will run the queue:work command as a cron job, periodically?

And when I push some updates to the application I will need to run the queue:restart command after?

Do I understand that correctly? By researching little more, I was reading that I will need to install the supervisor. Me personally I would prefer the cron job instead installing additional packages.

GuntarV's avatar
Level 40

@silencebringer thank you.

I'll learn more about the daemon and if I have access to set that up in Cloudway.

I got it working with Redis and Supervisor, but I believe the daemon option would be a cleaner way to go. Plus the Predis package which I am using, I read, is not maintained any longer.

Please or to participate in this conversation.