Scott Greczkows

Well-Known Member
Feb 5, 2004
65
1
158
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..

make php-4.4.1...(install)..........Done
initfpsuexec: using apache 1.x support
PHP version file has been updated to 4.4.1
Executing /scripts/postbuildapache (if exists)...Done
Syntax error on line 216 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/lib64/libc-client.so.0: undefined symbol: mm_dlog
/etc/rc.d/init.d/httpd start: httpd could not be started
Waiting for httpd to restart..............finished.


httpd has failed, please contact the sysadmin.
Anyone got any hints or suggestions or should I put in a support ticket?
 

NetPublicist

Well-Known Member
Aug 19, 2003
54
0
156
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??
 

NetPublicist

Well-Known Member
Aug 19, 2003
54
0
156
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
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
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:
Notice: (null)(): [CLOSED] IMAP connection broken (server response) (errflg=1) in Unknown on line 0
What the actual line where you initiate the imap connection in the php script?
 

pizzaman

Well-Known Member
PartnerNOC
Oct 1, 2003
70
0
156
Got that error too.

NetPublicist said:
Notice: (null)(): [CLOSED] IMAP connection broken (server response) (errflg=1) in Unknown on line 0
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
 

Mr_Stepfire

Active Member
Dec 20, 2004
40
0
156
The Netherlands
pizzaman said:
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
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??
 

jachinrupe

Registered
Feb 13, 2006
3
0
151
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
 

pizzaman

Well-Known Member
PartnerNOC
Oct 1, 2003
70
0
156
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
 

jachinrupe

Registered
Feb 13, 2006
3
0
151
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
 

xisn

Well-Known Member
Dec 4, 2004
136
5
168
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!
 

dinfiesta

Well-Known Member
May 2, 2005
58
0
156
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
Yeap...It works on Centos 4.4 x64.

Thanks!!
 

villario

Registered
Dec 10, 2006
4
0
151
IMAP configuration error

This might do it for most

[email protected] [/scripts]# up2date gamin

There is some obscure dependancy missing in the IMAP install:

[email protected] [/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:

[email protected] [/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:

[email protected] [/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.