蝉道Nginx源码安装

1.安装Nginx,请看Nginx安装文章

https://www.jianshu.com/p/8d4fb9d3b07e

2.安装Php

rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

yum -y install php72w php72w-pdo php72w-mysql php72w-mbstring php72w-ldap php72w-gd php72w-json php72w-xml php72w-zip php72w-cli php72w-fpm php72w-common

systemctl start php-fpm                 #启动
systemctl enable php-fpm.service.       #自动启动

3.Nginx php fastcgi配置

vi /etc/nginx/conf.d/zentao.conf
####配置内容####
server {
    listen       80;
    rewrite_log on;
    server_name  cd.test.com;
    location / {
        root /home/webapps/zentaopms/www;
        index  index.html index.htm index.php;
        if (!-e $request_filename) {
            rewrite ^/(.*)$ /index.php/$1 last;
                break;
        }
    }
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   html;
    }
    location ~ \.php$ {
        root           /home/webapps/zentaopms/www;
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        #fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include        fastcgi_params;
    }
}

4.安装mysql

https://www.jianshu.com/p/a32082df9826

5.安装蝉道

#下载官方源码
wget https://www.zentao.net/dl/zentao/12.5.3/ZenTaoPMS.12.5.3.zip
#解压到你安装的目录
unzip ZenTaoPMS.12.5.3.zip -d /home/webapps/
#访问您nginx配置的地址进行安装
http://cd.test.com;
#更具操作界面配置

#重新安装,删除下面目录文件,重新访问安装
rm -rf /home/webapps/zentaopms/config/my.php

#开启调试模式
vi /home/webapps/zentaopms/config/my.php
#修改内容
$config->debug           = true;
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容