EDIT:

Don't listen to the old me, and go to the better solution.


I know how to use Docker

You can download it from hub.docker.com here: https://hub.docker.com/r/nadi106/flarum .
If you're feeling lazy, just copy and paste: sudo docker run -d -p 80:80 nadi106/flarum:0.1.0-beta.8.

I have no idea what is a Docker

  1. Read about Docker, it's quite cool.
  2. Install docker: sudo apt install docker.io
  3. Run the following command: sudo docker run -d -p 80:80 nadi106/flarum:0.1.0-beta.8
Please explain...

Docker is used to run software packages called containers. Containers are isolated from each other and bundle their own application, tools, libraries and configuration files; they can communicate with each other through well-defined channels. All containers are run by a single operating-system kernel and are thus more lightweight than virtual machines. Containers are created from images that specify their precise contents. Images are often created by combining and modifying standard images downloaded from public repositories.

Enough Wikipedia for now, lets understand the command:
sudo docker run will take an image (the one I created) and run it as a container.
-d will run the container in detached mode (meaning it will run in the background).
-p 80:80 will bind port 80 of the container to you machines port 80. If port 80 of your machine is taken, use another one.
nadi106/flarum:0.1.0-beta.8 is the docker image that will be downloaded from hub.docker.com.

Still having trouble?

Comment below, I'll be around.

Links

GitHub: https://github.com/nadi106/flarum-docker
Docker Hub: https://hub.docker.com/r/nadi106/flarum

7 months later

I will need to try this when i get home, is it stil working with latest update

    a month later
    a year later

    Hello, it's normal ?
    Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.3.0". You are running 7.2.34. in /var/www/vendor/composer/platform_check.php on line 24

      [deleted] Do you know which dependency is causing this? Our composer file is set to 7.2 and greater which means that a dependency somewhere is forcing PHP 7.3


      After further review I've found the libraries causing the issue. Essentially what it comes down to is that these libraries have updated with PHP 8.0 support and to do so they had to update PHPUnit, when they updated PHPUnit they had to drop support for 7.2 because the latest version of PHPUnit only support 7.3, 7.4 and 8.0.