centos7 安裝禪道(v11.4)

 
1.安裝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.下載禪道源碼,解壓放到/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
相關文章
相關標籤/搜索