• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Use not plesk-php73-redis, but install custom phpredis (using PELC or APT)

duroch

New Pleskian
Hello, I don't want to use preinstalled plesk-php73-redis extension (because of old version - the default version is 3.0.0 and current is 5).

I removed the plesk-php73-redis extension and installed one using (pecl install redis) but it didn't take any affect (after restarting). I can't see in phpinfo no redis support. (of course I added extension=redis.so in php.ini)

Is there any way how to solve this?
 
I tried to compile:

# /opt/plesk/php/7.3/bin/pecl install redis
# echo "extension=redis.so" > /opt/plesk/php/7.3/etc/php.d/redis.ini
# plesk bin php_handler --reread

And checked that redis module is loaded:


[root@ppu18-0 ~]# /opt/plesk/php/7.3/bin/php -m | grep redis
redis

All works fine.
 
I tried to compile:

# /opt/plesk/php/7.3/bin/pecl install redis
# echo "extension=redis.so" > /opt/plesk/php/7.3/etc/php.d/redis.ini
# plesk bin php_handler --reread

And checked that redis module is loaded:


[root@ppu18-0 ~]# /opt/plesk/php/7.3/bin/php -m | grep redis
redis

All works fine.

Thanks! A long searched solution for me.
Your answer should go to support.plesk.com :D
 
I tried to compile:

# /opt/plesk/php/7.3/bin/pecl install redis
# echo "extension=redis.so" > /opt/plesk/php/7.3/etc/php.d/redis.ini
# plesk bin php_handler --reread

And checked that redis module is loaded:


[root@ppu18-0 ~]# /opt/plesk/php/7.3/bin/php -m | grep redis
redis

All works fine.
/opt/plesk/php/7.4/bin/pecl install redis
its not working:
Log:
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading redis-5.2.2.tgz ...
Starting to download redis-5.2.2.tgz (251,629 bytes)
.....................................................done: 251,629 bytes

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in PEAR/PackageFile/v2/Validator.php on line 1933
PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /opt/plesk/php/7.4/share/pear/PEAR/PackageFile/v2/Validator.php on line 1933
29 source files, building
running: phpize
sh: 1: phpize: not found
ERROR: `phpize' failed
 
/opt/plesk/php/7.4/bin/pecl install redis
its not working:
It is already installed in scope of plesk-php74-redis Plesk package:

# /opt/plesk/php/7.4/bin/php -m | grep redis
redis

# rpm -qa | grep redis
plesk-php74-redis-3.0.0-1centos.7.200514.1743.x86_64
 
Want to use updated version not the default 3. Any help?
Try to use following method:

# yum install plesk-php74-devel make gcc
# /opt/plesk/php/7.4/bin/pecl install http://pecl.php.net/get/redis-5.2.2.tgz
# echo "extension=redis.so" > /opt/plesk/php/7.4/etc/php.d/redis.ini
# plesk bin php_handler --reread

Check that module is loaded:

# /opt/plesk/php/7.4/bin/php -m | grep redis
redis
 
I have 2 quick questions:
I am on ubnut so have to use apt-get instead of yum?
Also i have php 7.4.6 already installed , this command will override this or add new installation? as i have my sites using php 7.4.6 by default so ther will be any down time?
 
I am on ubnut so have to use apt-get instead of yum?
My instruction was written for rpm-based operating systems, in particular for CentOS. For deb-based operating systems, like Debian or Ubuntu, package most often have different names. For example, instead of name-devel, name-dev is used. And yes, deb-based OSes uses apt-get package manager instead of yum on rpm-based OSes.
Also i have php 7.4.6 already installed , this command will override this or add new installation?
Only module redis.so will be added/updated. Nothing more.
 
Yes, it is working fine, Thank you for support,So first comand was changed :
apt-get install plesk-php74-dev make gcc

Rest was the same
 
Back
Top