说明:chevereto是目前最好的图床之一了。功能也非常强大。其免费版和收费版的区别,在于收费版多了硬盘扩展,社交分享功能和技术支持。硬盘扩展指的是你可以通过sftp等方式把上传的文件储存在其他服务器上。所以个人觉得,这个免费版已经足够使用了。而且chevereto的安装也非常简单,并且支持中文。网上很多教程都写得不是很清楚,这里就发个详细安装教程吧。
官网:https://chevereto.com/
DEMO:https://demo.chevereto.com/

安装
环境要求:Apache/Nginx、PHP 5.5+、MySQL 5.0+
1、搭建web环境
我们可以用lnmp、lamp一键包或者宝塔之类的面板来搭建web环境。
lnmp安装方法可参考:https://www.tracymc.cn/archives/649。
宝塔安装方法可看:https://www.tracymc.cn/archives/858。
2、上传chevereto程序
搭建好web
环境后,添加网站并解析,再上传chevereto
程序到网站目录,chevereto下载地址:https://github.com/Chevereto/Chevereto-Free
。
这里以lnmp
为例,执行命令:
cd /home/wwwroot/www.yourdomain.com
wget https://www.moerats.com/usr/down/Chevereto_v1.0.8.tar.gz
tar zfvx Chevereto_v1.0.8.tar.gz
chmod -R 775 ./*
修改网站配置文件/usr/local/nginx/conf/vhost/xx.com.conf
,在server中添加以下代码。
location / {
try_files $uri $uri/ /index.php?$query_string;
}
然后重启Nginx
,使用命令:
/etc/init.d/nginx restart
#或者
lnmp restart
最后就可以打开你的网站按要求填入数据库信息进行安装了。
注意:经测试,使用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
当然本教程使用的是最新版v1.0.8暂时没遇到过该问题。
注:本文转自https://www.moerats.com/archives/390/
我也是这个步骤操作的,然而搭建了两次,权限都给了还是提示无法上传文件…..
具体提示什么?
打开网站显示
Parse error: syntax error, unexpected ‘)’ in /www/wwwroot/amail.cn/app/loader.php on line 213
怎么解决呀?