CentOS 7.x,不重新编译 PHP,动态安装 imap 扩展
先前的教程:PHP5不重新编译,如何安装自带的未安装过的扩展,如soap扩展?
# 安装依赖包 yum install -y libc-client-devel /usr/local/src/centos-sdk/source2/php/php-5.6.30/ext/imap /usr/local/php/bin/phpize ./configure -with-php-config=/usr/local/bin/php-config -with-imap -with-imap-ssl -with-kerberos -with-libdir=lib64 make && make install echo “extension=imap.so” >> /etc/php.ini # 重启 php-fpm service php-fpm restart