FileRun的搭建与配置
sunshj Lv4

自建云盘之FileRun的搭建与配置

安装准备

  • 宝塔面板LNMP环境
  • PHP7.3(7.0以上,建议为它单独设置一个php版本)
  • filerun安装包 https://filerun.com/

配置

安装宝塔面板

Centos安装命令:

1
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh

试验性Centos/Ubuntu/Debian安装命令支持ipv6,注意使用root权限执行此命令 (支持Centos8)

1
curl -sSO http://download.bt.cn/install/new_install.sh && bash new_install.sh

Ubuntu/Deepin安装命令:

1
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh

Debian安装命令:

1
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh

Fedora安装命令:

1
wget -O install.sh http://download.bt.cn/install/install_6.0.sh && bash install.sh

安装之后会出现地址和用户名以及密码,登录之后记得修改哦

安装LNMP

  • nginx
  • php7.3,
  • mariadb10

创建域名并上传FileRun

FileRun下载地址:https://filerun.com/download

!

image
image

然后解压到根目录

image

PHP扩展以及配置

FileRun需要的扩展:

  • ionCube
  • imagemagick
  • Exif

在软件管理里面选择PHP7.3的设置,开启扩展

image

同时还需要配置一下exec,在安装扩展下面的配置文件进行修改

1
2
3
4
5
#找到open_basedir,大概在310行,记得替换成你的域名
open_basedir = /www/wwwroot/yourdomain.com/:/tmp/:/proc/

#找到disable_functions,大概在315行
删掉exec,代码即可。
image

之后重启一下PHP

image

安装FileRun

以上都配置好之后,就可以访问你的域名进行安装,如果你安装时出现样式无法加载的情况,那么可能是因为你安装了宝塔nginx防火墙,关闭当前域名防火墙即可

image
image

然后刷新继续进行安装

image

检查配置是否通过,全部OK即可成功,如果提示PHP configuration: open_basedir的问题,只需要在域名设置取消防跨站攻击选项的勾选即可

image

全部检测通过,然后继续进行数据库的配置

image

安装完成之后会引导你进行用户的配置,修改管理员邮箱以及权限目录

image
image

如果只是个人用的话,建议关闭访客账户

image

更改界面语言

我的界面是中文的,是因为我安装了语言包,在Interface options中可以选择默认语言,最新版貌似只有英语,所以需要我们自己去安装语言包

语言包地址:https://github.com/filerun/translations

clone下来然后将chinese.php文件通过Filerun设置进行上传,之后刷新一下更换语言即可。

image

界面截图

image
image
image
image

最后

我个人认为它作为一个文件管理器是非常优秀的,如果你想自己搭建NAS,那么它是一个不错的选择。如果可以支持第三方云存储的外链下载就更好了。

版权

转载自风也雨忆笙

 评论