Detailed Installation Tutorial for the PHP Lightweight Community Flarum Beta 11

33,849 29

Flarum released version 0.1.0-beta.11 a few weeks ago; see Flarum 0.1.0-beta.11 Released. So let’s take a look at how to perform a fresh installation of this version. The previous article already covered installing Composer and switching to a domestic mirror, so the following steps are very convenient.

Preparation

My test environment is as follows:

Apache 2.4
PHP 7.3
MySQL 5.6

The server requirements in the official documentation are:

Apache(启用 mod_rewrite)或 Nginx
PHP 7.1+ 具有以下扩展名:curl,dom,gd,json,mbstring,openssl,pdo_mysql,tokenizer,zip
MySQL 5.6 以上或 MariaDB 10.0.5 以上
SSH(命令行)访问以运行 Composer

The official documentation seems not to mention one very important extension: fileinfo. This extension is required by Flarum and can be installed directly through the Baota panel, so it is very simple.

If the available memory is less than or equal to 1G, the installation may fail. In that case, you need to add swap memory to ensure that the installation succeeds. I will not go into detail about how to add it; the Linux Toolbox in Baota has the relevant option.

Create a new site. It is recommended to choose utf8mb4 for the database encoding, although utf8 is also fine.

Let me first mention something that was not covered in the previous article. Many warnings appeared while using Composer, such as the following:

According to the warnings, the relevant functions were probably disabled by Baota’s default PHP configuration. I summarized them, and the functions that need to be removed are as follows:

putenv
pcntl_signal
proc_open

Start Installation

First, cd to the website root directory and run rm -rf * to delete all files.

Delete Files

Well, I tried it, and rm -rf did not delete everything. It is better to delete the files through the file manager in the Baota panel instead. .htaccess and .user.ini must also be deleted to ensure that the directory contains no files. Then install directly using Composer:

composer create-project flarum/flarum . --stability=beta

The installation will be complete after a while. Do not rush to visit the site yet; first install a Simplified Chinese language extension:

# 繁体中文
composer require csineneo/lang-traditional-chinese
# 简体中文
composer require csineneo/lang-simplified-chinese

Then change the permissions of all directories and files under the website directory to 755, and point the website’s running directory to /public.

You can now access the website!

Comments

(29)
  1. wangyvefang
    Chrome 78 Windows 10

    你好,安装好之后管理页面404怎么办呢?

  2. lzc
    Chrome 74 Windows 10

    ::aru:shy::

  3. ZAESKY
    Chrome 79 Windows 10

    在哪里可以下载到完整版呀? ::aru:shy::

    1. Chrome 79 Mac OS 10.15.3Apple Macintosh

      使用命令 ``` composer create-project flarum/flarum . --stability=beta ```

  4. Chrome 79 Windows 10

    楼主,有中文翻译吗

    1. Chrome 80 Windows 10

      网站根目录运行 <pre> //繁体中文 composer require csineneo/lang-traditional-chinese //简体中文 composer require csineneo/lang-simplified-chinese </pre>

    2. Chrome 80 Windows 10

      用ssh连接上你的服务器,cd打开flarum根目录,输入 <pre> composer require csineneo/lang-simplified-chinese </pre> 然后回车安装简体中文插件

  5. Chrome 79 Windows 10

    站长能加一下你QQ吗?方便联系,有些问题不太懂 ::twemoji:smile::

  6. Edge 80 Windows 10

    谢谢大佬,已经解决了 ::aru:proud::

  7. Sogou Explorer 1 Windows 10

    按照https://bbs.stkey.top/d/216-%E4%BB%8B%E7%BB%8D-flarum/3

  8. Sogou Explorer 1 Windows 10

    不错,准备去搭一个试试,谢谢分享

  9. gogobody
    Chrome 83 Windows 10

    老哥,你的服务器买的哪的啊,感觉挺快

  10. Chrome 84 Windows 10

    太赞了,我这个小白终于知道怎么安装了,Thanks

Leave a comment

© 2026 Carefree. All rights reserved.

Carefree is a personal site about technology and everyday life, documenting web development, backend, and DevOps practices, plus software tools, digital experiences, and thoughts beyond code.