Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install IMAP extension under CentOS

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to install IMAP extension under CentOS, which has certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let Xiaobian take you to understand it together.

Note: 56 of the following commands 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

Processing connections:

ln -sv /usr/lib64/libc-client.so /usr/lib/libc-client.so

Enter the IMAP source directory for the PHP version:

cd /www/server/php/56/src/ext/imap

Execute the corresponding version of the extension initializer:

/www/server/php/56/bin/phpize

Prepare to compile configuration:

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

compilation and installation

make && make install

Write configuration file:

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

Overloaded PHP:

service php-fpm-56 reload Thank you for reading this article carefully, I hope Xiaobian shared "How to install IMAP extension under CentOS" This article is helpful to everyone, but also hope that everyone will support more, pay attention to the industry information channel, more relevant knowledge waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report