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.

PEAR channel restoration

Discussion in 'General Discussion' started by roy dehaven, Apr 20, 2016.

Tags:
  1. roy dehaven

    roy dehaven Registered

    Joined:
    Apr 20, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Albuquerque
    cPanel Access Level:
    Website Owner
    a few days ago, I attempted to install an pear package via SSH shell. later did not work and is removed. But did not realize that the cpanel pear module is changed pointing to the different channel.

    I did edit the pear.conf via the shell command
    #pear config-set default_channel pear.php.net

    did not correct the cpanel (is stuck on seeing pear.horde.org list of modules)

    How do i restore this channel back to pear.php.net?

    Roy
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You can try removing the cached data from the /tmp/pear/ directory and then running the following commands:

    Code:
    /usr/local/cpanel/bin/updatepear
    /usr/local/cpanel/scripts/fix_pear_registry
    Let us know if this helps.

    Thank you.
     
  3. jndawson

    jndawson Well-Known Member

    Joined:
    Aug 27, 2014
    Messages:
    103
    Likes Received:
    4
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    We've run into the same thing after clicking 'Reinstall' on a PEAR module. Both the PEAR and PECL extensions/applications lists disappeared from the Module Installers page. Attempts to correct include the steps above and steps found in other forum posts:

    Code:
    # /usr/local/cpanel/3rdparty/bin/pecl list
    (no packages installed from channel pecl.php.net)
    # /usr/local/cpanel/3rdparty/bin/pecl install
    Nothing to install
    
    Code:
    # /usr/local/cpanel/bin/updatepear
    config-set succeeded
    config-set succeeded
    config-set succeeded
    config-set succeeded
    # /usr/local/cpanel/scripts/fix_pear_registry
    (snipped 167 lines)
    There are 167 installed PEAR RPMs. Of those packages, 162 already existed in the PEAR registry, 1 did not, and 4 did not contain an XML file. Of the 1 package not listed in the registry, the system successfully added 0, and failed to add 1.
    
    We've also recompiled AE3, forced upcp, rebooted, increased cPanel max process memory; still no PEAR or PECL extensions/applications showing.

    This is a bizarre issue. Anything else we can try?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  5. jndawson

    jndawson Well-Known Member

    Joined:
    Aug 27, 2014
    Messages:
    103
    Likes Received:
    4
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Update:
    tkt 7712421

    Apache was rebuilt again, which apparently corrected whatever it was that wasn't working when it got rebuilt the first time.
    At any rate, issue is corrected.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page