• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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