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.

Error when trying to add IMAP to php

Discussion in 'General Discussion' started by Scott Greczkows, Dec 29, 2005.

  1. Scott Greczkows

    Scott Greczkows Well-Known Member

    Joined:
    Feb 5, 2004
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    I need to add IMAP support to my php for a program that needs to run and it requires that imap be compiled in PHP.

    If I go through Update Apache in WHM I select GD, IMAP and PSPELL I leave all the other defaults alone.

    I get an error to contact the system admin.

    If I do it again but leave IMAP unchecked it works fine and everything compiles up nicely.

    If I SSH into the server and run /scripts/easyapache

    I get the following error message..

    Anyone got any hints or suggestions or should I put in a support ticket?
     
  2. Scott Greczkows

    Scott Greczkows Well-Known Member

    Joined:
    Feb 5, 2004
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    NO luck on this yet, I contacted my ISP and they told me to contact CPANEL.

    Any other advice?
     
  3. netlook

    netlook Well-Known Member
    PartnerNOC

    Joined:
    Mar 25, 2004
    Messages:
    335
    Likes Received:
    0
    Trophy Points:
    16
    Recompile apache with IMAP support
     
  4. NetPublicist

    NetPublicist Well-Known Member

    Joined:
    Aug 19, 2003
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    6
    Im getting the same error when I try to compile with IMAP, I need to have IMAP for a script we have installed, but when I rebuild apache with IMAP it gives the error and httpd won't start. Any ideas??
     
  5. WestBend

    WestBend Well-Known Member

    Joined:
    Oct 12, 2003
    Messages:
    173
    Likes Received:
    0
    Trophy Points:
    16
  6. NetPublicist

    NetPublicist Well-Known Member

    Joined:
    Aug 19, 2003
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    6
    Im on RedHat ES (x86_64), I opened a support ticket with cPanel and found out that this is a known issue on x86_64, I was able to recompile php with imap support as long as I turned off Versioning in /scripts/easyapache. My PHP scripts seem to recognize that IMAP is activated now, but when I log into Horde I get the following error:


    Notice:
    (null)(): [CLOSED] IMAP connection broken (server response) (errflg=1) in Unknown on line 0
     
  7. Scott Greczkows

    Scott Greczkows Well-Known Member

    Joined:
    Feb 5, 2004
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
  8. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    The original issue is due to the somewhat borked what that x64_86 has been cobbled into linux with the split library directories. Usually, installing the 32bit equivalents sorts out some issues, though some symlinking is often also needed.

    For this:
    What the actual line where you initiate the imap connection in the php script?
     
  9. pizzaman

    pizzaman Well-Known Member
    PartnerNOC

    Joined:
    Oct 1, 2003
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    Got that error too.

    Got that error too on a brand new box with Centos 4.2 x86_64 with courier-imap. :confused:

    That's the erorr msg we see when try to login via Horde. And the error we got when login via Squirrelmail was

    Code:
    ERROR : Connection dropped by imap-server.
    /scripts/eximup --force
    /scripts/courierup --force

    didn't help either.

    Anybody know a solution to this?

    Thanks
     
  10. Mr_Stepfire

    Mr_Stepfire Active Member

    Joined:
    Dec 20, 2004
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    The Netherlands
    i don't get i fixed! i got the same error of the TS.
    I'me using CentOS 4.2 64 bit, it's strange!
    I also can't compile php 4.4.1 to 4.4.2.

    Does someone have a solution??
     
  11. jachinrupe

    jachinrupe Registered

    Joined:
    Feb 13, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    same problem

    hi there

    I've got bascially the same problem with the same setup:
    WHM 10.8.0 cPanel 10.8.1-R113
    CentOS 4.2 x86_64 - WHM X v3.1.0

    I'm getting the error in Hord after trying to convert mbox to maildir.

    If I figure anything out I'll be sure to post it.

    thanks

    -jachin
     
  12. pizzaman

    pizzaman Well-Known Member
    PartnerNOC

    Joined:
    Oct 1, 2003
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
  13. pizzaman

    pizzaman Well-Known Member
    PartnerNOC

    Joined:
    Oct 1, 2003
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    This is now resolved.

    I found this in today's logwatch:

    **Unmatched Entries**
    /usr/lib/courier-imap/bin/imapd: error while loading shared libraries: libfam.so.0: cannot open shared object file: No such file or directory: 16 Time(s)
    LOGOUT, ip=[::ffff:127.0.0.1]: 24 Time(s)

    and this means that all dependencies for courier-imap are not met, and hence
    broken courier-imap login process.

    To fix it, just run (on your Centos 4.2 x86_64)

    # yum install gamin.x86_64 gamin-devel.x86_64
     
  14. jachinrupe

    jachinrupe Registered

    Joined:
    Feb 13, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    worked for me too

    hi there

    It turned out I had the exact same problem and installing gamin.x86_64 and gamin-devel.x86_64 fixed the probelm

    thanks Scott

    -jachin
     
  15. EddieFudd

    EddieFudd Member

    Joined:
    Jan 1, 2006
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    thanks, this solved my problem to
     
  16. xisn

    xisn Well-Known Member

    Joined:
    Dec 4, 2004
    Messages:
    128
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    same here..

    I had the same issue so I performed the following steps:

    I am using:

    WHM 10.8.0
    cPanel 10.8.2-R119
    Linux RHEL 4 x86_64

    ldd /usr/lib/courier-imap/bin/imapd

    Code:
            [B][COLOR="Red"]libfam.so.0 => not found[/COLOR][/B]
            libgdbm.so.2 => /usr/lib64/libgdbm.so.2 (0x0000003205e00000)
            libcourierauth.so.0 => /usr/lib64/courier-authlib/libcourierauth.so.0 (0x0000002a95563000)
            libc.so.6 => /lib64/tls/libc.so.6 (0x0000003204f00000)
            /lib64/ld-linux-x86-64.so.2 (0x0000003204d00000)
    
    So I went searching for the RPM and found it here:
    Code:
    wget ftp://ftp.pbone.net/mirror/www.whiteboxlinux.org/whitebox/4/en/os/x86_64/WhiteBox/RPMS/gamin-0.0.17-4.x86_64.rpm
    
    So I used the RPM Update:

    Code:
    rpm -Uvh gamin-0.0.17-4.x86_64.rpm
    
    Then decided to test the curior command again:
    Code:
            libfam.so.0 => /usr/lib64/libfam.so.0 (0x0000002a95562000)
            libgdbm.so.2 => /usr/lib64/libgdbm.so.2 (0x0000003205e00000)
            libcourierauth.so.0 => /usr/lib64/courier-authlib/libcourierauth.so.0 (0x0000002a95668000)
            libc.so.6 => /lib64/tls/libc.so.6 (0x0000003204f00000)
            /lib64/ld-linux-x86-64.so.2 (0x0000003204d00000)
    
    Now horde is working like it is supposed to :)

    Good luck!
     
  17. dinfiesta

    dinfiesta Well-Known Member

    Joined:
    May 2, 2005
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    6
    Yeap...It works on Centos 4.4 x64.

    Thanks!!
     
  18. villario

    villario Registered

    Joined:
    Dec 10, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    IMAP configuration error

    This might do it for most

    root@secure [/scripts]# up2date gamin

    There is some obscure dependancy missing in the IMAP install:

    root@secure [/scripts]# ldd /usr/lib/courier-imap/bin/imapd
    libfam.so.0 => not found
    libgdbm.so.2 => /usr/lib64/libgdbm.so.2 (0x00000037e7600000)
    libcourierauth.so.0 => /usr/lib64/courier-authlib/libcourierauth.so.0
    (0x0000002a95563000)
    libc.so.6 => /lib64/tls/libc.so.6 (0x00000037e6700000)
    /lib64/ld-linux-x86-64.so.2 (0x00000037e6500000)

    I happen to know libfam is in the gamin package, so:

    root@secure [/scripts]# up2date gamin

    Fetching Obsoletes list for channel: rhel-x86_64-es-4...

    Fetching Obsoletes list for channel: rhel-x86_64-es-4-extras...

    Fetching rpm headers...
    ########################################

    Name Version Rel
    ----------------------------------------------------------
    gamin 0.1.1 4.EL4 x86_64


    Testing package set / solving RPM inter-dependencies...
    ########################################
    gamin-0.1.1-4.EL4.x86_64.rp ########################## Done.
    Preparing ########################################### [100%]

    Installing...
    1:gamin ########################################### [100%]
    /sbin/ldconfig: libraries libexpat.so.0.4.0 and libexpat.so.0.5.0 in directory /usr/lib
    have same soname but different type.

    Now the library is installed:

    root@secure [/scripts]# ldd /usr/lib/courier-imap/bin/imapd
    libfam.so.0 => /usr/lib64/libfam.so.0 (0x0000002a95562000)
    libgdbm.so.2 => /usr/lib64/libgdbm.so.2 (0x00000037e7600000)
    libcourierauth.so.0 => /usr/lib64/courier-authlib/libcourierauth.so.0
    (0x0000002a9566a000)
    libc.so.6 => /lib64/tls/libc.so.6 (0x00000037e6700000)
    libpthread.so.0 => /lib64/tls/libpthread.so.0 (0x00000037e7200000)
    /lib64/ld-linux-x86-64.so.2 (0x00000037e6500000)

    And webmail works the way it should.
     
Loading...

Share This Page