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

tjrayner's avatar

Redis Error

Hi,

I've just been given a site by a customer built with Laravel to host for them. I've uploaded all the files and the database, amended the database connection settings however when I load the site I get a "Whoops, looks like something went wrong." message. I've turned on debug and then I see the following error: Predis \ Connection \ ConnectionException HELP php_network_getaddresses: getaddrinfo failed: Name or service not known [tcp://redis:6379] After some research it looks like the site is configured to use redis which is not installed on the server I have my hosting package with. Is there an easy way to turn off/disable redis to get the site working

Many Thanks

0 likes
2 replies
SteveAzz's avatar

Well the application works on redis. If you remove it the application wont work how originally indented

ohffs's avatar

From the error it looks like it's looking for a hostname of 'redis' - but even adding that won't help if you don't have redis running somewhere. You might be able to go through the code and change it (maybe it's only used in one place for caching and you can swap it out for instance) - but it'll probably be a lot easier, quicker and more reliable to see if your hosting company will run redis, or just move the site somewhere else ( using forge for instance).

Please or to participate in this conversation.