【LDAP安装】在已编译安装的PHP环境下安装LDAP模块
2018-12-06 本文已影响3人
乐维_lwops
在已编译安装的PHP环境下安装LDAP模块
(其他模块也能以这个方式安装)
1、在PHP源码包内找到ldap模块文件
cd php-5.6.37

2、phpize命令是用来准备 PHP 扩展库的编译环境
phpize
./configure
make & make install



若报错configure:error: Cannot find ldap libraries in /usr/lib
执行cp -frp /usr/lib64/libldap* /usr/lib/ 再进行
make &make install
3、在php中的php.ini文件末尾添加extension=ldap.so



4、最后php –m 查看是否已经安装ldap模块成功
php -m

原文地址
(出处: 乐维_一站式运维监控管理平台)