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.

Problems with PEAR

Discussion in 'General Discussion' started by usdcservers, May 17, 2008.

  1. usdcservers

    usdcservers Registered

    Joined:
    Jul 6, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I have hosting customers that are complaining that programs they use that use PEAR.php are not working, I also found out a program I use isn't working either.

    So I recompiled Apache/PHP making sure that pear was being installed as it is a default setting anyway and at the root commandline if you type pear you get a list of options as you should.

    But type pear at a customers commandline and you get -bash: pear: command not found which explains why programs that need pear are not working.

    How does one get cPanel to allow other sites to see pear so that their programs work?

    Also if you go into WHM under Module Installers and click on manage PHP Pecl and then try to show the list you get There was a problem fetching the module list. and if you click on manage PHP Extensions and Applications Package and try to get a list you get There was a problem fetching the module list.

    I seem to have more problems with cPanel since upgrading to a 64 bit system :( WHM 11.23.0 cPanel 11.23.1-C24255
    CENTOS Enterprise 5 x86_64 on standard - WHM X v3.1.0

    Scott
     
  2. ToT

    ToT Member

    Joined:
    Jan 23, 2008
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    i have the same problem on :

    WHM 11.15.0 cPanel 11.18.6-R24533
    CENTOS Enterprise 5 x86_64 on standard - WHM X v3.1.0

    -rw------- 1 root root 2371299 May 20 00:14 build.1211230239

    grep -i pear build.121123023

    Configuring PEAR
    checking whether to install PEAR... yes
    Installing PEAR environment: /usr/local/lib/php/
    Configuring PEAR
    checking whether to install PEAR... yes
    Installing PEAR environment: /usr/lib/php/
     
  3. ToT

    ToT Member

    Joined:
    Jan 23, 2008
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Reinstall/rebuild perl && rebuild apache and php will fix this problem.
     
    #3 ToT, May 21, 2008
    Last edited: May 21, 2008
  4. WhiteDog

    WhiteDog Well-Known Member

    Joined:
    Feb 19, 2008
    Messages:
    118
    Likes Received:
    0
    Trophy Points:
    16
    I'm having the exact same problems but even worse.
    Also on 64-bit.

    I reinstalled apache and made sure "pear" was checked (it already was).

    However when i SSH as root and type "pear" i get:
    pear: command not found

    How can i reinstall/rebuild Perl, as ToT suggests?
    Or where can i view the log from the easyapache build?

    Edit:
    EasyApache Build log: Cpanel::Easy::PHP5::Pear: 0
     
    #4 WhiteDog, Jul 17, 2008
    Last edited: Jul 17, 2008
  5. djmerlyn

    djmerlyn Well-Known Member

    Joined:
    Aug 31, 2004
    Messages:
    203
    Likes Received:
    1
    Trophy Points:
    16
    I just ran in to this problem with a whole slew of servers that just went up this week. The same exact problem on 3 redhat5 64 and 32 bit hardware servers and 16 centos 5.3 VM's.

    The problem;

    Failed opening required 'PEAR.php'

    PEAR.php isn't in /usr/local/lib/php yo.

    Solution;

    cp -auv /usr/local/cpanel/3rdparty/lib/php/* /usr/local/lib/php

    Yeah, I just copied the stuff from the cpanel php since it has whats missing from the php everyone else is using. Would love to know why and how to make this work from a fresh cpanel installation and easyapache the first time.

    cPanel 11.24.4-R35075 - WHM 11.24.2 - X 3.9
    CENTOS 5.3 i686 virtuozzo
     
    #5 djmerlyn, Apr 28, 2009
    Last edited: Apr 28, 2009
  6. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Typically a recompile via EasyApache should resolve this issue.

    Can you elaborate on where you are encountering this issue: The cPanel interface, WHM interface, SSH? Also, when are you encountering this issue? Installing a PEAR package via cPanel, compiling via EasyApache, something else?
     
  7. djmerlyn

    djmerlyn Well-Known Member

    Joined:
    Aug 31, 2004
    Messages:
    203
    Likes Received:
    1
    Trophy Points:
    16
    I tried the recompile 2 or 3 times, it never fixed it.

    The error about pear comes from PHP scripts which use pear in users web space.

    The problem is that PEAR is not being installed in the user space php installation /usr/local/lib/php

    It is only being installed in cpanels php installation, thus the solution to just copy the files from there.

    I can repeat this over and over, just create a new VM with centos 5.3, install cpanel, build apache using easyapache in WHM. I can set you guys up with a VM to check it out via ticket. I just figured to post a temporary solution here, I hate to bother people with tickets.

    The only possibly different thing that I'm doing that I can think of, is that I'm uploading a profile, then building. I'm not creating a new profile on a fresh server, but using a common profile used on all the servers by uploading it first then building from it.

    Cheers
     
  8. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Are you using concurrent PHP? Concurrent PHP is when you run PHP 4 and PHP 5 on the same server.
     
  9. djmerlyn

    djmerlyn Well-Known Member

    Joined:
    Aug 31, 2004
    Messages:
    203
    Likes Received:
    1
    Trophy Points:
    16
    No, php 5.2.9 and apache 2.2x no concurrent dso

    Thanks
     
  10. djmerlyn

    djmerlyn Well-Known Member

    Joined:
    Aug 31, 2004
    Messages:
    203
    Likes Received:
    1
    Trophy Points:
    16
    Actually, I'm trying to roll out 8 more of these right now and am still having the problem.

    I will just create a ticket about it and give someone access to check it out, maybe we can at least find a simple solution to make provisioning these go a bit quicker.

    Thanks!
     
  11. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Are you able to install PEAR packages or is your situation like the original post in this thread where PEAR packages aren't even listed?
     
  12. djmerlyn

    djmerlyn Well-Known Member

    Joined:
    Aug 31, 2004
    Messages:
    203
    Likes Received:
    1
    Trophy Points:
    16
    Support Request Id 420158

    This has been the most painful support ticket experience I've ever had with cpanel thus far. No offense to the tech.
     
    #12 djmerlyn, May 1, 2009
    Last edited: May 1, 2009
  13. greengiant

    greengiant Well-Known Member

    Joined:
    Aug 31, 2003
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    djmerlyn did you find a solution as to why PEAR was not being correctly installed? We have the same issue on one of our servers.
     
  14. kran

    kran Well-Known Member

    Joined:
    Jul 5, 2003
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Colombia
    cPanel Access Level:
    Root Administrator
    any news on a solution??

    I'm also having the same problem,, pear is not beeing installed using easyapache.
     
  15. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    In certain situations this problem may be caused by an existing incomplete installation of PEAR, and or a component of PEAR being in place from a precompiled binary RPM, causing the PHP install process to not overwrite or replace the existing PEAR install.

    Please consider submitting a ticket (via the link in my forums signature) so that we can more thoroughly investigate and determine corrective actions available for an affected system.
     
Loading...

Share This Page