skip to Main Content

I am new to using Heroku and general web hosting etc.
In my project I am using redis which means I need php-redis too for them to be able to communicate.
The issue is that I cannot find much documentation about how to enable the extension/install it onto my Heroku server.

If anyone could help or explain that would be amazing 🙂

Thank you!

2

Answers


  1. Chosen as BEST ANSWER

    I managed to fix this by adding "ext-redis": "version number X". to my composer.json which was then installed by Heroku automatically.

    Hope this helps anyone! :D


  2. You can use phpinfo() for this. Try also phpversion(‘redis’).

    If you want to install separately then,

    Try to use this url https://github.com/phpredis/phpredis/archive/3.1.4.zip
    
    wget https://github.com/phpredis/phpredis/archive/3.1.4.zip -O phpredis.zip
    
    cd phpredis && phpize && ./configure && make && sudo make install
    
    add this to php.ini file extension = redis.so and restart php and apache or ngnix.
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search