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!

SOLVED Multi PHP versions : PEAR install fails (WHM) How to install from SSH for all php versions

Discussion in 'General Discussion' started by Dean_ONP, Mar 26, 2019.

Tags:
  1. Dean_ONP

    Dean_ONP Member

    Joined:
    Aug 29, 2016
    Messages:
    10
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Gold Coast
    cPanel Access Level:
    Root Administrator
    This is for a MultiPHP server with PHP 5.6 set as default.
    Also have 7.1, 7.2 installed.

    Need to install the following extensions for PHP version 7.2:
    Structures_DataGrid (0.9.3)
    Structures_DataGrid_DataSource_PDO (0.2.0)

    When attempting this via
    WHM > Software > Module Installers > PHP Extensions and Applications Package
    Receive the following errors:

    Failed to download pear/Structures_DataGrid within preferred state "stable", latest release is version 0.9.3, stability "beta", use "channel://pear.php.net/Structures_DataGrid-0.9.3" to install
    install failed.

    Failed to download pear/Structures_DataGrid_DataSource_PDO within preferred state "stable", latest release is version 0.2.0, stability "beta", use "channel://pear.php.net/Structures_DataGrid_DataSource_PDO-0.2.0" to install
    install failed

    When installing from SSH (Command line) with the following this works, but only for the default PHP version (5.6).
    > pear channel-update pear.php.net
    > pear install channel://pear.php.net/Structures_DataGrid-0.9.3
    > pear install Structures_DataGrid_DataSource_PDO-0.2.0

    How can I install these for ea-php72?
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,331
    Likes Received:
    2,161
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Dean_ONP,

    You have to use the command line to install PEAR modules in the beta state. Here's the commands you'd use to install these PEAR modules with PHP version 7.2:

    Code:
    # /opt/cpanel/ea-php72/root/usr/bin/pear install channel://pear.php.net/Structures_DataGrid-0.9.3
    # /opt/cpanel/ea-php72/root/usr/bin/pear install channel://pear.php.net/Structures_DataGrid_DataSource_PDO-0.2.0
    
    However, keep in mind both of these PEAR modules are unmaintained. You can see on the links below that both modules were last updated in 2012:

    Structures_DataGrid
    Structures_DataGrid_DataSource_PDO

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Dean_ONP likes this.
  3. Dean_ONP

    Dean_ONP Member

    Joined:
    Aug 29, 2016
    Messages:
    10
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Gold Coast
    cPanel Access Level:
    Root Administrator
    Thanks Michael!

    It's to accommodate the installation of the SilverStripe CMS for an account - they're prerequisites for it.
    There's a lot of cowboy web devs out there!

    Thanks for the links and the info.
     
    cPanelMichael likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice