# Moving Mautic to a new host

**URL:** <https://forum.mautic.org/t/moving-mautic-to-a-new-host/28926>\
**Category:** Product Support\
**Created:** [August 13, 2023, 1:30pm UTC](https://forum.mautic.org/t/moving-mautic-to-a-new-host/28926 "2023-08-13T13:30:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CarlJohan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/carljohan/32/7016_2.png) [@CarlJohan](https://forum.mautic.org/u/CarlJohan)\
**Post date:** [August 13, 2023, 1:30pm UTC](https://forum.mautic.org/t/moving-mautic-to-a-new-host/28926/1 "2023-08-13T13:30:23Z")

</div>

General advice needed.

Hi, I have been running Mautic in a PHP 7.4 environment, we are moving to a new environment and I need to move to PHP 8.1.

Does anyone have some general advice for that?

In the best of worlds, I would just like to move all the files to the new location, but I think that will not really work, any ideas?

---

<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:** [August 13, 2023, 2:29pm UTC](https://forum.mautic.org/t/moving-mautic-to-a-new-host/28926/2 "2023-08-13T14:29:45Z")

</div>

What version of Mautic are you running? 4.4.9 only supports 8.0 → \< [https://github.com/mautic/mautic/blob/aa4f8b678bc13edf0b9f1f51cf7d642b6fbaf347/app/release\_metadata.json](https://github.com/mautic/mautic/blob/aa4f8b678bc13edf0b9f1f51cf7d642b6fbaf347/app/release_metadata.json) \>.

But in general:

- export files & database
- move files to new server
- import database to new server
- install all the required php extensions Mautic depends on, this list should include all of them:

```auto
php8.0-imap php8.0-curl php8.0-mbstring php8.0-zip php8.0-gd php8.0-mysql php8.0-intl php8.0-fpm

```

This package

```auto
php8.0-fpm

```

is only required if you run php using FPM.

- I would also reinstall the dependencies
- clear the cache
- point mautic domain to the new server

That should give you a working Mautic instance on another server.

Regards, M.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [August 15, 2023, 2:29am UTC](https://forum.mautic.org/t/moving-mautic-to-a-new-host/28926/3 "2023-08-15T02:29:45Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
