Recommended way to install redis on WHM (CentOS 7)
What is the recommended way to install redis? Is it
yum install php-pecl-redis as I can see here: phpredis/phpredis
[I can also see a pecl-redis package at WHM > Software > Module Installers > PHP PECL > redis search > redis (5.2.2) ]
Or something like this as I can see here: How To Install Redis on cPanel - TecAdmin
yum install epel-release
yum install redis
systemctl enable redis
systemctl start redis
/opt/cpanel/ea-php72/root/usr/bin/pecl install igbinary igbinary-devel redis (to enable for php 7.2 for example)
-
Your TechAdmin post you cited is correct. 0 -
The artcile is not correct EPEL repo must be disable per deafault. Use others repos without some tips,. is cause or problems. correct is edit epel.repo enable=0 And use yum --enablerepo=epel install redis
0 -
@speckados - can you let me know what article you're seeing that isn't correct? This post is over a year old now, and the tech articles linked are not written or maintained by cPanel. 0 -
Its not correct because I think the best way (and correct) is put epel.repo in mode and install with option --enablerepo=epel If epel is enable and yum is not properly configured, some time system can broke with epel packages. Is my experience after 15 years with WHMC/cPanel 0 -
Can you let me know the specific link that you didn't think was correct? 0 -
The one indicated in the post in the first one. How To Install Redis on cPanel - TecAdmin I think there is no other. Forgive my english. Bye. 0 -
Thanks for those details. That article isn't something under cPanel's control so I don't have a way to get that updated on my end. You may want to reach out to the creator of that site to see if they are willing to make changes. 0 -
What is the recommended way to install redis? Is it yum install php-pecl-redis as I can see here: How To Install Redis on cPanel - TecAdmin yum install epel-release yum install redis systemctl enable redis systemctl start redis /opt/cpanel/ea-php72/root/usr/bin/pecl install igbinary igbinary-devel redis (to enable for php 7.2 for example)
Hi, I installed this on php 7.2 /opt/cpanel/ea-php72/root/usr/bin/pecl install igbinary igbinary-devel redis could you tell me how I can uninstall this? Thanks0 -
@bonny3 - instead of "install" you can use the "uninstall" command to remove those. 0 -
@bonny3 - instead of "install" you can use the "uninstall" command to remove those.
Ok it works, Thanks! :-) I would like to know when I install if these values should be set to (no) or should (yes) enable igbinary serializer support? [no] : enable lzf compression support? [no] : enable zstd compression support? [no] :0 -
That part I really can't say - that's up to the server manager and the needs of the tools on the system. Since those aren't default values in PHP we don't have any official recommendations on our end. 0 -
Just adding this for anyone else who is looking to set this up. I've also added the instructions to install the cpanel plugin for redis as well. Login and run in terminal or via SSH for CentOS 6/RHEL 6 rpm -ivh yum -y install redis --enablerepo=remi --disableplugin=priorities chkconfig redis on service redis start for CentOS 7/RHEL 7 rpm -ivh yum -y install redis --enablerepo=remi --disableplugin=priorities systemctl enable redis systemctl start redis Installing the Redis PHP extension for all available versions of PHP. Copy and paste the entire block into SSH, don't do line by line. for phpver in $(whmapi1 php_get_installed_versions|grep -oE '\bea-php.*') ; do cd ~ wget -O redis.tgz /opt/cpanel/"$phpver"/root/etc/php.d/redis.ini rm -rf ~/redis* done /scripts/restartsrv_httpd /scripts/restartsrv_apache_php_fpm INSTALL CPANEL PLUGIN git clone GitHub - cruzehost/redis_cpanel: Redis management plugin for cPanel As root, do the following: cd /path/to/plugin chmod +x install.sh ./install.sh 0 -
Any good posts on how to get this done on Almalinux 8 ? 0 -
yum install epel-release yum install redis systemctl enable redis systemctl start redis /opt/cpanel/ea-php72/root/usr/bin/pecl install igbinary igbinary-devel redis (to enable for php 7.2 for example)
Are these still the proper commands to run to install Redis on Cpanel? If I use another version of PHP i just change the "ea-php72" to "ea-phpxx", right? Thanks0 -
cPanel has never officially supported Redis, so I don't have an "official" reply on how to remove that software. 0 -
Also we experienced issues with Redis, as memory mapping in redis itself shares it between each site. So when we had it enabled customers would get at times other sites content. Hence we removed it immediately. This was years ago though. Other panels has better integration of Redis where they seperate it like litespeed does with "IDs". However then again with memcached I think is better for cpanel. 0 -
Any good posts on how to get this done on Almalinux 8 ?
i just changed the repo to 8, worked fine to me rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-8.rpm yum -y install redis --enablerepo=remi --disableplugin=priorities systemctl enable redis systemctl start redis Installing the Redis PHP extension for all available versions of PHP. Copy and paste the entire block into SSH, don't do line by line. for phpver in $(whmapi1 php_get_installed_versions|grep -oE '\bea-php.*') ; do cd ~ wget -O redis.tgz /opt/cpanel/"$phpver"/root/etc/php.d/redis.ini rm -rf ~/redis* done /scripts/restartsrv_httpd /scripts/restartsrv_apache_php_fpm0
Please sign in to leave a comment.
Comments
19 comments