From fd32883ac6ab49f5558b9a38adaaf4769144550a Mon Sep 17 00:00:00 2001 From: Aleksander Hansson Date: Tue, 26 Jan 2016 16:58:55 -0400 Subject: [PATCH] Added instructions for phpredis --- readme.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/readme.md b/readme.md index 2cd4099..f7cd107 100644 --- a/readme.md +++ b/readme.md @@ -134,7 +134,23 @@ and then append `extension=memcached.so` to `/usr/local/php7/etc/conf.d/modules. # Memcached extension=memcached.so + +## Installing Redis Extension + + $ git clone https://github.com/phpredis/phpredis.git + $ cd phpredis + $ git checkout php7 + $ phpize + $ ./configure + $ make && make install + $ cd .. + $ rm -rf phpredis + +And then activate phpredis + $ echo "extension=redis.so" > /etc/php/mods-available/redis.ini && \ + $ ln -sf /etc/php/mods-available/redis.ini /etc/php/7.0/fpm/conf.d/20-redis.ini && \ + $ ln -sf /etc/php/mods-available/redis.ini /etc/php/7.0/cli/conf.d/20-redis.ini ## Credits