• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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