Just a note regarding your link to another thread above showing how to symbolic_link php at the command line to your desired version of installed phps.
The linked thread post (Change default php to v8.0 - #10 by josephgodwinke) is closed for comments, but it has a mistake that can render php unavailable/unusable. You switched the place of the linked file and the symbolic link
In the linked thread post:
ln -s source_file symbolic_link
ln -sf /usr/bin/php /usr/local/lsws/lsphp80/bin/php
It should be:
ln -sf /usr/local/lsws/lsphp80/bin/php /usr/bin/php
Using the posted command, replace the actual php file in the desired php installation with a symbolic link linking it back to the /usr/bin/php which is also a symbolic link rendering that version of php unusable.
Please change the posting at the closed thread, and if anyone messed up their php, they can quickly go into their desired php version bin directory and remove the symbolic link and replace it with the actual php file in the directory which usually holds the name and version number of the installation. ex. php8.0 here is how:
Delete the symbolic link:
rm -f php
Then copy the file php8.0 to php and it should fix it.
cp php8.0 php
Then they can link it with the correct syntax as follows:
ln -sf /usr/local/lsws/lsphp80/bin/php /usr/bin/php
I thought this would help others if they ran into those instructions in that thread post as I did.