在centos集成服务器上安装imap扩展
yum install libc-client-devel.x86_64(如果不行就yum install libc-client-devel)
ln -s /usr/lib64/libc-client.so /usr/lib/libc-client.so
cd oneinstack/src
tar xzf php-5.6.13.tar.gz #具体看你的版本号
cd php-5.6.13/ext/imap
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config --with-kerberos --with-imap-ssl
make && make install
cd /usr/local/php/lib/php/extensions
cd no-debug-non-zts-20131226
ls
查看有没有 imap.so
cd /usr/local/php/etc
vi php.ini
找到
extension = "redis.so" 下面加上一行
extension = "imap.so"
重启启动
service php-fpm restart
ln -s /usr/lib64/libc-client.so /usr/lib/libc-client.so
cd oneinstack/src
tar xzf php-5.6.13.tar.gz #具体看你的版本号
cd php-5.6.13/ext/imap
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config --with-kerberos --with-imap-ssl
make && make install
cd /usr/local/php/lib/php/extensions
cd no-debug-non-zts-20131226
ls
查看有没有 imap.so
cd /usr/local/php/etc
vi php.ini
找到
extension = "redis.so" 下面加上一行
extension = "imap.so"
重启启动
service php-fpm restart