简介
Files Run 是一款基于PHP写成的文件管理器。界面精美,支持众多插件,比如Google Doc,Microsoft Office等。可以自由部署在任何一台装有PHP运行环境的VPS上。
环境
- PHP版本要求 ≥5.6,最好是PHP7
- 要求有完整的MySQL,PHP,Nginx 或 Apache环境
- 官方安装指南:http://docs.filerun.com/filerun_install_guide
安装
官方地址:https://www.filerun.com/download
本教程在CentOS 7下测试成功。编译的环境为Apache,Mysql 5.6和PHP 7.0。
1、安装Apache
#安装并启动Apache Web服务器
yum install httpd -y
systemctl start httpd.service 此时我们进入http://ip地址可以看到Apache欢迎页面。
2、安装Mysql 5.6
#下载并安装Mysql
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
rpm -ivh mysql-community-release-el7-5.noarch.rpm
yum install mysql-server
#设置权限
chown -R root:root /var/lib/mysql
service mysqld restart
#重置Mysql密码
mysql -u root
use mysql;
update user set password=password('maosh') where user='root';
exit;
#重启数据库
service mysqld restart
#创建数据库
mysql -uroot -p
create database filerun;
exit;3、安装PHP 7.0
#更新yum源
rpm -Uvh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
#安装PHP并启动
yum install php70w-fpm 
systemctl enable php-fpm.service  
systemctl start php-fpm.service为了在Apache上使用PHP-FPM,我们需要编辑Apache配置文件。
vi /etc/httpd/conf/httpd.conf在最后即IncludeOptional conf.d/*.conf之前添加以下代码:
<IfModule proxy_module>  
  ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/html/$1
</IfModule> 并在DirectoryIndex指令后面添加index.php即:
DirectoryIndex index.html index.php #大约在164行再重新启动Apache。
systemctl restart httpd.service4、配置PHP 7.0
安装FileRun所需的PHP模块
yum install php70w-mbstring php70w-mcrypt php70w-opcache php70w-pdo php70w-mysql php70w-gd php70w-xml安装ionCube模块
cd /usr/lib64/php/modules
yum install wget -y
wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz  
tar xvfz ioncube_loaders_lin_x86-64.tar.gz 在/etc/php.d文件夹创建并编辑filerun.ini文件,可以使用FTP工具完成,也可以直接使用以下命令:
#以下是一整个命令,一起复制运行即可。
echo "expose_php              = Off  
error_reporting         = E_ALL & ~E_NOTICE  
display_errors          = On  
display_startup_errors  = Off  
log_errors              = On  
ignore_repeated_errors  = Off  
allow_url_fopen         = On  
allow_url_include       = Off  
variables_order         = "GPCS"  
allow_webdav_methods    = On  
memory_limit            = 128M  
max_execution_time      = 300  
output_buffering        = Off  
output_handler          = ""  
zlib.output_compression = Off  
zlib.output_handler     = ""  
safe_mode               = Off  
register_globals        = Off  
magic_quotes_gpc        = Off  
upload_max_filesize     = 20M  
post_max_size           = 20M  
enable_dl               = Off  
disable_functions       = ""  
disable_classes         = ""  
session.save_handler     = files  
session.use_cookies      = 1  
session.use_only_cookies = 1  
session.auto_start       = 0  
session.cookie_lifetime  = 0  
session.cookie_httponly  = 1  
date.timezone            = "UTC"
zend_extension = /usr/lib64/php/modules/ioncube/ioncube_loader_lin_7.0.so" > /etc/php.d/filerun.ini重启PHP
systemctl restart php-fpm.service5、安装FileRun
#下载最新版本FileRun
cd /var/www/html/  
wget -O FileRun.zip http://www.filerun.com/download-latest 
#解压
yum install unzip
unzip FileRun.zip
#授权目录
chown -R apache:apache /var/www/html/最后打开IP地址填入相关信息就可以安装了。
预览
office办公套件
照片图库管理
音乐库管理





博主可以出个群辉nas教程了http://blog.filerun.com/how-to-install-filerun-on-synology-dsm-nas-using-web-station/
看了页面,写的很仔细了。如果你需要的话,改天抽空补一个。
博主,这个真有需要,最好教程附带绑定自己域名,隐藏端口!我是买了群辉的小白,就自学建过pyone而已,谢谢
已加入待办事项。