CentOS system PHP 5.5 compiler install IMAP module steps

Source: Internet
Author: User
Tags imap centos

PHP requires an IMAP module to be installed when processing IMAP and POP3 mail content.

PHP 5.5.16 Install IMAP module

The IMAP module provides a way to manipulate IMAP, NNTP,POP3, and local mailboxes.

The following are the installation steps:

Install Dependency Pack client2007e

Debian:

The code is as follows Copy Code

Apt-get install-y Libc-client2007e-dev

Centos:

The code is as follows Copy Code

Yum Install-y libc-client-devel

If this dependency package is missing, the installation of the IMAP module via PHP 5.5.16 source code is an error:

Configure:error:utf8_mime2text () has new signature, but U8t_canonical is missing. This should is not happen. Check Config.log For additional information.

Of course you can manually go to the official website download imap-2007e.tar.gz compile installation.


PHP Compile install IMAP module

Please run the following command:

The code is as follows Copy Code

Cd/root/php-5.5.16/ext/imap
/usr/local/php/bin/phpize
./configure–with-php-config=/usr/local/php/bin/php-config–with-imap–with-imap-ssl–with-kerberos
Make && make install
echo "extension=imap.so" >>/etc/php.ini

Note:/root/php-5.5.16 replaces the PHP source path for your environment.

is the test installation successful?

The code is as follows Copy Code

# Php–ri IMAP
Imap
IMAP c-client Version => 2007f
SSL Support => Enabled
Kerberos Support => Enabled

That means the installation was successful!

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.