Describe the issue or problem
I have successfully upgraded OJS from 220.127.116.11 to 18.104.22.168
But when I open the website, I get the following error:
Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 7.3.0”.
My PHP version is 7.4, which fulfills the requirements.
Steps I took leading up to the issue
I have checked my PHP version and it is 7.4
I have searched in this forum and found similar issues but none of the proposed solutions did work for me.
What application are you using?
The upgrade when on successfully.
How did you perform the upgrade? It’s possible you’ve got two versions of PHP installed. You might e.g. have PHP 7.4 for the command line tools, but perhaps your apache module or PHP-FPM is still using an older version.
Thank you @jnugent
I did the upgrade using the command:
php tools/upgrade.php upgrade from the home directory of the OJS distribution.
I am also noticing that on phpmyadmin interface, that the MySQL Server is using PHP 7.2.24
So how can I change the version of php used by apache module and the php-fpm?
Thank you for the feedback and expecting more to come.
You’ll probably need to talk to your systems administrator, or whoever has root access on the server. You may need to install a new OS package for the new version of PHP, along with the other modules that OJS needs to function. I can’t really provide more advice than that since I don’t know what flavour of Linux you’re using.