This tutorial by user Blago Eres will show us how to set up a FEMP stack on FreeBSD version 12.1. FEMP stack represents FreeBSD, NGINX web server, MySQL database, and PHP. The guide utilizes pkg tool/command to install the components. See the link below for the full set of instructions.

In this tutorial, we’ll set up components of a FEMP stack on a FreeBSD 12.1 server using pkg, the FreeBSD package manager.

Requirements

Before you start this guide, you’ll need the following:

  • A FreeBSD 12.1.
  • A user with root privileges or sudo user to make configuration changes.
  • Basic familiarity with the FreeBSD system and command-line interface is recommended.

How to Setup FEMP Stack (FreeBSD, Nginx, MySQL 8 and PHP 7.4) on FreeBSD 12: https://www.howtoforge.com/how-to-setup-femp-stack-nginx-mysql-php-on-freebsd-12/