phpredis extantion

rashkoff

New member
Joined
Apr 28, 2020
Messages
2
Hello,
I'm trying to install phpredis extension for php 7.3.
Do you have any guide how to do this?
In custom builder I can't find this extension.

I'm using apache and php-fpm.

Thanks

Ricky
 

Yoshua

Verified User
Joined
Apr 9, 2007
Messages
80
Location
Spain
You can use extension from PECL: https://pecl.php.net/package/redis

Bash:
wget https://pecl.php.net/get/redis-5.2.1.tgz
tar xzf redis-5.2.1.tgz
cd redis-5.2.1
/usr/local/php73/bin/phpize73
./configure --with-php-config=/usr/local/php73/bin/php-config73
make
make install
Extension is located at "/usr/local/php73/lib/php/extensions/no-debug-non-zts-20180731/redis.so"

Now create a new config file for PHP7.3 in "/usr/local/php73/lib/php.conf.d/" for example "/usr/local/php73/lib/php.conf.d/20-custom.ini" an add this line:
Bash:
extension=redis.so
Restart PHP-FPM7.3:
Bash:
systemctl restart php-fpm73
And you already have it:

1588098045919.png
 
Top