V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
zyqf
V2EX  ›  问与答

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

  •  
  •   zyqf · 2015-09-05 10:11:48 +08:00 · 3444 次点击
    这是一个创建于 3400 天前的主题,其中的信息可能已经有所发展或是发生改变。

    安装文档:
    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.

    第 1 条附言  ·  2015-09-05 11:15:11 +08:00
    多谢 2 位,问题已解决
    @ToysMall
    @justjavac
    7 条回复    2015-09-06 00:56:10 +08:00
    zyqf
        1
    zyqf  
    OP
       2015-09-05 10:12:49 +08:00
    有警告日志,但是不太懂.
    ToysMall
        2
    ToysMall  
       2015-09-05 10:33:41 +08:00 via iPhone
    scandir , shell_exec , exec 等一系列函数被禁用了 需要打开 php.ini
    justjavac
        3
    justjavac  
       2015-09-05 10:35:19 +08:00 via Android
    @ToysMall 对,有很多函数被禁用了
    zyqf
        4
    zyqf  
    OP
       2015-09-05 10:38:11 +08:00
    @ToysMall 多谢,我去尝试下.
    ivmm
        5
    ivmm  
       2015-09-05 11:50:52 +08:00
    我正常~~
    就差一个语言包了,很不错的论坛
    LazyZhu
        6
    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
        7
    zyqf  
    OP
       2015-09-06 00:56:10 +08:00
    @ivmm
    @LazyZhu
    我已经转向了 Discourse 了,
    欢迎参观: dis.overlooking.ml
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1023 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 22:07 · PVG 06:07 · LAX 14:07 · JFK 17:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.