centos7 mounting Zen (v11.4)

 
1. Install php
 
 
yum -y install php72w php72w-cli php72w-common php72w-devel php72w-embedded php72w-fpm php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xml
 
systemctl start php-fpm
 
2. Download Zen Source, unzip into / opt directory
 
3. Configure nginx
server {
 
listen 80;
server_name www.xuejiayuan.net;
 
location / {
 
root /opt/zentaopms/www;
index index.php index.html index.htm;
 
}
location ~ \.php$ {
root /opt/zentaopms/www;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
 
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
 
}
 
4: Configuration
浏览器中打开: https://www.xuejiayuan.net
 
按上面命令使用,如果发现无效,执行如下命令再试试:
 
setenforce 0

Guess you like

Origin www.cnblogs.com/droxy/p/11288231.html