Flarum

Flarum

Install

Apache

  • Server: Apache2.4 + PHP 7.4.33. Make sure they are installed and connected.

  • Database: Install Mysql5. Create a database for flarum, e.g. flarum.

  • Configure PHP:

    • Enable fileinfo, gd2 and pdo_mysql.
  • Install Composer, which a php package management tool like npm.

  • Install Flarum:

    • Create a folder named flarum, cd into it and run composer create-project flarum/flarum ..
    • If vendor packages failed to install due to network issues, install behind a proxy:
      • Turn on your proxy and run set HTTP_PROXY=http://127.0.0.1:7078
      • run composer install
  • Configure Apache:

1
2
3
4
5
6
7
8
DocumentRoot "D:\tmp\flarum\public"
<Directory "D:\tmp\flarum\public">
Options Indexes FollowSymLinks
AllowOverride All // It must be set to ALL otherwise error: the requested resource was not found
Require all granted
</Directory>

LoadModule rewrite_module modules/mod_rewrite.so
  • Configure Flarum:
    • in flarum installation folder, edit config.php:
      • 'url' => 'http://localhost' change to 'url' => 'http://[domain or ip]'
    • install chinese langauge pack:
      • composer require flarum-lang/chinese-simplified
      • php flarum cache:clear
Author

Chendongtian

Posted on

2023-02-13

Updated on

2023-08-04

Licensed under

Comments