I need php 8.1. I tried using the GUI to “change PHP” to 8.1 but my website is still reporting version 8.0.23 and the ‘php -v’ in terminal shows php 7 actually.
I need version 8.1 in both terminal and on the website.
I tried apt-get install lsphp81* then ‘change PHP’ via GUI. Restrted lsws from terminal as well.
Edit
Was able to solve it. To install php 8.1 for cli:
apt install software-properties-common
add-apt-repository ppa:ondrej/php
apt update
apt-get install php8.1
php -v shows 8.1
To install for litespeed, I ran the cyberpanel upgrade script after changing to 8.1 via GUI, then I just manually changed the Vhost Conf. Within the extprocessor userXXXXXXX {…}
There’s a setting (path) that specifies which lsphp to load, just change from php8 to php8.1:
...
autoStart 1
path /usr/local/lsws/lsphp81/bin/lsphp
extUser user1234