Ldap是轻量目录访问协议,英文全称是Lightweight Directory Access Protocol。
cd /usr/local/src/php-5.4.36(自己的php版本)/ext/ldap /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config --with-ldap //若报错:configure: error: Cannot find ldap.h 执行以下 yum install openldapyum yum install openldap-devel //若报错:configure: error: Cannot find ldap libraries in /usr/lib 执行以下 cp -frp /usr/lib64/libldap* /usr/lib/ //无错误,执行以下 make make install //返回extension_dir: /usr/local/php/lib/php/extensions/no-debug-zts-20060613
cd /usr/local/src/php-5.4.36(自己的php版本)/ext/ldap cp modules/ldap.so /usr/local/php/lib/php/extensions/no-debug-zts-20060613
extension_dir="/usr/local/php/lib/php/extensions/no-debug-zts-20060613" extension="ldap.so"
(责任编辑:最模板) |