FileRun安装指南 http://docs.filerun/filerun_install_guide
下载 https://filerun/download
说明:关于FileRun多用户DISK之前曾经绍介过了,参考:文件运行 - 多功能的云主机文件管理器,关于部署方式,只是简单的说了下,估量另有许多人不会部署,这里就仔细的说下部署方式,不得不说这个DISK部署途中有点坑爹,尤其的英文在PHP配置方面,伏笔VPS花了好久才配置完整。本。教程使用2种方式部署,使用宝塔面板和手动编译部署,关于新手提议直接用宝塔,爱折腾的可以用编译的方式,后者要快些,但是对立前者更轻易出问题。
方式一
1,部署宝塔面板
#Centos系统yum install -y wget && wget -O install.sh http://download.bt/install/install.sh && sh install.sh#Ubuntu系统wget -O install.sh http://download.bt/install/install-ubuntu.sh && sudo bash install.sh#Debian系统wget -O install.sh http://download.bt/install/install-ubuntu.sh && bash install.sh
部署完成会给面板地址,用户名和密钥你。
2,部署环境并上传FileRun
进入面板后,依据提示部署nginx,php 7.0,mysql 5.6环境,再增加域名,解析域名,将然后FileRun程序下载并上传解压到站点根目录,并建好数据库。FileRun程序下载地址:https://开头www.filerun/download。
3,部署PHP拓展
Filerun需要部署ionCube,imagemagick状语从句:Exif拓展。展示进入柯林斯PHP管理进行部署。
如图4所示,修正PHP文件配置
状语从句:步骤3一样,的同样在PHP管理里找到配置文件,进行如次修正:
#找到open_basedir,大概在293行,记得掉换成你的域名open_basedir = /www/wwwroot/yourdomain/:/tmp/:/proc/#找到disable_functions,大概在298行删掉exec,代码便可。
修改好了后,重新启动PHP。
5,部署FileRun程序
打开域名,依据提示检查配置信息后,再输入数据库称号,用户名,部署金钥FileRun程序。
部署成功显现如次信息。
最后便可以直接登录,第一次会要你修正密钥等信息。
方式二
教程本。在CentOS 7下测试成功compile-,的环境为Apache,Mysql 5.6和PHP 7.0。
1,部署阿帕奇
#部署并启动Apache Web服务器yum install httpd -ysystemctl start httpd.service
咱们此刻展示进入http://ip地址可以看到Apache欢迎页面。
2,部署Mysql 5.6
#下载并部署Mysqlwget http://repo.mysql/mysql-community-release-el7-5.noarch.rpmrpm -ivh mysql-community-release-el7-5.noarch.rpmyum install mysql-server#设置权限chown -R root:root /var/lib/mysqlservice mysqld restart#重置Mysql密钥mysql -u rootuse mysql;update user set password=password('moerats') where user='root';exit;#reboot数据库service mysqld restart#建立数据库mysql -uroot -pcreate database filerun;exit;
3,部署PHP 7.0
#更新yum源rpm -Uvh http://dl.fedoraproject/pub/epel/epel-release-latest-7.noarch.rpmrpm -Uvh http://rpms.famillecollet/enterprise/remi-release-7.rpm#部署PHP并启动yum install php70w-fpmsystemctl enable php-fpm.servicesystemctl start php-fpm.service
在为了Apache上使用PHP-FPM,需要咱们修改Apache配置文件。
vi /etc/httpd/conf/httpd.conf
求最后在即IncludeOptional conf.d/*.conf之前增加以下代码:
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/html/$1
在并DirectoryIndex指令后头增加index.php即:
DirectoryIndex index.html index.php #大约在164行
再重新启动Apache。
systemctl restart httpd.service
4,配置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/modulesyum install wget -ywget http://downloads3.ioncube/loader_downloads/ioncube_loaders_lin_x86-64.tar.gztar xvfz ioncube_loaders_lin_x86-64.tar.gz
在/etc/php.d文件夹数建立并修改filerun.ini文件,使用可以FTP工具完成,也可以直接使用以下命令:
#以下是一全部command,一齐复制执行便可。echo "expose_php = Offerror_reporting = E_ALL & ~E_NOTICEdisplay_errors = Ondisplay_startup_errors = Offlog_errors = Onignore_repeated_errors = Offallow_url_fopen = Onallow_url_include = Offvariables_order = "GPCS"allow_webdav_methods = Onmemory_limit = 128Mmax_execution_time = 300output_buffering = Offoutput_handler = ""zlib.output_compression = Offzlib.output_handler = ""safe_mode = Offregister_globals = Offmagic_quotes_gpc = Offupload_max_filesize = 20Mpost_max_size = 20Menable_dl = Offdisable_functions = ""disable_classes = ""session.save_handler = filessession.use_cookies = 1session.use_only_cookies = 1session.auto_start = 0session.cookie_lifetime = 0session.cookie_httponly = 1date.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.service
5,部署FileRun
#下载最新版本FileRuncd /var/www/html/wget -O FileRun.zip http://www.filerun/download-latest#解压yum install unzipunzip FileRun.zip#授权目录chown -R apache:apache /var/www/html/
最后打开IP地址填入相关信息便可以部署了。
希望以上的文章对各位有用,如果觉得不错给我点个喜欢吧更多和一款强大的多功能网盘和文件管理器:FileRun教程安装相关的问题或者对纽约网站空间租用有疑惑也。欢迎大家咨询。
链接:https://www.jianshu/p/a2c4bf6441fa
FileRun安装指南 http://docs.filerun/filerun_install_guide
下载 https://filerun/download
更多推荐
一款强大的多功能网盘和文件管理器:FileRun安装教程
发布评论