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

Mandrill's avatar

Real-time laravel without redis

Is there any way to leverage socket.io and node.js magic without using redis? I have a shared hosting account and redis is not supported in this package.

I would like to implement some real-time features (chat for example) in my laravel project. But the real-time Laravel series Jeffrey is covering (sadly for me) uses redis.

0 likes
12 replies
Mandrill's avatar

Thanks @ohffs, but I have already seen it. I was just wondering if there is any "redis workaround" that would allow me to keep things simple instead of hand-to-hand combat directly with socket.io

ohffs's avatar

@NerdMonkey What else does your hosting package allow? If you're wanting to do this kind of thing then you might be better switching to somewhere like digitalocean that lets you install what you like, otherwise I fear you're always going to be fighting to work-around your hosting provision - if not for this feature, then the next one and the next one...

Mandrill's avatar

@ohffs, actually I'm missing only redis :-). I have shell access, node.js etc. Anyway, thanks for Your help.

nivv's avatar

@NerdMonkey how come you can't install redis if you have shell access? I would change provider in a heartbeat if they would disable such basic things as installing redis

Mandrill's avatar

@alnour, haven't seen it before. I will give it a look. Thanks.

@nivv, redis is theoretically available via PECL. "Theoretically" because it refuses any connection. I've asked my provider's chat gurus why, but I've been told, that redis is not available in my hosting package. For further info I was advised to e-mail the tech support. I will do that tommorow, maybe they will be able to tell me more.

ohffs's avatar

@NerdMonkey the redis php extension doesn't need to be compiled/installed via pecl : https://github.com/nrk/predis/ . It'll just be a little slower without it. You can grab a binary for redis from pretty much any linux distribution (apt-get install redis for instance). I was assuming your hosting didn't give you shell access before.

pmall's avatar

If you have a shared hosting with shell access, why not have a vps instead ?

Please or to participate in this conversation.