PHP compiles c-client IMAP clients. Http://www.washington.edu/imap/mirrors.html
The first step, compile C-client official documents in the end a bit of pit, compile error "BUG: x509v3.h: No file or directory", search the next forum, use the following command to compile through make SLX sslinclude=/usr/include/openssl/ Extracflags=-fpic No add extracflags=-fpic in compiling Php-imap error: Libc-client.a:could not read Symbols:bad value. Added after the smooth compile through
Second step, copy files to directory
mkdir lib
mkdir include
cp c-client/*.c lib/
cp c-client/*.h include/
cp c-client/c-client.a lib/libc-client.a
第三部,编译PHP
compile in an extended way, save time and effort,CD php-5.3.23/ext/imapphpize./configure--with-imap=/usr/local/imap-2007f/--with-imap-sslcopy imap.la imap.so to PHP Extended Directory
Fourth step, modify the PHP configuration modify php.ini add extension=/path/to/imap.so restart PHP-FPM
Referencehttp://www.brighterlamp.com/2012/12/how-to-compile-php-with-imap-support/
CENTOS6 PHP compiled IMAP module