This tutorial from Vultr will show you how to set up a FEMP stack on FreeBSD 12.0. The FEMP stack consists of FreeBSD in addition to Nginx web server, MySQL database, and PHP. The guide assumes that you are familiar with the basics of FreeBSD and command-line interface. See the link below for the full set of instructions.

A FEMP stack, which is comparable to a LEMP stack on Linux, is a collection of open-source software that is typically installed together to enable a FreeBSD server to host dynamic websites and web applications. FEMP is an acronym that stands for FreeBSD, Nginx, MySQL, and PHP.

In this guide, we’ll deploy elements of a FEMP stack on a FreeBSD 12.0 Vultr instance using pkg, the FreeBSD package manager.

How To Install Nginx, MySQL and PHP (FEMP) Stack on FreeBSD 12.0: