Phpldapadmin (Linux): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „== Links == Zurück zu Ubuntu“)
 
 
(6 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
{{note|Noch in Bearbeitung}}
== Installation ==
<pre>
sudo apt-get install phpldapadmin
</pre>
<pre>
sudo nano /etc/phpldapadmin/config.php
</pre>
Überall ''dc=example,dc=com'' durch ''dc=kirner,dc=or,dc=at'' ersetzen.
<pre>
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
</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 service apache2 reload
</pre>
== Links ==
== Links ==
[http://phpldapadmin.sourceforge.net/wiki/index.php/Main_Page http://phpldapadmin.sourceforge.net/wiki/index.php/Main_Page]
[http://linx-qh.de/openldap-server-auf-ubuntu-server-14-04-installieren-und-einrichten/ http://linx-qh.de/openldap-server-auf-ubuntu-server-14-04-installieren-und-einrichten/]




Zurück zu [[Ubuntu]]
Zurück zu [[Ubuntu]]

Aktuelle Version vom 26. Juli 2016, 11:49 Uhr

Noch in Bearbeitung


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 
sudo service apache2 reload


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