Menu

Missing PEAR files

Help
Anonymous
2002-08-22
2002-09-06
  • Anonymous

    Anonymous - 2002-08-22

    PEAR is installed (by default) from PHP 4.2.2.  I believe the path is correct, but JAWmail can't seem to find PEAR.  Any help with the following error is much appreciated.

    Fatal error: Failed opening required 'PEAR.php' (include_path='.:../../:/usr/local/lib/php/:/usr/src/php-4.2.2/pear')
    in /usr/local/apache2/htdocs/inc/inc.php on line 15

    Using JAWmail 2.0rc2
    Apache 2.0.39
    Configure command: ./configure --enable-module=so
    MySQL 3.23.29a-gamma
    IMAP4rev1 (IMAP 2002 RC2)

    Prelimenary checks
    --------------------------------------------------------------------------------
    Basic PHP information
    PHP Version (4.2.2)
    Configure command: ./configure --with-mysql --with-imap=/usr/local/imap --with-gettext --enable-mbstring --enable-track-vars --with-apxs2=/usr/local/apache2/bin/apxs
    --------------------------------------------------------------------------------
    PEAR checks
    PEAR files
    PEAR.php - Missing!
    Mail.php - Missing!
    DB.php - Missing!
    Crypt/HCEMD5.php - Missing!
    Net/Socket.php - Missing!
    --------------------------------------------------------------------------------
    PHP extension check
    Gettext support - Present!
    IMAP - Present!
    IMAP 2000 - Present!
    MySQL - Present!
    XML - Present!
    Multi-Byte String Functions - Present!
    --------------------------------------------------------------------------------
    PHP configuration
    Magic quotes - runtime: Disabled
    Magic quotes - GPC: Disabled
    Register globals - Disabled
    include_path - Okay
    include_path's first entry - . - Okay
    file_uploads - On
    --------------------------------------------------------------------------------
    Configuration files
    conf/acl.php writable ...
    conf/config.php writable ...
    conf/prefs.php writable ...
    conf/prefs_ui.php writable ...
    conf/registry.php writable ...
    apps/mail/conf/conf.php writable ...
    apps/mail/conf/prefs.php writable ...
    apps/mail/conf/prefs_ui.php writable ...
    apps/ab/conf/sources.php writable ...
    plugins/mail_show_quota/conf.php writable ...

     
    • Rudi Benkovic

      Rudi Benkovic - 2002-08-24

      Are you 100% sure that there are PEAR files in "/usr/local/lib/php/" or "/usr/src/php- 4.2.2/pear"? Otherwise, I'd say that you need an extra slash at the end of the last path in your include_path.

       
    • Anonymous

      Anonymous - 2002-08-26

      Tried /usr/local/lib/php and /usr/local/lib/php (with the slash)

      This following is a directory listing of /usr/local/lib/php

      drwxr-xr-x   5 root     system      8192 Aug 26 08:04 ..
      drwxr-x---   2 root     system      8192 Aug 23 09:04 Archive
      drwxr-x---   2 root     system      8192 Aug 23 09:04 Console
      drwxr-x---   2 root     system      8192 Aug 23 09:04 Crypt
      drwxr-x---   2 root     system      8192 Aug 23 09:04 DB
      -rw-r--r--   1 root     system     27819 Aug 23 09:04 DB.php
      drwxr-x---   2 root     system      8192 Aug 23 09:04 Date
      drwxr-x---   2 root     system      8192 Aug 23 09:04 File
      drwxr-x---   2 root     system      8192 Aug 23 09:04 HTML
      drwxr-x---   2 root     system      8192 Aug 23 09:04 HTTP
      -rw-r--r--   1 root     system      6554 Aug 23 09:04 HTTP.php
      drwxr-x---   2 root     system      8192 Aug 22 17:14 Image
      drwxr-x---   2 root     system      8192 Aug 23 09:04 Mail
      -rw-r--r--   1 root     system      7287 Aug 23 09:04 Mail.php
      drwxr-x---   2 root     system      8192 Aug 23 09:04 Net
      drwxr-x---   4 root     system      8192 Aug 23 09:04 PEAR
      -rw-r--r--   1 root     system     24378 Aug 23 09:04 PEAR.php
      drwxr-x---   2 root     system      8192 Aug 23 09:04 Schedule
      -rw-r--r--   1 root     system     13327 Aug 23 09:04 System.php
      drwxr-x---   2 root     system      8192 Aug 23 09:04 XML
      drwxr-x---   2 root     system      8192 Aug 22 17:14 build
      drwxr-x---   3 root     system      8192 Aug 22 17:14 extensions

       
      • Rudi Benkovic

        Rudi Benkovic - 2002-08-28

        I'd say that the permissions aren't okay - all users should be able to read these files:

        # ll
        total 236
        drwxr-xr-x    2 root     root         4096 Jun 24 23:52 Archive
        drwxr-xr-x    2 root     root         4096 Aug 26 09:27 Benchmark
        drwxr-xr-x    2 root     root         4096 Jul 29 18:41 build
        drwxr-xr-x    3 root     root         4096 Aug 25 12:39 Cache
        -rw-rw-rw-    1 root     root        10940 Aug 25 12:39 Cache.php

        ...

        How did you install PHP?

         
    • Anonymous

      Anonymous - 2002-08-28

      (from above)
      Configure command: ./configure --with-mysql --with-imap=/usr/local/imap --with-gettext --enable-mbstring --enable-track-vars --with-apxs2=/usr/local/apache2/bin/apxs
      Apache2 was compiled with --enable-module=so

      I don't know if you'll be able to make anything out of this, but a friend copied the missing (PEAR) files into the following directory and now install.php sees all the PEAR files except Net/Socket, which wasn't installed yet.  I tried copying Socket.php into the Net directory, but install.php still isn't able to locate the file.  Any ideas?
      # pwd
      /usr/local/apache2/htdocs/jawmail/install/intro
      # ls -al
      total 99
      drwxr-x---   4 nobody   nobody      8192 Aug 26 14:27 .
      drwxr-x---  10 nobody   nobody      8192 Aug 13 13:29 ..
      drwxr-xr-x   2 root     system      8192 Aug 23 09:04 Crypt
      -rw-r-----   1 root     nobody     27819 Aug 26 14:25 DB.php
      -rw-r-----   1 root     nobody      7287 Aug 26 14:25 Mail.php
      drwxr-xr-x   2 root     system      8192 Aug 26 16:04 Net
      -rwxr-x---   1 root     nobody     24378 Aug 26 14:24 PEAR.php
      -rw-r-----   1 nobody   nobody      4725 Aug 13 13:29 index.php
      -rw-r-----   1 nobody   nobody      1874 Aug 26 14:24 lib.php
      #

       
      • Rudi Benkovic

        Rudi Benkovic - 2002-08-28

        Well, I tried to 'chmod -r PEAR.php' on one of my servers - the install script said 'Missing!' for that file.

        Could you please make all of the files world writable and all of the directories world executable in "/usr/local/lib/php/"?

        The command "pear install Net_Socket" should do the trick to install Net/Socket.

         
    • Anonymous

      Anonymous - 2002-08-30

      Did a chmod -R 777 php (just to test) in /usr/local/lib and that solved the missing PEAR problems... I've decided to rebuild php/apache from scratch now that I know what the problem is.  Thank you very much!

       
    • Anonymous

      Anonymous - 2002-08-30

      Installation was a success, but when I try to login, I'm receiving this message:  "You have entered the wrong username or password."  IMAP is installed - I can telnet to my server port 143.

       
    • Anonymous

      Anonymous - 2002-08-30

      I'm guessing it's probably the same problem (permissions) that I had when installing JAWmail.  I'm going to re-install IMAP and see if that fixes it.

       
    • Anonymous

      Anonymous - 2002-09-06

      Re-installed IMAP.  Testing IMAP during install.php and it works fine.  MySQL created the DB fine, as well.  Install goes smoothly, but I'm having trouble logging in:

      "Please log in.
      Have trouble logging in? Check if your browser properly stores cookies."

      FYI:  I didn't run the post install script yet... should I do that now - would that be the problem?

      Cookie compatibility testing

      I don't know why Method 1 FAILED b/c I have it set to accept all cookies and prompt before accepting a cookie.  When I try to login I receive the cookie prompt, accept it, then I get the error message (see above)

      Test results
      Method 1  FAILED
      Cookie with a limited lifetime 
      Check if your system clock matches with the one on the server. 

      Method 2  OK 
      Session cookie 

      Your browser (Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461)) provided these cookies: cookie_test_2 test
      lang en_US
      sid 220e2c38af996483e5612520e9302740
      theme default-jawmail
      testcookie2 test

      Server time: Friday, 06 September 2002 19:17:55 GMT
      Client time: Fri, 6 Sep 2002 19:18:00 UTC

       
      • Rudi Benkovic

        Rudi Benkovic - 2002-09-06

        Are you by any chance using Apache 2?

        Otherwise, I'm puzzled. Cookie problems, the most perplexing problem ever.

        I can see that the session ID cookie gets correctly set, but the session key (for decryption) doesn't.

        Is this setup perhaps public? Could you send me an email to rudi<at>jawmail.org for any additional infos? I'd like to squash these annoying bugs and roll 2.0 final!

         
    • Anonymous

      Anonymous - 2002-09-06

      Check your email.

       

Log in to post a comment.