Chevereto 安装踩坑

Chevereto 下载:https://github.com/Chevereto/Chevereto-Free/releases

1、PHP 版本建议 7.3 版本

2、安装过程中 nginx 404,需配置伪静态,在网站的 nginx 配置文件中加入以下代码:

## Disable access to sensitive files
location ~* /(app|content|lib)/.*\.(po|php|lock|sql)$ {
deny all;
}
## CORS headers
location ~* /.*\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js) {
add_header Access-Control-Allow-Origin "*";
}
## Upload path for image content only and set 404 replacement
location ^~ /images/ {
location ~* (jpe?g|png|gif) {
log_not_found off;
error_page 404 /content/images/system/default/404.gif;
}
return 403;
}
## Pretty URLs
location / {
index index.php;
try_files $uri $uri/ /index.php?$query_string;
}
# END Chevereto nginx rules

3、Warning: “continue” targeting switch is equivalent to “break”.
将 /lib/G/functions.php 文件的 254 行,”continue” 改为 “continue2”

发表评论

必填项已用*标注