Like if you have php5.6 as your alternate php version. The paths are as below.
/opt/alt/php56/usr/bin/php
/opt/alt/php56/usr/bin/pecl
/opt/alt/php56/usr/bin/php-config
/opt/alt/php56/usr/bin/phpize
/opt/alt/php56/usr/php/php.ini
So to install redis to it, i will do
/opt/alt/php56/usr/bin/pecl install redis
Now enable its module in your phpini
echo "extension=redis.so" >> /opt/alt/php56/usr/php/php.ini
Check if module is loaded
[root@cwp7 ~]# /opt/alt/php56/usr/bin/php -i | grep redis
redis
Registered save handlers => files user redis rediscluster
This program is free software; you can redistribute it and/or modify
Your can replace php56 with the version you have installed. Like if you have 7.1 use php71. So in that case path of your files will be
/opt/alt/php71/usr/bin/php
/opt/alt/php71/usr/bin/pecl
/opt/alt/php71/usr/bin/php-config
/opt/alt/php71/usr/bin/phpize
/opt/alt/php71/usr/php/php.ini
Hi,
I want to ask:
1. If I already have a redis installed and compiled with PHP switcher, do I need to install it again with
/ opt / alt / php56 / usr / bin / pecl install redis
?
2. When installing it with
/ opt / alt / php56 / usr / bin / pecl install redis
only the alternative PHP 5.6 is installed and does not affect the PHP version and modules for the sites and PHP version and modules for CWP?
3. In the beginning when I started the
/opt/alt/php56/usr/bin/pecl install redis
I received the following message:
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading redis-4.1.1.tgz ... ?
4. When the installation started, he asked me twice:
enable igbinary serializer support? [no]: no
enable lzf compression support? [no]: no
and I answered "No" - is it right?
5. As far as I understand, if I want for another version I repeat the same with other folders ??
Thanks in advance!
BR
Venty