Installing Flarum on a Mac — no Nginx
In this tutorial, we’ll install a flarum, a next-generation online discussion forum app on a Mac.
These commands should be run in your Terminal.
Create an empty folder
> mkdir flarum
> cd flarum
Create the project
> composer create-project flarum/flarum . --stability=beta
Add the Flagrow Extension
According to the installation guide, we’d have to fiddle with Nginx and Lighttpd, but I didn’t want to do that, so we’d use an extension instead.
> composer require flagrow/serve
Serve the app
> php -S 127.0.0.1:8000 vendor/flagrow/serve/src/server.php
Be sure to use the port you want. In my case, it’s 8000
.
Hooking up MySQL
When you load http://localhost:8000 in your browser, you’d be shown a page that asks you to enter config information like your MySQL database name and login credentials.
Be sure you have a working MySQL installation, and have created the MySQL Database.
Enter the information requested for and click on install. This will take a minute.