Imap

PRB

Verified User
Joined
Oct 18, 2008
Messages
155
Hello,

Many of my clients get a white page when trying to use IMAP.

Code:
#!/bin/sh
./configure \
	--with-apxs2 \
	--with-curl=/usr/local/lib \
	--with-gd \
        --enable-gd-native-ttf \
        --with-ttf \
	--with-gettext \
	--with-jpeg-dir=/usr/local/lib \
	--with-freetype-dir=/usr/local/lib \
	--with-kerberos \
	--with-openssl \
	--with-mcrypt \
	--with-mhash \
	--with-mysql=/usr \
	--with-mysqli=/usr/bin/mysql_config \
	--with-pcre-regex=/usr/local \
	--with-pdo-mysql=/usr \
	--with-pear \
	--with-png-dir=/usr/local/lib \
	--with-zlib \
	--with-zlib-dir=/usr/local/lib \
	--enable-soap \
        --enable-zip \
        --with-imap-ssl \
        --with-imap \
	--with-iconv=/usr/local \
	--enable-bcmath \
	--enable-calendar \
	--enable-ftp \
	--enable-magic-quotes \
	--enable-sockets \
	--enable-mbstring

The ports needed (993) are all open, what can I do to make this work?
 
Explain what imap has to do with a page of any sort.
 
This is for RHEL-based (CentOS/Fedora) installations, it could also work on other OS'es, not tested.

x86 (32-bit) installations
yum install krb5-devel libc-client libc-client-devel -y
wget http://dave.t0xic.nl/tars/imapback-2004c1-x86.tar.gz
tar xzf imapback-2004c1-x86.tar.gz
cd imap-2004c1
./buildit
cd c-client
mkdir /usr/local/imap-2004c1/
mkdir /usr/local/imap-2004c1/lib
mkdir /usr/local/imap-2004c1/include
cp *.h /usr/local/imap-2004c1/include
cp *.c /usr/local/imap-2004c1/lib
cp c-client.a /usr/local/imap-2004c1/lib
ln -s /usr/local/imap-2004c1/c-client.a /usr/local/imap-2004c1/libc-client.a

x86_64 (64-bit) installations
yum install krb5-devel libc-client libc-client-devel -y
wget http://dave.t0xic.nl/tars/imapback-2004c1-x86_64.tar.gz
tar xzf imapback-2004c1-x86_64.tar.gz
cd imap-2004c1
./buildit
cd c-client
mkdir /usr/local/imap-2004c1/
mkdir /usr/local/imap-2004c1/lib
mkdir /usr/local/imap-2004c1/include
cp *.h /usr/local/imap-2004c1/include
cp *.c /usr/local/imap-2004c1/lib
cp c-client.a /usr/local/imap-2004c1/lib
ln -s /usr/local/imap-2004c1/c-client.a /usr/local/imap-2004c1/libc-client.a
After this is done you need to add the 3 lines below in your configure.php5
--with-pic \
--with-imap=/usr/local/imap-2004c1 \
--with-imap-ssl=/usr/local/imap-2004c1
Now recompile PHP with './build php n' and it should work.
Try the command below to check if IMAP is installed
php -m | grep imap
 
I have done everything in the exact same order as you wrote, I still get a white page when trying to use IMAP in PHP.
 
Back
Top