有一个将imap配置为PHP的示例,我是从Internet复制的:
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
service php-fpm restart
但是我在第三行找不到bin/
目录:
/usr/local/php/bin/phpize
我的CentOS 7服务器下只有一个var/
目录。
[root@localhost php]# ls
var
[root@localhost php]# pwd
/usr/local/php
答案 0 :(得分:0)
您需要php-devel
软件包(CentOS):
yum install php-devel