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!