标签:
关闭防火墙
[root@ldapmaster2 ~]# systemctl disable firewall
[root@ldapmaster2 ~]# systemctl stop firewall
[root@ldapmaster2 ~]# setenforce 0 #暂时关闭selinux
安装apache和php环境
[root@ldapmaster2 ~]# yum install httpd php php-bcmath php-gd php-mbstring php-xml php-ldap mod_auth_kerb
下载phpldapadmin,并解压到/var/www/html/下
[root@ldapmaster2 ~]# wget http://sourceforge.net/projects/phpldapadmin/files/phpldapadmin-php5/1.2.3/phpldapadmin-1.2.3.zip
[root@ldapmaster2 ~]# unzip phpldapadmin-1.2.3.zip -d /var/www/html/
拷贝配置文件
[root@ldapmaster2 ~]# cp /var/www/html/phpldapadmin/config/config.php.example /var/www/html/ldapadmin/config/config.php
配置apache
[root@ldapmaster2 ~]# sed -i ‘s/#ServerName/ServerName your_ip:80‘
在配置文件中/etc/httpd/conf/httpd.conf中,index.html后面添加index.php
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
启动httpd服务
[root@ldapmaster2 ~]# systemctl start httpd
浏览器中访问,http://ip/phpldapadmin
标签:
原文地址:http://www.cnblogs.com/Z-style/p/5618658.html