What I did to install flarum in the /forum directory
Ignore this from the docs: https://flarum.org/docs/install.html#url-rewriting
Follow this: https://flarum.org/docs/install.html#customizing-paths
Basically just move everything that you can find in the public folder into your /forum directory
Edit index.php, line 12 that has:
require '../vendor/autoload.php';
into: require 'vendor/autoload.php';
Afterwards browse to yoursite.com/forum and Flarum will complain that:
The /var/www/vhosts/site/httpdocs/public/assets directory doesn't exist
This directory is necessary for the installation. Please create the folder.
The /var/www/vhosts/site/httpdocs/storage directory doesn't exist
This directory is necessary for the installation. Please create the folder.
Create them accordingly.
Installed flarum with the installation page
Now I get the following error when browsing my site
An error occurred while trying to load this page.
Why is such a pain to install it ? 🙁