imap & php4 on FreeBSD

dannis

Verified User
Joined
Jul 3, 2008
Messages
15
I need imap suport , I see /etc/inetd.conf have this line
imap4 stream tcp nowait root /usr/sbin/imapd imapd
but my Round cube webmail can't access imap , when I login , round cube always
show "connection to IMAP server failed" , but I use telnet 0 143 IMAP is fine .
so I try to rebuild php add one line to /usr/local/directadmin/custombuild/configure/ap2/configure.php4
--with-imap

my configure.php4
cat configure/ap2/configure.php4
#!/bin/sh
./configure \
--with-apxs2 \
--with-curl \
--with-curl-dir=/usr/local/lib \
--with-gd \
--enable-gd-native-ttf \
--with-ttf \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-freetype \
--with-freetype-dir=/usr/local/lib \
--with-kerberos \
--with-openssl \
--with-mcrypt \
--with-mhash \
--with-mysql=/usr/local/mysql \
--with-mysqli=/usr/local/bin/mysql_config \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xml \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-iconv=/usr/local \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-track-vars \
--enable-mbstring \
--enable-memory-limit \
--with-imap



and do that
cd /usr/local/directadmin/custombuild/
./build php n
return some message
PHP:
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.

*** There was an error while trying to configure php. Check the configure/ap2/configure.php4 file
how to fix that .
 
Last edited:

sheroku

Verified User
Joined
May 14, 2007
Messages
6
Location
Bangkok
You should install your own c-client library rather than use built-in php_imap. Then specify path to installed library eg.
--with-imap=/usr/local/lib/
 
Top