目 录CONTENT

文章目录

Chevereto安装

IKun
2023-01-25 / 0 评论 / 0 点赞 / 1 阅读 / 1424 字

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

1.搭建环境

我们可以用lnmp、lamp一键包之类的面板来搭建web环境。
lnmp安装方法可参考:https://oneinstack.com
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为例,执行命令:

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中添加以下代码。

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

3.重启Nginx

/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为例:

cd /home/wwwroot/xx.com/app
touch settings.php
chmod -R 777 settings.php
0
博主关闭了所有页面的评论