Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

problem installing ssh2 php7

Discussion in 'EasyApache' started by chenco, Dec 18, 2017.

Tags:
  1. chenco

    chenco Registered

    Joined:
    Dec 18, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Israel
    cPanel Access Level:
    DataCenter Provider
    Hello,
    Im trying to install ssh2 on PHP7 version
    I go to pecl in whm panel then i search for SSH2,
    when trying to install i get this error :
    pecl/ssh2 requires PHP (version >= 4.0.0, version <= 6.0.0), installed version is 7.0.26
    No valid packages found
    install failed



    Is there any workaround?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    41,516
    Likes Received:
    1,616
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The ssh2 PECL module for PHP currently only supports PHP 7.x in it's "alpha" version. Since a stable version is not yet available, the module installer interface does not support it's installation. As a workaround, you can manually install the PECL module from the command line. EX:

    Code:
    /opt/cpanel/ea-php70/root/usr/bin/pecl install https://pecl.php.net/get/ssh2-1.1.2.tgz
    Simply replace "php70" with each version of PHP 7 you'd like to install it for. Note that internal case EA-6158 is open to address the issue where the alpha and beta versions of PECL modules such as SSH2 appear to be available for installation in WHM, yet the installation fails because WHM will always attempt to install the stable version.

    Thank you.
     
Loading...

Share This Page