We have a problem with Laravel Forge. We used SHIFT to upgrade to new Laravel Version. Now we also need a new PHP Version (8.2). But get an error, when we want to install it via Forge. It says "The repository is not updated" and "public key is not available". We also get a solution from Forge to ssh as root on the server to generate a key. But we cant. Because as I understand Forge, everything with the Server as root is done by forge. If we want to do it, we have to change the root password at the server and change some things at the server to do it. But then we had a problem with forge. We dont know how to go on. Hope somebody can help.
In the "Scripts" section, add another script with the following command to verify the PHP version:
php -v
Run the script and check the output to ensure PHP 8.2 is installed and set as the default version.
By following these steps, you should be able to install PHP 8.2 on your Laravel Forge server without needing direct SSH access as root. If you encounter any issues, you can always refer to the Laravel Forge documentation or seek further assistance from the Laravel community.
Laravel is working. The key is ok. I found out I also cant install older PHP versions via Forge UI. I tried 7.4 and also get the errors: Forge was not able to install PHP due to missing trusted keys.
I've now got this exact issue as well, did you manage to get it sorted out? I can't install a new version of php with forge and the new version of the api I'm deploying needs 8.2 minimum.
The only thing I can think of doing is creating a new server and switching things to use that but that's a massive bunch of time my client doesn't want to pay for as they are already paying for forge every month to handle this sort of thing.