phpLDAPadmin安装

2017-08-01  本文已影响0人  袁先生的笔记

环境

系统:CentOS 6.6
软件:phpldapadmin-1.2.3.tgz

phpLDAPadmin安装配置

# tar -zxvf phpldapadmin-1.2.3.tgz
# mv phpldapadmin-1.2.3 /data/phpldapadmin
# chown -R apache:apache /data/phpldapadmin
# cd /data/phpldapadmin/config
# cp config.php.example config.php

# vim config.php
$config->custom->appearance['language'] = ''; # 删空,语言可变为英文
......
$servers->setValue('server','host','127.0.0.1');
$servers->setValue('server','port',389);
......
$servers->setValue('server','base',array('dc=yourdomain,dc=com'));
......
$servers->setValue('login','auth_type','session');

httpd安装配置

# yum install httpd php php-bcmath php-gd php-mbstring php-xml php-ldap
# vim /etc/httpd/conf/httpd.conf
NameVirtualHost *:80
# vim /etc/httpd/conf.d/phpldapadmin.conf
<VirtualHost *:80>
    ServerName phpldapadmin.yourdomain.com
    DocumentRoot /data/phpldapadmin
    ErrorLog logs/phpldapadmin_error_log
    <Directory /data/phpldapadmin>
        Options Indexes ExecCGI FollowSymLinks
        Order allow,deny
        Allow from all
        AllowOverride all
        Options -MultiViews
    </Directory>
</VirtualHost>
# /etc/init.d/httpd restart
# chkconfig httpd on

phpLDAPadmin登陆

上一篇 下一篇

猜你喜欢

热点阅读