How to Install IMAP

New way

If you need imap compiled into php, run these pre-install commands:
CentOS

yum -y install pam-devel

Debian

apt-get install libc-client-dev



Once pre-install is done for your OS, run the following:

cd /root
wget files.directadmin.com/services/all/imap_php.sh
chmod 755 imap_php.sh
./imap_php.sh

supports both CustomBuild 1.x and 2.x.
For CB2, it will automatically detect the configure.phpX path.

Note that this is beyond our technical support.


old related guide:
http://www.directadmin.com/imap.txt

Note that this is considered a 3rd party customization, and is beyond our technical support if you have issues.





Old Way

Voor CentOs de volgende pakketten instaleren

yum install libc-client-devel
yum install krb5-devel
yum install libc-client.i686 libc-client-devel.i686

 

Voor Debian de volgende pakketten instaleren:

apt-get install libc-client-dev
apt-get install krb5-devel


De aanpassing die je moet doen bestaat uit het toevoegen van de volgende regels

--with-imap-ssl \
--with-imap \

in de suphp/configure.php5 is deze met quotes

"--with-imap-ssl \"
"--with-imap \"

Dan in de directory
/usr/local/directadmin/custombuild/

./build clean
en
./build php

of nieuwe situatie: onderstaande bron: http://forum.directadmin.com/showthread.php?t=37357

 yum install libc-client.i686 libc-client-devel.i686


1: Go to the DA custombuild directory

cd /usr/local/directadmin/custombuild

2: Edit configure/ap2/configure.php5

nano configure/ap2/configure.php5

3: Add the next 2 lines at the end of the file. Be sure that ONLY the last options have no "\" at the end and save (CTRL-O) and quit (CTRL-Q)

--with-imap=/usr/lib/dovecot/imap \
--with-imap-ssl 

4: Re-compilling PHP

./build php n

5: Restart apache

/sbin/service httpd restart

And you have PHP-Imap Installed.

Thank you.


Was this article helpful?

mood_bad Dislike 1
mood Like 5
visibility Views: 14916
Related articles: