PHP version targeted by Mautic

Your software
My Mautic version is: 3.3.4
My PHP version is: 7.4.18
My Database type and version is: MYSQL 5.7

Your problem
Hello, I recently upgraded to 3.3.4 as it was important to me to gain support for PHP higher than 7.3 - other software requires at least 7.4

I have changed the version of PHP on the host using command sudo update-alternatives --set php /usr/bin/php7.4 and now when I issue command php -v the host returns message saying that I am on PHP 7.4.18.

However, when I go to Mautic GUI and open the System Info from the Cog menu Mautic says I am on PHP 7.3.28.

Question - is there anything else I need to do manually to change the version of PHP Mautic targets?

Thanks

These errors are showing in the log:

Steps I have tried to fix the problem:

Thats probably because you updated cli implementation of php. You have to update php used by web server (apache, nginx)

what web server are you using ?

You should check the config of your website and see what php version it is referencing.

I am on Apache. You are right, I forgot to run a2dismod php7.3 and a2enmod php7.4

All is correct now

Thank you

1 Like