Some software requires an older version of PHP like 5.6 while others ask for PHP 7. If it happens, you need either of the versions. You can switch to it from cPanel.
Log into your cPanel account.
In the Software section, click on the MultiPHP Manager Icon.
If will take a few seconds, and then your PHP version will change to your selected version.