CentOS下为PHP安装 IMAP 扩展
时间:2014-12-03 08:58 来源:linux.it.net.cn 作者:IT
环境:
CentOS 6.5x64
PHP-5.4.26
[root@www imap]# yum -y install krb5-devel libc-client libc-client-devel
[root@www imap]# ln -sv /usr/lib64/libc-client.so /usr/lib/libc-client.so
进行PHP软件扩展目录
[root@www /]# cd /usr/local/src/php-5.4.26/ext/imap
[root@www imap]# /usr/local/php5/bin/phpize
[root@www imap]# ./configure --with-php-config=/usr/local/php5/bin/php-config --with-imap=/usr/lib64 --with-imap-ssl --with-kerberos
[root@www imap]# make;make install
[root@www map]]# vi /etc/php.d/imap.ini
extension = /usr/local/php5/lib/php/extensions/no-debug-non-zts-20100525/imap.so
[root@www imap]# service php-fpm restart
(责任编辑:IT)
环境: CentOS 6.5x64 PHP-5.4.26 [root@www imap]# yum -y install krb5-devel libc-client libc-client-devel [root@www imap]# ln -sv /usr/lib64/libc-client.so /usr/lib/libc-client.so 进行PHP软件扩展目录 [root@www /]# cd /usr/local/src/php-5.4.26/ext/imap [root@www imap]# /usr/local/php5/bin/phpize [root@www imap]# ./configure --with-php-config=/usr/local/php5/bin/php-config --with-imap=/usr/lib64 --with-imap-ssl --with-kerberos [root@www imap]# make;make install [root@www map]]# vi /etc/php.d/imap.ini extension = /usr/local/php5/lib/php/extensions/no-debug-non-zts-20100525/imap.so [root@www imap]# service php-fpm restart |