bobsthename
Verified User
Operating System: Debian
PHP Version: 5.2.17
A client has asked for the PHP LDAP Module to be enabled but ive been having some troubles installing it.
I installed the package php5-ldap using
and restarted apache
Then I followed the custombuild instructions on how to compile php with custom modules.
Adding --with-ldap \ to /directadmin/custombuild/custom/ap2/configure.php5 then running
results in getting the following error;
checking for LDAP support... yes
checking for LDAP Cyrus SASL support... no
configure: error: Cannot find ldap.h
*** There was an error while trying to configure php. Check the custom/ap2/configure.php5 file
I did a search and couldnt find the ldap.h anywhere on the system.
So then I tried changing the configure.php5 file adding --with-ldap-dir=/usr/local/lib then php compilied fine.
I added extension=ldap.so in the phpini file and I copied the ldap.so from /usr/lib/php5/20090626+lfs to my php extension folder /usr/local/lib/php/extensions/no-debug-non-zts-20060613/
restarted apache, but in phpinfo.php the ldap module is not loaded the only reference to ldap is in the configure command;
Im at a loss as to what do do next. Do I need anyother packages to get PHP LDAP working on debian?
I also get this error in the apachelog;
Thanks
PHP Version: 5.2.17
A client has asked for the PHP LDAP Module to be enabled but ive been having some troubles installing it.
I installed the package php5-ldap using
Code:
apt-get php5-ldap
Then I followed the custombuild instructions on how to compile php with custom modules.
Adding --with-ldap \ to /directadmin/custombuild/custom/ap2/configure.php5 then running
Code:
./build php n
checking for LDAP support... yes
checking for LDAP Cyrus SASL support... no
configure: error: Cannot find ldap.h
*** There was an error while trying to configure php. Check the custom/ap2/configure.php5 file
I did a search and couldnt find the ldap.h anywhere on the system.
So then I tried changing the configure.php5 file adding --with-ldap-dir=/usr/local/lib then php compilied fine.
I added extension=ldap.so in the phpini file and I copied the ldap.so from /usr/lib/php5/20090626+lfs to my php extension folder /usr/local/lib/php/extensions/no-debug-non-zts-20060613/
restarted apache, but in phpinfo.php the ldap module is not loaded the only reference to ldap is in the configure command;
Code:
'./configure' '--with-apxs2' '--with-curl=/usr/local/lib' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gettext'
'--with-jpeg-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib' '--with-kerberos' '--with-ldap-dir=/usr/local/lib'
'--with-openssl' '--with-mcrypt' '--with-mhash' '--with-mysql=/usr/local/mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config'
'--with-pcre-regex=/usr/local' '--with-pdo-mysql=/usr/local/mysql' '--with-pear' '--with-png-dir=/usr/local/lib' '--with-zlib'
'--with-zlib-dir=/usr/local/lib' '--enable-zip' '--with-iconv=/usr/local' '--enable-bcmath' '--enable-calendar' '--enable-ftp'
'--enable-magic-quotes' '--enable-sockets' '--enable-mbstring'
Im at a loss as to what do do next. Do I need anyother packages to get PHP LDAP working on debian?
I also get this error in the apachelog;
Code:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ldap.so'
- /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ldap.so: undefined symbol: gc_remove_zval_from_buffer in Unknown on line 0
Thanks