對於LDAP的安裝得先安裝
檢查下面是否是已經安裝,若是沒有安裝之:
檢查:
yum list openldap
yum list openldap-devel
安裝 :
yum install openldap
yum install openldap-devel php
必定要執行這條命令: spa
cp -frp /usr/lib64/libldap* /usr/lib/ rest
進入安裝目錄下
cd /root/lnmp1.0-full/php-5.2.17/ext/ldap lnmp
而後運行
/usr/local/php/bin/phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626 it
./configure --with-php-config=/usr/local/php/bin/php-config io
make
make install yum
修改 vi /usr/local/php/etc/php.ini
extension=ldap.so vi
重啓lnmp restart make