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
[[email protected] packages]# /etc/init.d/httpd restart
停止 httpd: [确定]
正在启动 httpd: [确定]
[[email protected] packages]# /etc/init.d/slapd restart
停止 slapd: [确定]
正在启动 slapd: [确定]
[[email protected] packages]#
httpd启动会有错误
需要修改此处
[[email protected] 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
[确定]
解决办法:
[[email protected] packages]# vim /etc/httpd/conf/httpd.conf
[[email protected] packages]#
ServerName 127.0.0.1:80