jimcarter

Well-Known Member
Jun 30, 2002
152
0
166
UK
SSH to your server as root
wget http://layer1.cpanel.net/buildapache.sea
sh buildapache.sea
then choose the option with php with the IMAP module, + you can choose GD and mcrypt if needed,
Thanks
 

silvernetuk

Well-Known Member
Sep 2, 2002
311
0
166
United Kingdom
Hi,

I have read in the below thread that buildapache.sea does not have IMAP support in it, the thread was posted in the 05/01/03 and the link is below to that thread

http://216.118.116.105/read.php?TID=6680&page=1#28996

Any help please ?

Regards,
Garry
 

H2Hosting.com

Well-Known Member
Sep 4, 2001
192
0
316
[quote:33bf63f4a6][i:33bf63f4a6]Originally posted by silvernetuk[/i:33bf63f4a6]
How do I config IMAP into php ?
I am very new at this
Regarrds,
Garry[/quote:33bf63f4a6]

/scripts/ensurerpm imap-devel
/scripts/ensurerpm imap-uw
if [ -e &/usr/local/libexec& ] ; then
cp -f /usr/local/cpanel/3rdparty/bin/imapd /usr/local/libexec
fi
if [ -e &/usr/lib/libc-client.a& ]; then
(cd /usr/lib;ln -s libc-client.a c-client.a)
fi
if [ &`grep openssl /usr/lib/libc-client.a 2&/dev/null`& = && ]; then
export WITHIMAP=&--with-imap&
if [ -e /etc/krb5.conf ]; then
WITHIMAP=&$WITHIMAP --with-kerberos&
fi
else
export WITHIMAP=&--with-imap --with-imap-ssl&
if [ -e /etc/krb5.conf ]; then
WITHIMAP=&$WITHIMAP --with-kerberos&
fi
fi


THEN:

here is my php config line:

cd php-4.2.3
rm -f config.cache
./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml --with-imap --with-kerberos --with-pdflib --with-pear --with-gettext --enable-calendar --with-curl --with-iconv=/usr/local/lib --with-swf=/usr/local/flash --enable-ftp --with-gd --enable-gd-native-tt --enable-gd-imgstrttf --with-gdbm=/usr/include --with-jpeg-dir=/usr/local/lib --with-xpm-dir=/usr/X11R6 --with-png --with-png-dir=/usr/local/ --with-mcrypt --with-ming=../ming-0.2a --enable-magic-quotes --with-mysql --enable-xslt --with-xslt-sablot --with-sablot --with-sablot-js --enable-sablot-errors-descriptive --enable-safe-mode --enable-track-vars --enable-memory-limit=yes --enable-short-tags --enable-mailparse --with-ttf --with-t1lib --with-expat --with-expat-dir=/usr/ --enable-versioning --with-zlib-dir=/usr --enable-dbase --enable-mailparse --with-freetype-dir=/usr/local/include/freetype2/freetype --with-imap-ssl
echo &#undef COMPILE_DL_ZLIB& && main/php_config.h
echo &#define HAVE_SENDMAIL 1& && main/php_config.h
make
make install


MOST IMPORTANT part is:
--with-imap --with-kerberos --with-imap-ssl
 

silvernetuk

Well-Known Member
Sep 2, 2002
311
0
166
United Kingdom
Hi,

Ok I am a little lost here.

When does this code go ? and where do I get the imap modules ?

Regards.
Garry

[quote:5b286e9c38]
/scripts/ensurerpm imap-devel
/scripts/ensurerpm imap-uw
if [ -e &/usr/local/libexec& ] ; then
cp -f /usr/local/cpanel/3rdparty/bin/imapd /usr/local/libexec
fi
if [ -e &/usr/lib/libc-client.a& ]; then
(cd /usr/lib;ln -s libc-client.a c-client.a)
fi
if [ &`grep openssl /usr/lib/libc-client.a 2&/dev/null`& = && ]; then
export WITHIMAP=&--with-imap&
if [ -e /etc/krb5.conf ]; then
WITHIMAP=&$WITHIMAP --with-kerberos&
fi
else
export WITHIMAP=&--with-imap --with-imap-ssl&
if [ -e /etc/krb5.conf ]; then
WITHIMAP=&$WITHIMAP --with-kerberos&
fi
fi


THEN:

here is my php config line:

cd php-4.2.3
rm -f config.cache
./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml --with-imap --with-kerberos --with-pdflib --with-pear --with-gettext --enable-calendar --with-curl --with-iconv=/usr/local/lib --with-swf=/usr/local/flash --enable-ftp --with-gd --enable-gd-native-tt --enable-gd-imgstrttf --with-gdbm=/usr/include --with-jpeg-dir=/usr/local/lib --with-xpm-dir=/usr/X11R6 --with-png --with-png-dir=/usr/local/ --with-mcrypt --with-ming=../ming-0.2a --enable-magic-quotes --with-mysql --enable-xslt --with-xslt-sablot --with-sablot --with-sablot-js --enable-sablot-errors-descriptive --enable-safe-mode --enable-track-vars --enable-memory-limit=yes --enable-short-tags --enable-mailparse --with-ttf --with-t1lib --with-expat --with-expat-dir=/usr/ --enable-versioning --with-zlib-dir=/usr --enable-dbase --enable-mailparse --with-freetype-dir=/usr/local/include/freetype2/freetype --with-imap-ssl
echo &#undef COMPILE_DL_ZLIB& && main/php_config.h
echo &#define HAVE_SENDMAIL 1& && main/php_config.h
make
make install


MOST IMPORTANT part is:
--with-imap --with-kerberos --with-imap-ssl[/quote:5b286e9c38]