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.

FreeBSD Cpanel - PEAR Problem

Discussion in 'General Discussion' started by flashweb, Nov 30, 2005.

  1. flashweb

    flashweb Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    243
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hi,

    I have moved a web site from Linux Cpanel server to Cpanel server running FreeBSD. Almost all sites work fine.

    One site got problem, it says

    http://server20.hosthat.com/~hoston/

    It seems PEAR is not in include_path.

    I have compiled Apache with Pear on the server.

    http://domainforhost.com/phpinfo.php

    I pointed the site to old Linux server and is working fine.

    I just copied the DB.php from pear file to clients folder, but it give another error. "DB Error: not found" DB info are proper, i have verified it and DB is working too. I think just copying DB is not enough.

    Can anyone tell how do i correct the problem ?

    Regards,

    Yujin
     
    #1 flashweb, Nov 30, 2005
    Last edited: Mar 21, 2006
  2. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    The most straightforward solution would be to update the global php.ini on the server in question and edit the default include path so that pear is in it.
     
  3. flashweb

    flashweb Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    243
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Thanks webignition, i will do it :)

    But it seems PHP do not install PEAR. phpinfo, says it is installed. Any suggestions ?


     
  4. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    Well that's odd. I get:
    Code:
    locate pear |grep DB.php
    <removed>
    /usr/share/pear/DB.php
    <removed>
    
    Do you have anything in /usr/share/pear? Does it even exist?

    Also, what does the following return?

    Code:
    locate pear |grep PEAR.php
     
  5. flashweb

    flashweb Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    243
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    There is no folder with name "pear" in /usr/share

     
  6. jeroman8

    jeroman8 Well-Known Member

    Joined:
    Mar 14, 2003
    Messages:
    410
    Likes Received:
    0
    Trophy Points:
    16
    I have the same problem !!
    Any update on this ?

    easyapache compiled with pear but DB.php and /usr/share/pear is missing.
     
  7. flashweb

    flashweb Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    243
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Are you using FreeBSD on the server ? I think Cpanel do not handle this properly on FreeBSD servers.

    To fix the problem, login to server as root, then type

    # pear

    You will see help.

    To list installed pear modules, do

    # pear list

    To install a module, do

    # pear install MODULE

    Eg:

    pear install DB

    Hope it helps.
     
Loading...

Share This Page