当前位置:论坛首页 > Linux面板 > 讨论

利用VPS面板安装FlarumChina

发表在 Linux面板2017-1-31 20:49 [复制链接] 4 5062

本帖最后由 houzhenhong 于 2017-1-31 20:59 编辑

FlarumChina

Flarum 是一款优雅简洁论坛软件,让在线交流变得更加轻松愉快。
基于 PHP 构建,界面使用 Mithril 构建,Mithril 是一个高性能的 JavaScript 框架。

如果你想拥有一个请点击了解详情
若你还没有感受到Flarum的优美请访问特点来了解

前言
VPS面板有效的避免了枯燥的黑底白字的命令,作为习惯Windows的人的来说不失为一个过渡方案,但由大部分的面板都不支持Fileinfo,导致FlarumChina无法安装。今天介绍宝塔面板来解决这个问题!

准备安装:
1、将数据盘挂载到/www目录
2、确保没有安装其它环境包
3、暂时只对 CentOS 5.x / 6.x / 7.x 提供支持

安装命令:

  1. yum -y install screen wget && screen -S bt
复制代码
  1. wget -O install.sh http://125.88.182.172:5880/src/install.sh && sed -i 's/--disable-fileinfo/--enable-fileinfo/g' install.sh && sh install.sh
复制代码


若不需要fileinfo请使用以下命令(将无法安装Flarum)
  1. yum -y install screen wget && screen -S bt
复制代码
  1. wget -O install.sh http://125.88.182.172:5880/src/install.sh && sh install.sh
复制代码


适合全新的linux服务器使用,已经装有其他环境的Linux服务器请勿安装。
若您在安装过程中SSH中断,重新连接后,无需重新安装,输入 screen -r bt 即可恢复之前的安装过程

伪静态
在网站-操作-修改-伪静态-Defaut填入以下配置
  1.         location / {
  2.             index  index.php index.html index.htm;
  3.             try_files $uri $uri/ /index.php?$query_string;
  4.         }
  5.         location ~ .php$ {
  6.             fastcgi_split_path_info ^(.+.php)(/.+)$;
  7.             fastcgi_pass unix:/var/run/php5-fpm.sock;
  8.             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  9.             fastcgi_index index.php;
  10.             include fastcgi_params;
  11.         }
  12.         location /api {
  13.                 try_files $uri $uri/ /api.php?$query_string;
  14.             }
  15.         location /admin {
  16.                 try_files $uri $uri/ /admin.php?$query_string;
  17.             }
  18.         
  19.         location /flarum {
  20.                 deny all;
  21.                 return 404;
  22.             }
  23.         
  24.             
  25.         location ~* \.html$ {
  26.                 expires -1;
  27.             }
  28.         
  29.         location ~* \.(css|js|gif|jpe?g|png)$ {
  30.                 expires 1M;
  31.                 add_header Pragma public;
  32.                 add_header Cache-Control "public, must-revalidate, proxy-revalidate";
  33.             }
复制代码

原帖地址http://discuss.flarum.ga/d/118
使用道具 举报 只看该作者 回复
发表于 2017-2-1 11:25:43 | 显示全部楼层
有没有成品站?
使用道具 举报 回复 支持 反对
发表于 2017-2-3 19:37:54 | 显示全部楼层
QQ截图20170203193331.png
用的东西真多
使用道具 举报 回复 支持 反对
发表于 2017-2-6 18:39:51 来自手机 | 显示全部楼层
你有的是什么chrome插件,Wappalyzer就没这么多,图片里也显示的也用到了,
使用道具 举报 回复 支持 反对
发表于 2017-2-6 18:40:11 来自手机 | 显示全部楼层
高宇丶 发表于 2017-2-1 11:25
有没有成品站?

discuss.flarum.ga
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理

工作时间:09:00至24:00

快速回复 返回顶部 返回列表