problem with pecl install
Hi, i'm trying to install php redis extension from "Home "Software "Module Installers" and "redis" does not return any results.
I've seen some guides that i could also run :
yes | /opt/cpanel/ea-php73/root/usr/bin/pecl install igbinary igbinary-devel redis
but i get error messages :
The first line of the above errors say "WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update", so when i run pecl channel-update pecl.php.net" to update i get :
Also, i have php-xml for all php versions. What can i do to fix the problem? And why redis does not return any results in modules installer? best regards,
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
Warning: popen() has been disabled for security reasons in OS/Guess.php on line 241
Warning: fgets() expects parameter 1 to be resource, null given in OS/Guess.php on line 242
Warning: pclose() expects parameter 1 to be resource, null given in OS/Guess.php on line 251
downloading igbinary-3.0.1.tgz ...
Starting to download igbinary-3.0.1.tgz (58,048 bytes)
..............done: 58,048 bytes
downloading redis-5.0.2.tgz ...
Starting to download redis-5.0.2.tgz (243,270 bytes)
...done: 243,270 bytes
13 source files, building
running: phpize
Warning: popen() has been disabled for security reasons in PEAR/Builder.php on line 465
ERROR: failed to run `phpize'
The first line of the above errors say "WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update", so when i run pecl channel-update pecl.php.net" to update i get :
Warning: Invalid argument supplied for foreach() in Command.php on line 249
Warning: Invalid argument supplied for foreach() in /usr/local/lib/php/PEAR/Command.php on line 249
Warning: Invalid argument supplied for foreach() in Command.php on line 249
Warning: Invalid argument supplied for foreach() in /usr/local/lib/php/PEAR/Command.php on line 249
Warning: Invalid argument supplied for foreach() in Command.php on line 249
Warning: Invalid argument supplied for foreach() in /usr/local/lib/php/PEAR/Command.php on line 249
Warning: Invalid argument supplied for foreach() in Command.php on line 249
Warning: Invalid argument supplied for foreach() in /usr/local/lib/php/PEAR/Command.php on line 249
Warning: Invalid argument supplied for foreach() in Command.php on line 249
Warning: Invalid argument supplied for foreach() in /usr/local/lib/php/PEAR/Command.php on line 249
Warning: Invalid argument supplied for foreach() in Command.php on line 249
Warning: Invalid argument supplied for foreach() in /usr/local/lib/php/PEAR/Command.php on line 249
Warning: Invalid argument supplied for foreach() in Command.php on line 249
Warning: Invalid argument supplied for foreach() in /usr/local/lib/php/PEAR/Command.php on line 249
Warning: Invalid argument supplied for foreach() in Command.php on line 249
Warning: Invalid argument supplied for foreach() in /usr/local/lib/php/PEAR/Command.php on line 249
Warning: Invalid argument supplied for foreach() in Command.php on line 249
Warning: Invalid argument supplied for foreach() in /usr/local/lib/php/PEAR/Command.php on line 249
Warning: Invalid argument supplied for foreach() in Command.php on line 249
Warning: Invalid argument supplied for foreach() in /usr/local/lib/php/PEAR/Command.php on line 249
Warning: Invalid argument supplied for foreach() in Command.php on line 249
Warning: Invalid argument supplied for foreach() in /usr/local/lib/php/PEAR/Command.php on line 249
Notice: Undefined index: honorsbaseinstall in Role.php on line 173
Notice: Undefined index: honorsbaseinstall in Role.php on line 173
Notice: Undefined index: honorsbaseinstall in Role.php on line 173
Notice: Undefined index: honorsbaseinstall in Role.php on line 173
Notice: Undefined index: honorsbaseinstall in Role.php on line 173
Notice: Undefined index: honorsbaseinstall in Role.php on line 173
Notice: Undefined index: honorsbaseinstall in Role.php on line 173
Notice: Undefined index: honorsbaseinstall in Role.php on line 173
Notice: Undefined index: honorsbaseinstall in Role.php on line 173
Notice: Undefined index: honorsbaseinstall in Role.php on line 173
Notice: Undefined index: installable in Role.php on line 139
Notice: Undefined index: installable in Role.php on line 139
Notice: Undefined index: installable in Role.php on line 139
Notice: Undefined index: installable in Role.php on line 139
Notice: Undefined index: installable in Role.php on line 139
Notice: Undefined index: installable in Role.php on line 139
Notice: Undefined index: installable in Role.php on line 139
Notice: Undefined index: installable in Role.php on line 139
Notice: Undefined index: installable in Role.php on line 139
Notice: Undefined index: installable in Role.php on line 139
Notice: Undefined index: phpfile in Role.php on line 204
Notice: Undefined index: phpfile in Role.php on line 204
Notice: Undefined index: phpfile in Role.php on line 204
Notice: Undefined index: phpfile in Role.php on line 204
Notice: Undefined index: phpfile in Role.php on line 204
Notice: Undefined index: phpfile in Role.php on line 204
Notice: Undefined index: phpfile in Role.php on line 204
Notice: Undefined index: phpfile in Role.php on line 204
Notice: Undefined index: phpfile in Role.php on line 204
Notice: Undefined index: phpfile in Role.php on line 204
Notice: Undefined index: config_vars in Role.php on line 46
Notice: Undefined index: config_vars in Role.php on line 46
Notice: Undefined index: config_vars in Role.php on line 46
Notice: Undefined index: config_vars in Role.php on line 46
Notice: Undefined index: config_vars in Role.php on line 46
Notice: Undefined index: config_vars in Role.php on line 46
Notice: Undefined index: config_vars in Role.php on line 46
Notice: Undefined index: config_vars in Role.php on line 46
Notice: Undefined index: config_vars in Role.php on line 46
Notice: Undefined index: config_vars in Role.php on line 46
Warning: Invalid argument supplied for foreach() in Command.php on line 249
Warning: Invalid argument supplied for foreach() in /usr/local/lib/php/PEAR/Command.php on line 249
Warning: Invalid argument supplied for foreach() in Command.php on line 249
Warning: Invalid argument supplied for foreach() in /usr/local/lib/php/PEAR/Command.php on line 249
Warning: Invalid argument supplied for foreach() in Command.php on line 249
Warning: Invalid argument supplied for foreach() in /usr/local/lib/php/PEAR/Command.php on line 249
Warning: Invalid argument supplied for foreach() in Command.php on line 249
Warning: Invalid argument supplied for foreach() in /usr/local/lib/php/PEAR/Command.php on line 249
Warning: Invalid argument supplied for foreach() in Command.php on line 249
Warning: Invalid argument supplied for foreach() in /usr/local/lib/php/PEAR/Command.php on line 249
Warning: Invalid argument supplied for foreach() in Command.php on line 249
Warning: Invalid argument supplied for foreach() in /usr/local/lib/php/PEAR/Command.php on line 249
Warning: Invalid argument supplied for foreach() in Command.php on line 249
Warning: Invalid argument supplied for foreach() in /usr/local/lib/php/PEAR/Command.php on line 249
Warning: Invalid argument supplied for foreach() in Command.php on line 249
Warning: Invalid argument supplied for foreach() in /usr/local/lib/php/PEAR/Command.php on line 249
Warning: Invalid argument supplied for foreach() in Command.php on line 249
Warning: Invalid argument supplied for foreach() in /usr/local/lib/php/PEAR/Command.php on line 249
Warning: Invalid argument supplied for foreach() in Command.php on line 249
Warning: Invalid argument supplied for foreach() in /usr/local/lib/php/PEAR/Command.php on line 249
Warning: Invalid argument supplied for foreach() in Command.php on line 249
Warning: Invalid argument supplied for foreach() in /usr/local/lib/php/PEAR/Command.php on line 249
XML Extension not found
Also, i have php-xml for all php versions. What can i do to fix the problem? And why redis does not return any results in modules installer? best regards,
-
What do you have present in the php.ini for PHP 7.3 for disable_functions: grep disable_functions /opt/cpanel/ea-php73/root/etc/php.ini0 -
Hi, the result is : exec,passthru,shell_exec,system,proc_open,popen,show_source,pcntl_exec (same for all of my php versions) 0 -
Hello @dzamanakos This would explain the error you're receiving when attempting to install redis though: Warning: popen() has been disabled for security reasons in PEAR/Builder.php on line 465 ERROR: failed to run `phpize'
You've got popen on the disable_functions list.0 -
Thank you for your help. Any idea why i dont see any results when i'm searching via WHM? 0 -
Hi @dzamanakos It's not shown because redis is not something that is natively supported. The method you were using to download it previously does work though, I've just tested it on my own server, the only issue seems to have been that you had popen disabled. /opt/cpanel/ea-php73/root/usr/bin/pecl install redis ... ... Build process completed successfully Installing '/opt/cpanel/ea-php73/root/usr/lib64/php/modules/redis.so' install ok: channel://pecl.php.net/redis-5.0.2 Extension redis enabled in php.ini0 -
thank you for help. have a nice day. 0 -
Hello, I am having some issues to install the php extension for redis on my cpanel box: checking for libzstd files in default path... not found configure: error: Please reinstall the libzstd distribution ERROR: `/root/tmp/pear/redis/configure --with-php-config=/opt/cpanel/ea-php73/root/usr/bin/php-config --enable-redis-igbinary=yes --enable-redis-lzf=yes --enable-redis-zstd=yes' failed
How could I fix it? Thanks.0 -
The steps that I have followed to install redis were: How to install redis on cPanel | SubversiveTech I have also noticed that was installed the version 3 and not the latest version 5 of Redis. 0 -
Did you follow the same steps as the OP in this instance? If so you would install the redis php extension not the package from EPEL Furthermore, this isn't something cPanel natively has support for and essentially adding this is at your own risk, our ability to assist with items of this nature is limited. 0 -
The problem was simple to solve: restart apache. Thanks! 0
Please sign in to leave a comment.
Comments
10 comments