Source: fideloper.com

Nginx Unit with Laravel and PHP
https://unit.nginx.org/ is a "Universal Web App Server" brought to you by Nginx. For PHP support, it has a PHP module that creates PHP processes, similar(ish) to PHP-FPM, but without needing PHP-FPM.

It lets us get the latest PHP and install multiple versions of PHP on the same server (if so desired).

Then tell Unit to use this configuration to run the application: sudo curl -X PUT --data-binary @unit.json --unix-socket \ /var/run/control.unit.sock http://localhost/config/

First, we can't switch PHP versions without re-compiling the Unit PHP module.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners