change default php version in cyber panel

When laravel 6 is available, it needs php 7.2 where as my staging server has 7.1 and i don’t want to change its version as i am afraid it may break existing projects so i decided to create a new vps and for flexibility decided to go with cyber panel where we can change php versions per project but unfortunately default php version seems to be 7.1

and when i try to connect with ssh, eventhough i have set project’s php version to 7.2….ssh still complains me about php version 7.1

and the fix for it seems to be changing default php version as below

php versions are located at /usr/local/lsws/lsphpXX/bin/php

so to change default php version to 7.2, all i had to do is cp /usr/local/lsws/lsphp72/bin/php /usr/bin and it started working 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.