Skip to main content

problem with pecl install

Comments

10 comments

  • cPanelLauren
    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.ini
    0
  • dzamanakos
    Hi, the result is : exec,passthru,shell_exec,system,proc_open,popen,show_source,pcntl_exec (same for all of my php versions)
    0
  • cPanelLauren
    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
  • dzamanakos
    Thank you for your help. Any idea why i dont see any results when i'm searching via WHM?
    0
  • cPanelLauren
    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.ini
    0
  • dzamanakos
    thank you for help. have a nice day.
    0
  • fisiculturismo
    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
  • fisiculturismo
    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
  • cPanelLauren
    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
  • fisiculturismo
    The problem was simple to solve: restart apache. Thanks!
    0

Please sign in to leave a comment.