关闭防火墙
[[email protected] ~]# systemctl disable firewall
[[email protected] ~]# systemctl stop firewall
[[email protected] ~]# setenforce 0 #暂时关闭selinux
安装apache和php环境
[[email protected] ~]# yum install httpd php php-bcmath php-gd php-mbstring php-xml php-ldap mod_auth_kerb
下载phpldapadmin,并解压到/var/www/html/下
[[email protected] ~]# wget http://sourceforge.net/projects/phpldapadmin/files/phpldapadmin-php5/1.2.3/phpldapadmin-1.2.3.zip
[[email protected] ~]# unzip phpldapadmin-1.2.3.zip -d /var/www/html/
拷贝配置文件
[[email protected] ~]# cp /var/www/html/phpldapadmin/config/config.php.example /var/www/html/ldapadmin/config/config.php
配置apache
[[email protected] ~]# 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服务
[[email protected] ~]# systemctl start httpd
浏览器中访问,http://ip/phpldapadmin