How you can change the default version of PHP on CLI?
If you have certain needs and PHP 7.4 does not work for certain application you can run following command to update the default PHP on CLI.
Set Command line to PHP 8.2
ln -sfn /usr/local/lsws/lsphp82/bin/php /usr/bin/php
Set Command line to PHP 8.1
ln -sfn /usr/local/lsws/lsphp81/bin/php /usr/bin/php
Leave a Reply