ldap on php5.6

nango

Verified User
Joined
May 13, 2006
Messages
92
Hi
I have problem to installing Kolab Calendar(for Roundcube) on CentOS 6. What I did for enable ldap is:
Code:
cd /usr/local/directadmin/custombuild
mkdir -p custom/ap2
cp -fp configure/ap2/configure.php56 custom/ap2/configure.php56
vi custom/ap2/configure.php56 (to add this):
--with-ldap=/usr \
--with-ldap-sasl=/usr
then:
./build php n
service httpd restart
But I got this error:
Code:
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/php_ldap.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/php_ldap.dll: cannot open shared object file: No such file or directory in Unknown on line 0
my php.ini is in:/usr/local/lib/php.ini and for ldap I can only found (;extension=php_ldap.dll) its CentOS, why it have dll ?


Code:
# rpm -qa | egrep "(ldap|sasl)"
cyrus-sasl-devel-2.1.23-15.el6_6.2.x86_64
openldap-2.4.40-16.el6.x86_64
cyrus-sasl-lib-2.1.23-15.el6_6.2.x86_64
cyrus-sasl-2.1.23-15.el6_6.2.x86_64
[root@vc etc]# php -i | egrep "^(ldap|sasl)" -i
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/php_ldap.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/php_ldap.dll: cannot open shared object file: No such file or directory in Unknown on line 0

As rpm show I have ldap, How is enabling ldap on php.ini for CentOS ?
 
I found a related problem on stackoverflow for cpanel. so I edit /etc/yum.conf and removed exclude= php* this let me install php-ldap with yum: yum install php-ldap.
Should I recomplie php? what is this dll error Its not windows! I have CentOS6-64:
Code:
# PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/php_ldap.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/php_ldap.dll: cannot open shared object file: No such file or directory in Unknown on line 0
 
Last edited:
I will appritiate for any help if you have exprience on php-ldap and this dll error.
 
Last edited:
Hello,


.dll files are for Windows have have nothing to do with any linux/freebsd hosting box.


Edit the php.ini and comment out any .dll include lines, as they'll never do anything for you :)

To add modules to php, either use a pre-compiled .so file, but we recommend instead compiling them right into the php binary:
https://help.directadmin.com/item.php?id=252

John
 
Back
Top