Unable to change PHP Version

Any ideas on how to change PHP version? I logged in as root and regular user and updated the php version to 8.1 but when I type php -v I still get 7.4.1


Staff member
All available php binary located at /opt/zesle/

If you want to change php cli version, You need to run following commands

1. first remove existing symbolic link
rm -f /usr/bin/php

2. Create new link
ln -s /opt/zesle/ze-php81/root/usr/bin/php /usr/bin/php

Now, It should be changed php cli version to 8.1