Install LDAP extension

2016-06-17 09:41:50
Last edited by Max on 2017-07-17 13:18:01
Because the LDAP verification requires LDAP extension for PHP, the operation of which depends on the LDAP extension.So if you want to use the extension, and your LDAP does not load extension, you must install the LDAP extension.

1. Install LDAP in Windows

1.1  If your PHP already has an php_ldap.dll file, you can open the php.ini file, find the ";extension=php_ldap.dll" and save the file after removing the comma ";".
1.2  If you do not have a php_ldap.dll file, you can first find the online PHP files according to your own need and place it in the appropriate directory, then repeat the process mentioned above.
1.3  Restart Apache.

2. Install LDAP in Linux

2.1 If your PHP is compiled and installed, you need to add the "--with-ldap" to recompile the installation.
2.2 If your PHP is installed through the Linux package manager, you can install the php_ldap through the package manager. Taking Debian as an example, implement apt-get install php5-ldap.
2.3  Restart Apache.

3. To see whether the installation successfully

Open the phpinfo () test screen. If you can see the following picture,  that means the installation is successfully done.

    Write a Comment
    Comment will be posted once reviewed.