# PHP version targeted by Mautic

**URL:** https://forum.mautic.org/t/php-version-targeted-by-mautic/21033
**Category:** Product Support
**Tags:** mautic-3
**Created:** [September 27, 2021, 9:50am UTC](https://forum.mautic.org/t/php-version-targeted-by-mautic/21033 "2021-09-27T09:50:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ascar](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ascar/32/5770_2.png) [@ascar](https://forum.mautic.org/u/ascar)
#### Post date: [September 27, 2021, 9:50am UTC](https://forum.mautic.org/t/php-version-targeted-by-mautic/21033/1 "2021-09-27T09:50:07Z")

</div>

**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:

---

<div class="post-metadata">

### Author: ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)
#### Post date: [September 27, 2021, 1:07pm UTC](https://forum.mautic.org/t/php-version-targeted-by-mautic/21033/2 "2021-09-27T13:07:04Z")

</div>

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

---

<div class="post-metadata">

### Author: ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)
#### Post date: [September 27, 2021, 1:36pm UTC](https://forum.mautic.org/t/php-version-targeted-by-mautic/21033/3 "2021-09-27T13:36:23Z")

</div>

what web server are you using ?

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

---

<div class="post-metadata">

### Author: ![ascar](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ascar/32/5770_2.png) [@ascar](https://forum.mautic.org/u/ascar)
#### Post date: [September 27, 2021, 1:52pm UTC](https://forum.mautic.org/t/php-version-targeted-by-mautic/21033/4 "2021-09-27T13:52:11Z")

</div>

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

All is correct now

Thank you
