安装 flarum 后出错,网站打开白板.已经谷歌过了(英文论坛暂时没去)

2015-09-05 10:11:48 +08:00
 zyqf
安装文档:
http://justjavac.gitbooks.io/flarum/content/using/installation.html

vps 环境(lnmp 一键安装的):

PHP:5.5.25
MySQL:5.5.42
php-mysql-5.3.3-46.el6_6.x86_64
mysql-libs-5.1.73-5.el6_6.x86_64

上传安装文件至 /home/wwwroot/default

解压.

访问网址,空白.

已添加 Nginx 规则.
已按下列网址说明排除
http://justjavac.gitbooks.io/flarum/content/using/troubleshooting.html

第二种安装方式:


下载安装包,解压,上传文件到服务器
进入根目录,运行 php flarum/flarum install.
填写网址信息:如网站名称、管理员信息、数据库信息

输出日志(涉及隐私内容*号处理,请体谅):

Installing Flarum...
Database host: localhost
Database name: flarum
Database user: root
Database password: PHP Notice: Undefined variable: output in /home/wwwroot/default/flarum/vendor/symfony/console/Helper/QuestionHelper.php on line 437
PHP Notice: Undefined variable: exitcode in /home/wwwroot/default/flarum/vendor/symfony/console/Helper/QuestionHelper.php on line 437
PHP Warning: exec () has been disabled for security reasons in /home/wwwroot/default/flarum/vendor/symfony/console/Helper/QuestionHelper.php on line 437
PHP Notice: Undefined variable: exitcode in /home/wwwroot/default/flarum/vendor/symfony/console/Helper/QuestionHelper.php on line 439
PHP Warning: shell_exec () has been disabled for security reasons in /home/wwwroot/default/flarum/vendor/symfony/console/Helper/QuestionHelper.php on line 416
PHP Warning: shell_exec () has been disabled for security reasons in /home/wwwroot/default/flarum/vendor/symfony/console/Helper/QuestionHelper.php on line 416
PHP Warning: shell_exec () has been disabled for security reasons in /home/wwwroot/default/flarum/vendor/symfony/console/Helper/QuestionHelper.php on line 416
PHP Warning: shell_exec () has been disabled for security reasons in /home/wwwroot/default/flarum/vendor/symfony/console/Helper/QuestionHelper.php on line 416
******** (此为密码,打星号处理)
Prefix:
Base URL: www.overlooking.ml
Testing config
Writing config
Migrated: 2015_02_24_000000_create_access_tokens_table
Migrated: 2015_02_24_000000_create_config_table
Migrated: 2015_02_24_000000_create_discussions_table
Migrated: 2015_02_24_000000_create_email_tokens_table
Migrated: 2015_02_24_000000_create_groups_table
Migrated: 2015_02_24_000000_create_notifications_table
Migrated: 2015_02_24_000000_create_password_tokens_table
Migrated: 2015_02_24_000000_create_permissions_table
Migrated: 2015_02_24_000000_create_posts_table
Migrated: 2015_02_24_000000_create_users_discussions_table
Migrated: 2015_02_24_000000_create_users_groups_table
Migrated: 2015_02_24_000000_create_users_table
Forum title: ????^H^H (无视掉)
Writing default settings
Admin username: ********
Admin password: *************
Admin email address: ************@gmail.com
Creating admin user ******
PHP Warning: scandir () has been disabled for security reasons in /home/wwwroot/default/flarum/vendor/flarum/core/src/Support/ExtensionManager.php on line 37
PHP Warning: array_diff (): Argument #1 is not an array in /home/wwwroot/default/flarum/vendor/flarum/core/src/Support/ExtensionManager.php on line 37
PHP Warning: Invalid argument supplied for foreach () in /home/wwwroot/default/flarum/vendor/flarum/core/src/Support/ExtensionManager.php on line 40
DONE.
3426 次点击
所在节点    问与答
7 条回复
zyqf
2015-09-05 10:12:49 +08:00
有警告日志,但是不太懂.
ToysMall
2015-09-05 10:33:41 +08:00
scandir , shell_exec , exec 等一系列函数被禁用了 需要打开 php.ini
justjavac
2015-09-05 10:35:19 +08:00
@ToysMall 对,有很多函数被禁用了
zyqf
2015-09-05 10:38:11 +08:00
@ToysMall 多谢,我去尝试下.
ivmm
2015-09-05 11:50:52 +08:00
我正常~~
就差一个语言包了,很不错的论坛
LazyZhu
2015-09-05 13:19:25 +08:00
http://flarum.org/docs/installation/
PHP 5.5+ with the following extensions: mbstring, pdo_mysql, openssl, json, gd, dom, fileinfo

flarum 缺陷是首次访问比较慢, 得加载一堆 js,以后访问就比较流畅了.
zyqf
2015-09-06 00:56:10 +08:00
@ivmm
@LazyZhu
我已经转向了 Discourse 了,
欢迎参观: dis.overlooking.ml

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/218354

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX