标签:oepnldap
yum -y install httpd php php-ldap php-gd -y
cd /var/www/html/
yum -y install lrzsz
ls
rz -y
ll
tar xf ldap-account-manager_3.7.orig.tar.gz
mv ldap-account-manager-3.7 ldap
cp config.cfg_sample config.cfg
cp lam.conf_sample lam.conf
sed -i ‘s#cn=Manager#cn=admin#g‘ lam.conf
sed -i ‘s#dc=my-domain#dc=etiantian#g‘ lam.conf
sed -i ‘s#dc=com#dc=org#g‘ lam.conf
chown -R apache.apache /var/www/html/ldap/
启动httpd
[root@ldap-server packages]# /etc/init.d/httpd restart
停止 httpd: [确定]
正在启动 httpd: [确定]
[root@ldap-server packages]# /etc/init.d/slapd restart
停止 slapd: [确定]
正在启动 slapd: [确定]
[root@ldap-server packages]#
httpd启动会有错误
需要修改此处
[root@ldap-server packages]# /etc/init.d/httpd restart
停止 httpd: [确定]
正在启动 httpd:httpd: apr_sockaddr_info_get() failed for ldap-server
httpd: Could not reliably determine the server‘s fully qualified domain name, using 127.0.0.1 for ServerName
[确定]
解决办法:
[root@ldap-server packages]# vim /etc/httpd/conf/httpd.conf
[root@ldap-server packages]#
ServerName 127.0.0.1:80
本文出自 “砖家博客” 博客,请务必保留此出处http://wsxxsl.blog.51cto.com/9085838/1910362
标签:oepnldap
原文地址:http://wsxxsl.blog.51cto.com/9085838/1910362