How to Change CLI PHP on CyberPanel?

This guide is either outdated or wrong. All you have to do is remove the php symlink

rm /usr/bin/php

then create a new symlink with the version you want

ln -s /usr/local/lsws/lsphp80/bin/php /usr/bin/php
3 Likes