From ArchWiki
Revision as of 02:16, 30 August 2011 by Karol (Talk | contribs) (fix i18n)

Jump to: navigation, search


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

Adding php-ldap

PHP needs the php-ldap extension to work with phpLDAPadmin

pacman -S php-ldap

then edit Template:Filename and uncomment the line


by removing the ";" so it will look like this

Now add


to the "open_basedir" line.


Simply do

pacman -S phpldapadmin


phpLDAPadmin comes with a usable configuration file located at:


Although not strictly neccessary you can edit Template:Filename and name your server with the line


phpLDAPadmin now installs to Template:Filename. This means some changes to the configuration are required.

Copy the configuration file as follows:

sudo cp /etc/webapps/phpldapadmin/apache.example.conf /etc/httpd/conf/extra/httpd-phpldapadmin.conf

It should look like this:

  Alias /phpldapadmin "/usr/share/webapps/phpldapadmin"
  <Directory "/usr/share/webapps/phpldapadmin">
    AllowOverride All
    Options FollowSymlinks
    Order allow,deny
    Allow from all
    php_admin_value open_basedir "/srv/:/tmp/:/usr/share/webapps/:/etc/webapps:/usr/share/pear/"
Note: If you are getting 403 errors, make sure the 'A' is correct case: phpldapadmin instead of phpldapAdmin.

Add the following lines to Template:Filename:

# phpldapadmin configuration
Include conf/extra/httpd-phpldapadmin.conf

Edit Template:Filename and comment out deny from all, otherwise you will receive a 403 access denied error. It should look like this:

#deny from all

Accessing your phpMyAdmin installation

Finally your phpLDAPadmin installation is complete. Before start using it you need to restart your apache server by following command:

# /etc/rc.d/httpd restart

You can access your phpLDAPadmin installation using the following url:


Note: 'localhost' is the hostname in your Template:Filename file.