@muttahir I'm interested in your symlink solution. Php -v in the console says my Php version is 7.1.33-3+bionic (cli) and I would like to change to 7.2.x and I see that /usr/local/lsws/lsphp72 does exist on the server, and I note above you say to modify symbolic link:
Will there be an existing symlink pointing to the lsphp71 directory, and if so where might I find it please? Your help would be much appreciated (I have limited knowledge of symlinks).
Comments
/usr/local/lsws/lsphp74/bin/php /path/to/your.php
Replace lsphp74 with lsphp73 or any other version you need
Modify symbolic link
ln -s /usr/bin/php /usr/local/lsws/lsphp74/bin/php
I think Cyberpanel is a great panel but it lack a lot of documentation like this.
A lot of things are done like black magic
ln -s /usr/bin/php /usr/local/lsws/lsphp72/bin/php
Will there be an existing symlink pointing to the lsphp71 directory, and if so where might I find it please? Your help would be much appreciated (I have limited knowledge of symlinks).
cp /usr/local/lsws/lsphp72/bin/php /usr/bin/
> I solved it using:
> cp /usr/local/lsws/lsphp72/bin/php /usr/bin/
This worked for me also!