Installing Redis and Redis PHP extension in cPanel

This is a quick guide on how to install both the Redis PHP extension as well as the daemon via SSH Installing the

Redis daemon:

CentOS 6/RHEL 6

rpm -ivh
rpm -ivh
yum -y install redis --enablerepo=remi --disableplugin=priorities
chkconfig redis on
service redis start

CentOS 7/RHEL 7

rpm -ivh
rpm -ivh
yum -y install redis --enablerepo=remi --disableplugin=priorities
systemctl enable redis
systemctl start redis


Installing the Redis PHP extension for PHP5.5, PHP5.6 and PHP7.0.

for phpver in 55 56 70 ; do
cd ~
tar -xvf redis-*.tgz
cd redis*
./configure --with-php-config=/opt/cpanel/ea-php$phpver/root/usr/bin/php-config
make && make install
echo '' >> /opt/cpanel/ea-php$phpver/root/etc/php.d/redis.ini
cd ~
rm -rf redis*

All done! Check to make sure the PHP extension is loaded in each version of PHP:

for phpver in 55 56 70 ; do
echo "PHP $phpver" ; /opt/cpanel/ea-php$phpver/root/usr/bin/php -i |grep "Redis Support"

Output should be:

PHP 55
Redis Support => enabled
PHP 56
Redis Support => enabled
PHP 70
Redis Support => enabled


  • redis, db cache
  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

How to Install New Os Or Reinstall Current Os

To install or reinstall os in your vps you need to login on our VPS Management Panel To login on...

How to Test Internet Speed of Your VPS/Server

How to Install SpeedTest CLI Step 1 – Login to your VPS as root or any user with superuser...

How To Install cPanel

What is cPanel?cPanel is a web-based hosting control panel provided by many hosting providers to...

How to install Pyxsoft Anti Malware for cPanel server

How to install Pyxsoft Anti Malware for Cpanel Servers Today We Learn How to Install pyxsoft and...

How to Install Softaculous on cPanel/WHM

What is Softaculous for cPanel ? Softaculous is integrated into cPanel and can be installed...