“UbuntuHelp:InstallingphpLDAPadmin”的版本间的差异
来自Ubuntu中文
小 |
小 |
||
第8行: | 第8行: | ||
You've several choices when it comes to configuring phpldapadmin. You can use the included apache script (/etc/phpldapadmin/apache.conf), or you can copy /usr/share/phpldapadmin to you webroot, in which case you can have multiple installations. Here I describe the latter. | You've several choices when it comes to configuring phpldapadmin. You can use the included apache script (/etc/phpldapadmin/apache.conf), or you can copy /usr/share/phpldapadmin to you webroot, in which case you can have multiple installations. Here I describe the latter. | ||
Make a copy of the installation directory <pre><nowiki> | Make a copy of the installation directory <pre><nowiki> | ||
− | cp /usr/share/phpldapadmin /var/www/myphpldapadmin | + | cp -R /usr/share/phpldapadmin /var/www/myphpldapadmin |
</nowiki></pre> | </nowiki></pre> | ||
Since we're setting up for multiple installs, we'll give each one a different config file<pre><nowiki> | Since we're setting up for multiple installs, we'll give each one a different config file<pre><nowiki> |
2008年10月19日 (日) 12:26的版本
点击翻译: |
English |
请不要直接编辑翻译本页,本页将定期与来源同步。 |
Installation
apt-get install phpldapadmin
Configuration
You've several choices when it comes to configuring phpldapadmin. You can use the included apache script (/etc/phpldapadmin/apache.conf), or you can copy /usr/share/phpldapadmin to you webroot, in which case you can have multiple installations. Here I describe the latter.
Make a copy of the installation directorycp -R /usr/share/phpldapadmin /var/www/myphpldapadminSince we're setting up for multiple installs, we'll give each one a different config file
cp /etc/phpldapadmin/config.php /etc/phpldapadmin/first.config.php rm /var/www/myphpldapadmin/config/config.php ln -s /etc/phpldapadmin/first.config.php /var/www/myphpldapadmin/config/config.php chmod +r /etc/phpldapadmin/first.config.phpNow customize the config file. You'll probably need to change the following lines:
$config->custom->session['blowfish'] = ''; //Add a random string for encryption purposes $ldapservers->SetValue($i,'server','name','My LDAP Server'); // The name to display $ldapservers->SetValue($i,'server','host','127.0.0.1'); // Address of the LDAP server $ldapservers->SetValue($i,'server','port','389'); // Port number $ldapservers->SetValue($i,'server','base',array('dc=example,dc=com')); // Base dn
The config file is *very* well commented, and a little reading should get you all you need.