Phpldapadmin (Linux): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 15: | Zeile 15: | ||
cd /etc/apache2/sites-available/ | cd /etc/apache2/sites-available/ | ||
sudo nano /etc/apache2/sites-available/ldap.conf | sudo nano /etc/apache2/sites-available/ldap.conf | ||
</pre> | |||
<pre> | |||
<VirtualHost *:80> | |||
ServerName ldap.kirner.or.at | |||
ServerAdmin admin@kirner.or.at | |||
DocumentRoot /usr/share/phpldapadmin | |||
ErrorLog ${APACHE_LOG_DIR}/ldap.kirner.or.at-error.log | |||
CustomLog ${APACHE_LOG_DIR}/ldap.kirner.or.at-access.log common | |||
</VirtualHost> | |||
<Directory /usr/share/phpldapadmin/htdocs/> | |||
DirectoryIndex index.php | |||
Options +FollowSymLinks | |||
AllowOverride None | |||
Order allow,deny | |||
Allow from all | |||
<IfModule mod_mime.c> | |||
<IfModule mod_php5.c> | |||
AddType application/x-httpd-php .php | |||
php_flag magic_quotes_gpc Off | |||
php_flag track_vars On | |||
php_flag register_globals Off | |||
php_value include_path . | |||
php_value memory_limit 32M | |||
</IfModule> | |||
<IfModule !mod_php5.c> | |||
<IfModule mod_actions.c> | |||
<IfModule mod_cgi.c> | |||
AddType application/x-httpd-php .php | |||
Action application/x-httpd-php /cgi-bin/php5 | |||
</IfModule> | |||
<IfModule mod_cgid.c> | |||
AddType application/x-httpd-php .php | |||
Action application/x-httpd-php /cgi-bin/php5 | |||
</IfModule> | |||
</IfModule> | |||
</IfModule> | |||
</IfModule> | |||
</Directory> | |||
</pre> | |||
<pre> | |||
sudo a2ensite ldap.conf | sudo a2ensite ldap.conf | ||
</pre> | </pre> | ||
== Links == | == Links == |
Version vom 26. Juli 2016, 10:48 Uhr
Installation
sudo apt-get install phpldapadmin
sudo nano /etc/phpldapadmin/config.php
Überall dc=example,dc=com durch dc=kirner,dc=or,dc=at ersetzen.
sudo cp /etc/phpldapadmin/apache.conf /etc/apache2/sites-available/ldap.conf cd /etc/apache2/sites-available/ sudo nano /etc/apache2/sites-available/ldap.conf
<VirtualHost *:80> ServerName ldap.kirner.or.at ServerAdmin admin@kirner.or.at DocumentRoot /usr/share/phpldapadmin ErrorLog ${APACHE_LOG_DIR}/ldap.kirner.or.at-error.log CustomLog ${APACHE_LOG_DIR}/ldap.kirner.or.at-access.log common </VirtualHost> <Directory /usr/share/phpldapadmin/htdocs/> DirectoryIndex index.php Options +FollowSymLinks AllowOverride None Order allow,deny Allow from all <IfModule mod_mime.c> <IfModule mod_php5.c> AddType application/x-httpd-php .php php_flag magic_quotes_gpc Off php_flag track_vars On php_flag register_globals Off php_value include_path . php_value memory_limit 32M </IfModule> <IfModule !mod_php5.c> <IfModule mod_actions.c> <IfModule mod_cgi.c> AddType application/x-httpd-php .php Action application/x-httpd-php /cgi-bin/php5 </IfModule> <IfModule mod_cgid.c> AddType application/x-httpd-php .php Action application/x-httpd-php /cgi-bin/php5 </IfModule> </IfModule> </IfModule> </IfModule> </Directory>
sudo a2ensite ldap.conf
Links
http://phpldapadmin.sourceforge.net/wiki/index.php/Main_Page
http://linx-qh.de/openldap-server-auf-ubuntu-server-14-04-installieren-und-einrichten/
Zurück zu Ubuntu