git clone https://github.com/phpredis/phpredis cd phpredis phpize ./configure make && make installInclude the compiled extension to php.ini:
touch /etc/php.d/redis.ini echo extension=redis.so > /etc/php.d/redis.iniIf you use Apache (httpd), restart by:
systemctl restart httpd.serviceIf you use nginx, restart it by:
systemctl restart php-fpm.service systemctl restart nginx.service