Home > System Tutorial > LINUX > A concise guide to installing IMAP extensions on CentOS

A concise guide to installing IMAP extensions on CentOS

WBOY
Release: 2024-01-03 14:17:48
forward
598 people have browsed it

Note: 56 in the following operation command is the PHP version, please replace it with the PHP version you want to install the IMAP component; the following directory is for reference only, please refer to the actual installation directory.

Installation dependencies:

yum -y install krb5-devel libc-client libc-client-devel
Copy after login

Handling connections:

ln -sv /usr/lib64/libc-client.so /usr/lib/libc-client.so
Copy after login

Enter the IMAP source code directory corresponding to the PHP version:

cd /www/server/php/56/src/ext/imap
Copy after login

Execute the corresponding version of the expansion initialization program:

/www/server/php/56/bin/phpize
Copy after login

Prepare compilation configuration:

./configure –with-php-config=/www/server/php/56/bin/php-config –with-imap=/usr/lib64 –with-imap-ssl –with-kerberos
Copy after login

Compilation and installation

make && make install
Copy after login

Write configuration file:

echo ‘extension = imap.so’ >> /www/server/php/56/etc/php.ini
Copy after login

Reload PHP:

service php-fpm-56 reload
Copy after login

The above is the detailed content of A concise guide to installing IMAP extensions on CentOS. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template