Search code examples
laravel-5redisshared-hosting

Connection refused [tcp://127.0.0.1:6379] redis on shared hosting


I am trying to deploy laravel 5 app on shared hosting and it uses redis for broadcasting. It displays error

Connection refused [tcp://{{hosting IP here}}:6379]

I have also enabled redis option in hosting, I am using php 5.6.


Solution

  • For me, I had to make sure redis was installed and running.

    To run Redis: redis-server

    Test that it's running: redis-cli ping (returns PONG).

    Now run Laravel Horizon: php artisan horizon