Install Redis Cache for PHP-8

There may be some tricky parts involved, and to avoid spending hours, this steps might give you some help, to install Redis Cache for PHP-8 on linux/ubuntu OS.

Regular Install

  1. Install Redis system-wide:
  2. Then install redis php-extension using (now industrial-standard declared) pickle:
    pickle install igbinary
    #then add in php.ini
    pickle install redis
    and read that Github page to read use-case examples.


RUN apt install redis-server
RUN wget && chmod +x pickle.phar && mv pickle.phar /usr/bin/pickle
RUN pickle install igbinary && docker-php-ext-enable igbinary #or add in php.ini
RUN pickle install redis && docker-php-ext-enable redis #or add in php.ini

Note: if using docker WSL, you might need “supervisor auto” instead of “systemd”, or manually start by: sudo service redis-server start (or adding in crontab to execute on every reboot: @reboot service redis-server start )

One thought on “Install Redis Cache for PHP-8

Leave a Reply

Your email address will not be published. Required fields are marked *