1.安装php
rpm -Uvh https://dl.fedoraproject.org/…
rpm -Uvh https://mirror.webtatic.com/y…
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.下载禅道源码,解压放到/opt目录下
3.配置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:配置
浏览器中打开:https://www.xuejiayuan.net
按上面命令使用,如果发现无效,执行如下命令再试试:
setenforce 0