Chevereto安装

环境要求:Apache/Nginx、PHP 5.5+、MySQL 5.0+

1.搭建环境

1
2
我们可以用lnmp、lamp一键包之类的面板来搭建web环境。
lnmp安装方法可参考:https://oneinstack.com
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
version: "2.1"
services:
nginx:
image: linuxserver/nginx:latest
container_name: nginx
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Shanghai
volumes:
- ./config:/config
ports:
- 80:80
- 443:443
restart: unless-stopped

2.部署

下载地址:chevereto

1.上传源码

这里以lnmp为例,执行命令:

1
2
3
4
cd /data/wwwroot/www.yourdomain.com
wget https://github.com/rodber/chevereto-free/releases/download/1.6.2/1.6.2.zip
tar zfvx 1.6.2.zip
chmod -R 775 ./*

2.修改配置

修改网站配置文件/usr/local/nginx/conf/vhost/xx.com.conf,在server中添加以下代码。

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

3.重启Nginx

1
2
3
/etc/init.d/nginx restart
或者
systemctl restart nginx

最后就可以打开你的网站按要求填入数据库信息进行安装了。

注意:经测试,使用v1.0.7程序的打开网站后可能会出现Chevereto can’t create the app/settings.php file. You must manually create this file该错误,这时在app目录新建settings.php文件并给予可写入权限即可,也可使用命令,以lnmp为例:

1
2
3
cd /home/wwwroot/xx.com/app
touch settings.php
chmod -R 777 settings.php

Chevereto安装
https://kuan.pages.dev/article/5d938d1d.html
作者
IKun
发布于
2023年1月25日
许可协议