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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners