Steps to change PHP version in right way

Not really am using a nullification method to solve your problem.

  1. First upgrade your installation

  2. Enable detailed dynamic logging for debugging and post contents of /home/cyberpanel/error-logs.txt

  3. Post contents of this command ls /usr/local/lsws|grep lsphp OR find / -name lsphp | grep /usr/local/lsws to see the php versions you have installed

  4. To change php version per website:

Go to specific website https://SERVER_URL:8090/websites/emilia.com and click on Change PHP under configurations select available php versions

If you have missing php modules here https://SERVER_URL:8090/managephp/installExtensions Follow this guide [TUTORIAL] How to install any PHP modules using PEAR Package Manager

1 Like