Download the redis extension for PHP
cd /mnt/
wget http://pecl.php.net/get/redis-5.2.1.tgz
Unzip and compile the redis extension
tar zxf redis-5.2.1.tgz
cd redis-5.2.1/
/usr/local/php/bin/phpize
./configure
make && make install
Add redis extension
vim /usr/local/php/etc/php.ini
extension=redis.so
Restart php-fpm
pkill -USR2 php-fpm
Check if the installation is successful
/usr/local/php/bin/php -m | grep redis