Difference between revisions of "PhpLDAPadmin"

From ArchWiki
Jump to: navigation, search
(update and clean up article)
(Configure PHP)
Line 14: Line 14:
 
You need to enable the {{ic|php-ldap}} extension in PHP by editing {{ic|/etc/php/php.ini}} and uncommenting the line
 
You need to enable the {{ic|php-ldap}} extension in PHP by editing {{ic|/etc/php/php.ini}} and uncommenting the line
 
  ;extension=ldap.so
 
  ;extension=ldap.so
by removing the {{ic|;}}
 
  
 
Add the following to the {{ic|open_basedir}} line in {{ic|php.ini}}:
 
Add the following to the {{ic|open_basedir}} line in {{ic|php.ini}}:

Revision as of 20:29, 29 September 2013

phpLDAPadmin is an web-based LDAP adminstration interface.

Pre-Installation

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

Installation

Install the package phpldapadmin from the official repositories.

Configure PHP

You need to enable the php-ldap extension in PHP by editing /etc/php/php.ini and uncommenting the line

;extension=ldap.so

Add the following to the open_basedir line in php.ini:

:/usr/share/webapps/

Configuration

phpLDAPadmin's configuration file is located at /etc/webapps/phpldapadmin/config.php. It should be usable without making any modifications.

Although not strictly neccessary you can edit config.php and name your server with the line

$servers->setValue('server','host','127.0.0.1');

Copy the Apache configuration file:

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

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

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

Edit /etc/webapps/phpldapadmin/.htaccess and change it to your liking. For example, if you want to be able to access phpLDAPadmin from any machine:

allow from all

Accessing your phpMyAdmin 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