Ubuntu 18.04. Nginx.
The server used to be hosted by Laravel Forge. Now – no, in free swimming. There were no changes on the server – everything that was created and configured by Forge remained.
I see the PHP 8.1 version is installed along the path /usr/bin/*php8.1. How can I change the php version now? Directly on the server without the Forge web interface. Thanks.
2
Answers
Go to your server and click PHP from the menu on the left. Scroll down on the page and click “Install” on the desired version.
Here is complete way if you wantenter link description here
In Terminal
will display all versions installed, choose a number selection if you want a version