Keywords: LAMP/MAMP/WAMP - Linux - Technical issue - Other
bnsupport ID: d5722c65-9728-52bd-d554-1c59f878e590
I have written a PHP application that utilizes the ldap_connect function and have been successful in enabling LDAP support on the latest WAMP stack for Windows for simply uncommenting "extension=ldap" located in php.ini. Doing so simply loads the php_ldap.dll file located under the ext folder.
In moving this application to Linux using the latest LAMP stack, following the same process does not work. If I uncomment "extension=ldap" in the php.ini config file and restart Apache, I receive the following error on any page load:
Fatal error: PHP Startup: Unable to load dynamic library 'ldap' (tried: /path/to/extensions/ldap and /path/to/extensions/ldap.so No such file or directory).
So, unlike its Windows counterpart, which comes with the required DLL, why does the Linux build of the LAMP installer not come with the proper ldap.so in the extensions directory? I have been trying to figure out a way to get the correct version of this file installed, but seems difficult using the system tools (apt or yum), when the system version of PHP (if it's even installed), is typically a different version, etc.
This has been tested against lampstack-7.4.7-0 and lampstack-7.4.8-0