Category: Laravel, PHP

After a lot of headache and struggle, I went back to what I trust. Sure a few things like enabling and disabling Xdebug is a tad bit more work.

for examples: We are going to install all needed PHP versions, in this case, 7.1 7.2, 7.3 and optionally if you want the new php@7.4.

Change the following files: /usr/local/etc/php/"PHP_VERSION"/php-fpm.d/www.conf for fastCGI proxy we setup different ports for each PHP version for PHP@7.1 for example we use: for 7.2 we use also, do this for 7.3 and 7.4 if needed.

Go to your nginx configuration file /usr/local/etc/nginx/nginx.conf and set the following configuration: In this case, we use server 127.0.0.1:9071; so this means we are using PHP 7.1.
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