官网 演示站点

搭建方法一离线搭建:
1、环境准备
宝塔面板
PHP7.3
MySQL5.6
解析好的域名一个
新建好网站
新建好数据库
2、下载
下载程序到自己的网站根目录,直接解压,把文件都移动至网站根目录。

看图:

宝塔面板源码安装Chevereto最新免费版 – 算是靠谱的图床解决方案之一

4、伪静态
不过安装之前需要先设置伪静态,代码如下:

location / { index index.php; try_files $uri $uri/
/index.php?$query_string; }

# Image not found replacement
location ~* (jpe?g|png|gif) {
log_not_found off;
error_page 404 /content/images/system/default/404.gif;
}

# CORS header (avoids font rendering issues)
location ~ \.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$ {
add_header Access-Control-Allow-Origin "*";
}

# Pretty URLs
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location /admin {
try_files $uri /admin/index.php?$args;
}

5、安装
浏览器打开你的域名访问,开始安装

又有错误了,看来程序对PHP7.3支持的不太好,错误代码是一段警告,如下:

Warning: “continue” targeting switch is equivalent to “break”. Did you
mean to use “continue 2”? in
/www/wwwroot/site.donglin.sso/phpsso_server/phpcms/libs/classes/db_mysqli.class.php
on line 245

解决方法
进入/www/wwwroot/站点/lib/G

functions.php

254行continue改为continue 2

5、设置为中文
登录后台:dashboard/settings/languages 然后这位简体中文即可

Chevereto后台在线升级出现Can’t write into

Can't perform automatic update This installation can't use the
automatic update functionality because this server is missing some
crucial elements to allow Chevereto to perform the automatic update:

Can't write into /app/install/update/temp/ path

解决方法

/www/wwwroot/网站/app/install/update

路径下创建

temp

文件夹

搭建方法二在线搭建:

1.官网下载源码,下载安装程序
2.把安装把源码解压到网站根目录,把安装程序放进网站根目录
3.访问域名进行安装

当我们没有设置伪静态规则的时候,nginx下当你放好chevereto 后,是无法直接进入安装状态的,进去会报错404

解决方案的话,就是加入伪静态规则

location ~* (jpe?g|png|gif) {

        log_not_found off;

        error_page 404 /content/images/system/default/404.gif;

}



# CORS header (avoids font rendering issues)

location ~ \.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$ {

        add_header Access-Control-Allow-Origin "*";

}



# Pretty URLs

location / {

        try_files $uri $uri/ /index.php?$query_string;

}

location /admin {

    try_files $uri /admin/index.php?$args;

}
END
最后修改:2021 年 10 月 17 日
如果觉得我的文章对你有用,请随意赞赏