- 1. Getting Started
Installing the PHP LDAP Extension
- 2026-05-09 12:50:26
- Sanplex Content
- 219
- Last edited by WANG JING on 2026-05-09 12:50:26
- Share links
The LDAP authentication plugin in Sanplex relies on the PHP LDAP extension. To use this plugin, you must install and enable the LDAP extension in your PHP environment if it is not already loaded.
I. Installing LDAP on Windows
- If you already have the
php_ldap.dllfile, open yourphp.inifile, locate the line;extension=php_ldap.dll, remove the semicolon (;) to uncomment it, and save the file.
- If you do not have the
php_ldap.dllfile, download the appropriate version that matches your PHP environment, place it in your PHP extension directory, and then repeat step 1.
- Restart the Apache service.
II. Installing LDAP on Linux
-
If your PHP was installed by compiling from source, you need to recompile and reinstall it by adding the
--with-ldapparameter. -
If your PHP was installed using a Linux package manager, you can install the extension directly through it. For example, on Debian/Ubuntu, run:
Bash
sudo apt-get install php-ldap -
Restart the Apache service.
III. Verifying the Installation
Open your phpinfo() test page in the browser. If you see the LDAP section displayed as shown below, the PHP LDAP extension has been successfully enabled.
图1
Write a Comment
Support
- Book a Demo
- Tech Forum
- GitHub
- SourceForge
About Us
- Company
- Privacy Policy
- Term of Use
- Blogs
- Partners
Contact Us
- Leave a Message
- Email Us: [email protected]