I have been trying to configure our Cpanel server that is using php4 to be able to use the php ldap functions to make connections from our application to an LDAP server for authentication, and it doesn't seem to be working.
When configuring with EasyApache (Easy::Apache v3.2.0 Build 4986), I select apache 2 and php4 (4.4.7 to be precise). I then select all the LDAP options available to me under the Exhaustive Options list, which is LDAP and Auth LDAP. After waiting for the build to finish, I try testing this, I and am getting the following error:
Fatal error: Call to undefined function: ldap_connect() in <path_here>/test.php on line 9
When I look at the output file from easyapache I see:
-- Begin opt 'LDAP' --
-- Begin step 'to config options' --
-- End step 'to config options' --
-- End opt 'LDAP' --
and then
-- Begin opt 'Auth LDAP' --
-- Begin step 'to config options' --
-- End step 'to config options' --
-- End opt 'Auth LDAP' --
but then further down, under 'configuring php for apache and cli' , I see:
checking for LDAP support... no
I see the same thing also under 'configuring for system PHP':
checking for LDAP support... no
When it is checking for the necessary header files it shows:
checking for ldap.h... yes
The system is running CentOS 5.4. Checking for openldap packages shows:
openldap-2.3.43-3.el5
openldap-devel-2.3.43-3.el5
openldap-clients-2.3.43-3.el5
Do I need to install additional packages before running the build? Are there other options that I need to select with building with EasyApache?
Any help with this issue would be greatly appreciated.
--
Doug



LinkBack URL
About LinkBacks
Reply With Quote










