# How to move MAUTIC from PHP 8.0 to 8.1

**URL:** <https://forum.mautic.org/t/how-to-move-mautic-from-php-8-0-to-8-1/30861>\
**Category:** Mautic 5 Install/Upgrade Support\
**Created:** [February 11, 2024, 10:11am UTC](https://forum.mautic.org/t/how-to-move-mautic-from-php-8-0-to-8-1/30861 "2024-02-11T10:11:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![omert](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/omert/32/10732_2.png) [@omert](https://forum.mautic.org/u/omert)\
**Post date:** [February 11, 2024, 10:11am UTC](https://forum.mautic.org/t/how-to-move-mautic-from-php-8-0-to-8-1/30861/1 "2024-02-11T10:11:47Z")

</div>

**Your software**  
My Mautic version is: 5.0.3  
My PHP version is: 8.0.28  
My Database type and version is: MySQL 8.0.35

**Your problem**  
My problem is:  
Seems like when using PHP8.0-FPM on my NGINX, MAUTIC 5.0.3 works OK. ✅

But… when I switch the MAUTIC site over to PHP8.1-FPM, I get the red offline message (see screenshot). ❌

What am I missing?  
Could anybody please direct me on how to move MAUTIC to PHP 8.1?

 ![mautic_screenshot](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/a/a0b97757addd2cc57865d557df8e10a2ab14c83d.png)

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:** [February 11, 2024, 2:24pm UTC](https://forum.mautic.org/t/how-to-move-mautic-from-php-8-0-to-8-1/30861/2 "2024-02-11T14:24:58Z")

</div>

Please provide logs from `<mautic-root>/var/logs `.

My guess some PHP extensions are not installed. Also I would try to install composer packages.

---

<div class="post-metadata">

**Author:** ![omert](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/omert/32/10732_2.png) [@omert](https://forum.mautic.org/u/omert)\
**Post date:** [February 11, 2024, 3:19pm UTC](https://forum.mautic.org/t/how-to-move-mautic-from-php-8-0-to-8-1/30861/3 "2024-02-11T15:19:27Z")

</div>

Could someone please post an organized HOW-TO on how to fully migrate MAUTIC 5 from PHP 8.0 to PHP 8.1?  
\*required PHP extensions  
\*composer modules, modification & commands (if required)  
\*etc…

---

<div class="post-metadata">

**Author:** ![omert](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/omert/32/10732_2.png) [@omert](https://forum.mautic.org/u/omert)\
**Post date:** [February 20, 2024, 11:47am UTC](https://forum.mautic.org/t/how-to-move-mautic-from-php-8-0-to-8-1/30861/4 "2024-02-20T11:47:53Z")

</div>

I’ve installed every imaginable PHP8.1 extension and when I switch over from PHP8.0-FPM to PHP8.1-FPM on NGINX, I still get that red error message so I have to switch it back to 8.0 for it to work again. Are you sure MAUTIC 5.0.3 supports PHP 8.1?

---

<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:** [February 20, 2024, 1:14pm UTC](https://forum.mautic.org/t/how-to-move-mautic-from-php-8-0-to-8-1/30861/5 "2024-02-20T13:14:00Z")

</div>

Yes, it just have to be small enough version of 8.1:

> <https://github.com/mautic/mautic/blob/7e482b7638b506aae88d057e8cfb94e654b7d90d/app/release_metadata.json>

---

<div class="post-metadata">

**Author:** ![omert](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/omert/32/10732_2.png) [@omert](https://forum.mautic.org/u/omert)\
**Post date:** [February 21, 2024, 5:41am UTC](https://forum.mautic.org/t/how-to-move-mautic-from-php-8-0-to-8-1/30861/6 "2024-02-21T05:41:55Z")

</div>

Well…  
For some reason, 5.0.3 runs on 8.0 but not on 8.1.  
What’s missing?

---

<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:** [February 21, 2024, 6:06pm UTC](https://forum.mautic.org/t/how-to-move-mautic-from-php-8-0-to-8-1/30861/7 "2024-02-21T18:06:19Z")

</div>

Did you install all the necessary php extensions and reinstall php dependencies using php 8.1?

What is the error that you are getting ?

Best, M.
