Jump to content

Installing Redis PHP 7.3 Extension

Featured Replies

Posted

Does anyone know how to install Redis PHP 7.3 extension?

I am able to install Redis but not install the PHP extension.

If anyone cares to provide extension for Centos 7 that'd be great or if you're for hire to provide those instructions let me know.

I used Pecl like this:

Get & unpack:

wget https://pecl.php.net/get/redis-4.3.0.tgz
tar xzvf redis-4.3.0.tgz
cd redis-4.3.0

Build:

phpize 
./configure
make

That's it, take the module "redis.so" and insert as an extension to PHP.

hth,
Thomas

pecl install redis - was enough for my env with php-fpm 7.3.3

  • Author
 

pecl install redis - was enough for my env with php-fpm 7.3.3

The initial instructions required phpize. That continually failed on my environment. From what I understand it was because I did not have php7.3dev installed. Not positive but installing the php module from WHM PECL allowed me to successfully install.

Anyhoot, up and running now!

Thanks to everyone that helped,
William

  • 4 months later...
 

Thought this may help. I was unable to run the instructions above successfully until the PECL module for PHP 7.3 was made available in WHM: https://www.christforums.com/forums/topic/24818-invision-ips4-install-redis-memory-cache-with-php-73-on-centos-7/?tab=comments#comment-92399

Perfect.

But I have 4 questions/problems:

1) REDIS is not recognisable by AdminCP (not clickable to set as cache system), even if it's running on the server:

[root@dual ~]# redis-cli ping
PONG
[root@dual ~]#

2) On EasyApache 4 there is no REDIS phpextension to install. I did only the:

In WHM go to Software>>Module Installers>>PHP PECL and search for Redis under PHP 7.3.
[root@dual ~]# /opt/cpanel/ea-php73/root/usr/bin/pecl install igbinary igbinary-devel redis
Ignoring installed package pecl/igbinary
Ignoring installed package pecl/igbinary
Ignoring installed package pecl/redis
Nothing to install

3) How to setup REDIS password?

4) I have also noticed that following the step by step yum install, it's not installed the latest 5 version of REDIS on server, but the version 3. Is it ok?

Package redis-3.2.12-2.el7.x86_64 already installed and latest version
Nothing to do

Thanks.

Hello

WHM

Module Installers -> PHP PECL (Click Manage) --> search for redis and you will get something like:

PHP extension for interfacing with Redis

Just click install

Restart Apache and Php and check...

 

For the password just edit your redis.conf  and search for:

# requirepass foobared

Then uncomment it and change foobared to your password. Setting a password locally is not really needed...

Restart Redis service.

 

 

Restart Apache and Php and check...

Perfect! The problem was not restarting apache and php-fpm. Thanks.

It seems to be working now:

Redis 3.2.12	9.26M of 31.24G memory used 
1230 keys stored in db0 

Is it ok to run Redis 3 instead of 5?

Latest version has more features and performance adjustments...

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.