The procedure for installing PHP 7.2 on FreeBSD is as follows:
- Update FreeBSD ports tree.
- Install PHP 7.2 binary package: pkg install nginx.
- Install Nginx binary package.
- Configure Nginx and PHP 7.2.
- Turn on PHP-fpm service on FreeBSD.
- Test the setup.