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.

PHP Pear

Discussion in 'General Discussion' started by nibb, Dec 5, 2008.

  1. nibb

    nibb Well-Known Member

    Joined:
    Mar 22, 2008
    Messages:
    301
    Likes Received:
    1
    Trophy Points:
    18
    How do I make a script take the php pear modules?

    I have tried installing both on the server side or the client side but installation of egroupware stills says pears are missing.

    It seems it doesnt find them. Whats the difference anyway between installing them as a server wide or client wide, and why isnt this working?
     
  2. nibb

    nibb Well-Known Member

    Joined:
    Mar 22, 2008
    Messages:
    301
    Likes Received:
    1
    Trophy Points:
    18
    I dont know why its not taking.

    I tried installing the pears both from WHM or from user account.

    The path to the server pears
    /usr/local/lib/php

    Is already in the php config.

    I also now the path to the users pears are
    /home/user/php

    On the server:
    pear list

    Shows this pear installed.

    So what im doing wrong here?
     
  3. stdout

    stdout Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    189
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Nelspruit, Mpumalanga, South Africa
    cPanel Access Level:
    Root Administrator
    Are you sure open_basedir, execdir, include_path is not interfering with things?
    What errors are you receiving? Can you provide us with an example?
     
  4. nibb

    nibb Well-Known Member

    Joined:
    Mar 22, 2008
    Messages:
    301
    Likes Received:
    1
    Trophy Points:
    18
    No Im not sure actually.

    I finally configured the path in a php.ini inside the domains account but still it doesnt recognize the pears that are installed.

    Is the e-groupware installer and when it makes a server check it says there are missing pears packages even when they are installed already in the account.

    My conclusion is that its not finding those pears.
     
  5. stdout

    stdout Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    189
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Nelspruit, Mpumalanga, South Africa
    cPanel Access Level:
    Root Administrator
    Have you looked into the script? Perhaps it is trying to load the modules locally.
     
  6. nibb

    nibb Well-Known Member

    Joined:
    Mar 22, 2008
    Messages:
    301
    Likes Received:
    1
    Trophy Points:
    18
    There are dozens of php files in the installer. Im not sure where to look, or what is the file that is looking for them.
     
  7. stdout

    stdout Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    189
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Nelspruit, Mpumalanga, South Africa
    cPanel Access Level:
    Root Administrator
    Try a "grep -ri module_name /home/username/public_html | less".
     
  8. nibb

    nibb Well-Known Member

    Joined:
    Mar 22, 2008
    Messages:
    301
    Likes Received:
    1
    Trophy Points:
    18
    cPanel support fixed this. Here is the explanation:

    It seems that the php.ini was looking for PEAR files installed in /usr/lib/php for this, not in /usr/local/lib/php. So I have those PEAR installed using this commands:

    /usr/bin/pear install <module>
     
Loading...

Share This Page