lnmp1.8安装imap 100%成功教程,感谢军哥lnmp1.9默认安装imap等插件的支持,
以后这个教程就用不到了,
添加IMAP模块 yum -y install libc-client-* yum install -y libc-client-devel yum -y install uw-imap-devel
进入lnmp的src目录 cd ~/lnmp1.8/src 解压php (注意版本号) tar -xjvf php-7.3.29.tar.bz2
cd php-7.3.29/ext/imap cd ~/lnmp1.8/src/php-7.3.29/ext/imap /usr/local/php/bin/phpize ln -s /usr/lib64/libc-client.so /usr/lib/libc-client.so ./configure --with-php-config=/usr/local/php/bin/php-config --with-imap-ssl --with-kerberos make && make install
出现 就表示安装成功 Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/
编辑 /usr/local/php/etc/php.ini 添加 extension=/usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/imap.so
lnmp restart
|