There are numerous discussions already about installing Flarum on a number of hosts as well as detailed instructions on how to get an instance installed via Composer. I highly recommend searching the forum.
You can visit this page on the Flarum website for instructions too.