CENTOS6 PHP compiled IMAP module

Source: Internet
Author: User
Tags imap
PHP compiles c-client IMAP client. Download Address http://www.washington.edu/imap/mirrors.html

The first step is to compile the c-client

Official documents in the end a bit of a pit, compile error "BUG: x509v3.h: No file or directory", search the next forum, using the following command compiled by

Make SLX Sslinclude=/usr/include/openssl/extracflags=-fpic

No add extracflags=-fpic in compile 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


Part III, compiling PHP

Compile in an extended way, save time and effort,

CD Php-5.3.23/ext/imap

Phpize

./configure--with-imap=/usr/local/imap-2007f/--with-imap-ssl

Copy imap.la imap.so to PHP extension directory


Fourth step, modify the PHP configuration

Modify PHP.ini Add

Extension=/path/to/imap.so

Restart PHP-FPM


Reference

http://www.brighterlamp.com/2012/12/how-to-compile-php-with-imap-support/

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.