From ArchWiki

phpLDAPadmin is an web-based LDAP adminstration interface.


See LAMP for a guide to setting up Apache, MySQL, and PHP.


Install the phpldapadmin package.



Create the Apache configuration file:

Alias /phpldapadmin "/usr/share/webapps/phpldapadmin"
<Directory "/usr/share/webapps/phpldapadmin">
    DirectoryIndex index.php
    AllowOverride All
    Options FollowSymlinks
    Require all granted

And include it in /etc/httpd/conf/httpd.conf:

# phpLDAPadmin configuration
Include conf/extra/phpldapadmin.conf

By default, everyone can see the phpLDAPadmin page, to change this, edit /etc/httpd/conf/extra/phpldapadmin.conf to your liking. For example, if you only want to be able to access it from the same machine, replace Require all granted by Require local.


You need to enable the ldap and gettext extensions in PHP by editing /etc/php/php.ini and uncommenting the following lines:


You need to make sure that PHP can access /usr/share/webapps and /etc/webapps. Add them to open_basedir in /etc/php/php.ini :

open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/etc/webapps

phpLDAPadmin configuration

phpLDAPadmin's configuration file is located at /etc/webapps/phpldapadmin/config.php. If you have a local LDAP server, it should be usable without making any modifications.

If your LDAP server is not on the localhost, uncomment and edit the following line:


Although not strictly necessary you can name your server by editing the following line:

$servers->setValue('server','name','My LDAP server');

Accessing your phpLDAPadmin installation

Your phpLDAPadmin installation is now complete. Before start using it you need to restart Apache.

You can access your phpLDAPadmin installation by going to http://localhost/phpldapadmin/