1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

PEAR problem

Discussion in 'Plesk for Linux - 8.x and Older' started by Osmolovsky, Jun 7, 2005.

  1. Osmolovsky

    Osmolovsky Guest

    0
     
    Hello all

    Some problem here.

    I trying to move my clent's site to my Plesk. When i try to view site - on first page i see this:
    -----------------------------------------------------------------
    Warning: main(PEAR.php): failed to open stream: No such file or directory in /usr/local/psa/home/vhosts/testdomen.com/subdomains/testsub/httpdocs/classes/ITMod.php on line 10

    Fatal error: main(): Failed opening required 'PEAR.php' (include_path='.:/usr/local/psa/apache/share/pear') in /usr/local/psa/home/vhosts/testdomen.com/subdomains/testsub/httpdocs/classes/ITMod.php on line 10
    -----------------------------------------------------------------

    In module ITMod.php Line 10 - require_once 'PEAR.php'; string
    no PEAR.php in /usr/share/pear
    no PEAR.php in /usr/local/psa/apache/share/pear

    in /usr/local/psa/apache/share only "apache2" and "doc" dirs. no "pear" dir, no "pear.php" file
    How to make this code to work?

    Plesk - 7.5.3
    System - FreeBSD 5.3

    Thanks.
     
  2. hardweb

    hardweb Guest

    0
     
    Pear is located in '/usr/share/pear/'. You must add this directory to include_path.
     
  3. Osmolovsky

    Osmolovsky Guest

    0
     
    Please read my message again ^)

    I have't /usr/share/pear directory.

    -----------------------------
    # ls /usr/share

    calendar
    groff_font
    me
    pcvt
    syscons
    dict
    info
    misc
    security
    tabset
    doc
    isdn
    mk
    sendmail
    tmac
    examples
    locale
    nls
    skel
    vi
    games
    man
    openssl
    snmp
    zoneinfo
    ---------------------------
     
  4. hardweb

    hardweb Guest

    0
     
    You seem to have FreeBSD. You can install Pear from ports or you can use the one used by horde in /usr/local/psa/psa-horde/pear/, but I do not recommend this.
     
Loading...