我也打算改用flarum试试

之前一直用discuz,但是现在打算改用flarum试试了

已经搭建完成,可以来参观了


[reply]

xiaobai.org

[/reply]

可以的,安装有问题可以论坛交流。

@“James”#p86937

大佬帮忙看下,第一步就出问题啦哈哈,这是让把root目录全部清空吗?

In CreateProjectCommand.php line 371:


Project directory "/root/." is not empty.

@“帅气的呱呱”#p86943

创建一个新目录cd进去。如果从discuz迁移过来我推荐直接用zip安装,方便上手

@“小鱼飘飘”#p86944

好像还是不行

Creating a "flarum/flarum" project at "./"
Installing flarum/flarum (v1.8.1)
proc_open is disabled so 'unzip' and '7z' commands cannot be used, zip files are being unpacked using the PHP zip extension.
This may cause invalid reports of corrupted archives. Besides, any UNIX permissions (e.g. executable) defined in the archives will be lost.
Enabling proc_open and installing 'unzip' or '7z' (21.01+) may remediate them.

  • - Installing flarum/flarum (v1.8.1): Extracting archive
  • Problem 1
    - flarum/core[v1.8.0, ..., v1.8.5] require intervention/image 2.5.* || ^2.6.1 -> satisfiable by intervention/image[2.5.0, ..., 2.7.2].
    - intervention/image[2.5.0, ..., 2.7.2] require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
    - Root composer.json requires flarum/core ^1.8 -> satisfiable by flarum/core[v1.8.0, ..., v1.8.5].

    To enable extensions, verify that they are enabled in your .ini files:
    - /usr/local/php/etc/php.ini
    You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
    Alternatively, you can run Composer with `--ignore-platform-req=ext-fileinfo` to temporarily ignore these required extensions.

    @“帅气的呱呱”#p86958

    官方论坛教程 2.1.1 PHP 必要功能 fileinfo、exif

    看教程的话不建议跳过其中某部分

    @“帅气的呱呱”#p86958 宝塔里边把 proc_open 禁用的删除。

    @“James”#p86961 我用的lnmp一键安装包环境

    @“帅气的呱呱”#p86962 你缺fileinfo拓展,去php.ini你找一下

    @“小鱼飘飘”#p86965

    Installing flarum/flarum (v1.8.1)

    Failed to download flarum/flarum from dist: /home/wwwroot/XXX/vendor/composer does not exist and could not be created:

    Now trying to download from source


  • - Installing flarum/flarum (v1.8.1): Cloning 30bc7b40ce

    Install of flarum/flarum failed
  • In Filesystem.php line 333:


    Could not delete /home/wwwroot/XXX/.:

    这又是什么报错

    楼主是什么论坛呀?


    @“James”#p86961

    Installing flarum/flarum (v1.8.1)

    Failed to download flarum/flarum from dist: /home/wwwroot/XXX/vendor/composer does not exist and could not be created:

    Now trying to download from source

    Installing flarum/flarum (v1.8.1): Cloning 30bc7b40ce
    Install of flarum/flarum failed
    In Filesystem.php line 333:

    Could not delete /home/wwwroot/XXX/.:

    这又是什么报错,是不是有个隐藏删不掉?

    还是报错,这程序真麻烦!

    52 package suggestions were added by new dependencies, use </s>composer suggest<e> to see details.

    Package laminas/laminas-zendframework-bridge is abandoned, you should avoid using it. No replacement was suggested.

    Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.

    Generating autoload files

    75 packages you are using are looking for funding.

    Use the </s>composer fund<e> command to find out more!

    Found 1 security vulnerability advisory affecting 1 package.

    Run “composer audit” for a full list of advisories.


    @“帅气的呱呱”#p87962 开始到放弃

    @“帅气的呱呱”#p87962 想要跟搭建跟james一样模板,太难了

    @“yoube”#p88115 所以说推荐你zip安装嘛hhhh

    james这套也不好复刻,各类定制拓展太多了,虽然说开源但是要跑起来难度不小

    官网找 zip 一键安装,扩展管理用 Extension Manager。

    还有 InfinityFree 的面板有一键安装。

    @“小鱼飘飘”#p88119 复刻就算了 ,不过james的抽奖插件挺好,我去官网下载之后,很奇怪就是用不了,james老大,你上传到扩展商店的抽奖插件跟你自己站点是不是不一样嘞@james

    @“yoube”#p88201 因为migrate没有更新,有些字段我是直接在数据库改的。我更新一下lottery插件。

    已经搭建完成