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
andpdo_mysql
.
- Enable
Install Composer, which a php package management tool like
npm
.Install Flarum:
- Create a folder named
flarum
, cd into it and runcomposer 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
- Turn on your proxy and run
- Create a folder named
Configure Apache:
1 | DocumentRoot "D:\tmp\flarum\public" |
- 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
- in flarum installation folder, edit