Install Redis library to php extension

add Redis Library to PHP-5.6 extension

download redis library for php
https://pecl.php.net/get/redis-2.2.7.tgz
#tar zxvf redis-2.2.7.tgz
#cd redis-2.2.7
#/usr/local/php/bin/phpize
#./configure --with-php-config=/usr/local/php/bin/php-config
#make
#make install
#cd /usr/local/php/lib/
#ls
#pwd
#cd /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/
#ls
#cd /usr/local/php/lib/
#ls
#vi php.ini
    add this:
[PHP]
extension_dir=/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/ extension=redis.so
#killall php-fpm

restart service php-fpm

#/usr/local/php/sbin/php-fpm

check phpinfor again

http://server-ip/phpinfo.php
find ctrl+f => redis

code phpinfo
<?php
    phpinfo();
?>