rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
yum install nginx -y
systemctl enable nginx
systemctl start nginx
[root@ldap ~]# cat /etc/nginx/conf.d/default.conf
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name ldap.abu.pub;
root /usr/share/nginx/html;
index index.php index.html index.htm;
access_log /var/log/nginx/access.log main;
location / {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
yum -y install epel-release
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum makecache
yum search php72w-fpm
yum install php72w php72w-fpm php72w-cli php72w-common php72w-devel php72w-gd php72w-pdo php72w-mysql php72w-mbstring php72w-bcmath php72w-xml php72w-pecl-redis php72w-process php72w-intl php72w-xmlrpc php72w-soap php72w-ldap php72w-opcache -y
systemctl start php-fpm
systemctl enable php-fpm
wget https://jaist.dl.sourceforge.net/project/lam/LAM/6.7/ldap-account-manager-6.7.tar.bz2
yum install bzip2 -y
tar -xjvf ldap-account-manager-6.7.tar.bz2 -C /usr/share/nginx/html/
mv /usr/share/nginx/html/ldap-account-manager-6.7 /usr/share/nginx/html/lam
cp /usr/share/nginx/html/lam/config/config.cfg.sample /usr/share/nginx/html/lam/config/config.cfg