Thursday, June 05, 2014

Ubuntu - The PHP LDAP module is not installed?

If you are seeing errors like "Your install of PHP appears to be missing LDAP support" or "The PHP LDAP module is not installed" while accessing a php page on your server, probably your server doesn't have php-ldap module installed.

Install the php ldap module should fix this problem.
# apt-get install php5-ldap
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.
Need to get 19.5 kB of archives.
After this operation, 101 kB of additional disk space will be used.
Get:1 precise-updates/main php5-ldap amd64 5.3.10-1ubuntu3.11 [19.5 kB]
Fetched 19.5 kB in 0s (1,195 kB/s)  
Selecting previously unselected package php5-ldap.
(Reading database ... 117376 files and directories currently installed.)
Unpacking php5-ldap (from .../php5-ldap_5.3.10-1ubuntu3.11_amd64.deb) ...
Processing triggers for libapache2-mod-php5 ...
 * Reloading web server config apache2                                              [ OK ]
Setting up php5-ldap (5.3.10-1ubuntu3.11) ...

# service apache2 restart

You are good to go.

No comments: