Before you install phpLDAPAdmin (also known as PLA), you will need to have your LDAP server up and running. Once that is achieved you can then proceed with your installation of this management tool. You will also need to have a web server installed and running (it is a web-based tool after all). If you do not already have php5-ldap installed, install that package now.
The first step for installation is to download the source from Sourceforge. You can install from a pre-compiled binary, but I recommend you do the installation from source.
Once you have the .tgz file downloaded move that file to your web servers’ document root. In Fedora this will be /var/www/html and in Ubuntu this will be /var/www. The next step is to unpack the tar file and then rename the newly created directory. You will need administrative privileges for these tasks. Follow these steps:
- Open up a terminal window.
- Change to your document root.
- Su to root (if using Fedora or a Fedora-like distribution).
- Issue the command tar xvfz phpldapadmin-XXX.tgz (If using a Ubuntu-like distribution you will have to add sudo to the beginning of that command) Where XXX is the release number.
- Rename the directory with the command mv phpldapadmin-XXX phpldapadmin (If using Ubuntu-like distribution you will have to add sudo to the beginning of that command) Where XXX is the release number.
- Change into the phpldapadmin/config and rename the config file with the command mv config.php.sample config.php (If using Ubuntu-like distribution you will have to add sudo to the beginning of that command).
- Place phpldapadmin folder in /var/www.
- Now it’s time to fire up your web browser and head to your installation. Point your browser to http://ADDRESS_TO_SERVER/phpldapadmin/ .For example: http://priyanka.com/phpldapadmin
- The first thing you need to do is click on the Login link (in the left navigation tree). The credentials you need will be those that were created to administer your LDAP server. But don’t think you can just log in with a username of “admin” and a password. You have to use the standard format of LDAP. So a typical administrator login username will look like cn=admin,dc=priyanka,dc=com
- Here is logged in screen:
Thats all. 🙂