# Mautic is unable to write your configuration file to the appropriate location. Please check your filesystem permissions to ensure the following path is writable: /app/config/local.php

**URL:** <https://forum.mautic.org/t/mautic-is-unable-to-write-your-configuration-file-to-the-appropriate-location-please-check-your-filesystem-permissions-to-ensure-the-following-path-is-writable-app-config-local-php/30812>\
**Category:** Product Support\
**Created:** [February 7, 2024, 5:47am UTC](https://forum.mautic.org/t/mautic-is-unable-to-write-your-configuration-file-to-the-appropriate-location-please-check-your-filesystem-permissions-to-ensure-the-following-path-is-writable-app-config-local-php/30812 "2024-02-07T05:47:53Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![shishir](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@shishir](https://forum.mautic.org/u/shishir)\
**Post date:** [February 7, 2024, 5:47am UTC](https://forum.mautic.org/t/mautic-is-unable-to-write-your-configuration-file-to-the-appropriate-location-please-check-your-filesystem-permissions-to-ensure-the-following-path-is-writable-app-config-local-php/30812/1 "2024-02-07T05:47:53Z")

</div>

**Your software**  
My Mautic version is:4.4.5  
My PHP version is:7.4.3  
My Database type and version is: 10.4.25-MariaDB

**Your problem**  
My problem is: Mautic Installation - Environment Check

### Major Problems that need to be fixed now

We have detected **2** major problems. You _must_ fix them before continuing:

- Mautic is unable to write your configuration file to the appropriate location. Please check your filesystem permissions to ensure the following path is writable: **/opt/lampp/htdocs/kalpak/app/config/local.php**.
- The /opt/lampp/htdocs/kalpak/var/cache/prod directory must be writable. Change the permissions of the **/opt/lampp/htdocs/kalpak/var/cache/prod** directory so that the web server can write into it.

i have provided necessary permission and ownership while testing my mautic instance in another instances i am facing this issue . if i remove local.php this error is coming if dont remove it site is offline its showing please check let me know how to migrate a mautic instance and what are the changes i need to make. please provide a complere guide for this so that i can migrate mautic smoothly to another service or update the mautic in future.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/d/d2234058d375eedb584eea2f74cbc9341c801710.png)

These errors are showing in the log:

Steps I have tried to fix the problem:

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [February 7, 2024, 8:41am UTC](https://forum.mautic.org/t/mautic-is-unable-to-write-your-configuration-file-to-the-appropriate-location-please-check-your-filesystem-permissions-to-ensure-the-following-path-is-writable-app-config-local-php/30812/2 "2024-02-07T08:41:24Z")

</div>

To sum up the solution to your problems:

> **[Full guide to permissions and cache in Mautic – Joey Keller](https://joeykeller.com/full-guide-to-permissions-and-cache-in-mautic/)**

---

<div class="post-metadata">

**Author:** ![shishir](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@shishir](https://forum.mautic.org/u/shishir)\
**Post date:** [February 7, 2024, 8:59am UTC](https://forum.mautic.org/t/mautic-is-unable-to-write-your-configuration-file-to-the-appropriate-location-please-check-your-filesystem-permissions-to-ensure-the-following-path-is-writable-app-config-local-php/30812/3 "2024-02-07T08:59:53Z")

</div>

can you give me an guide to migrate mautic from one instance to another instance , i am having issue migrating mautic. what are the files need to be changed and the variables ?

---

<div class="post-metadata">

**Author:** ![shishir](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@shishir](https://forum.mautic.org/u/shishir)\
**Post date:** [February 7, 2024, 9:36am UTC](https://forum.mautic.org/t/mautic-is-unable-to-write-your-configuration-file-to-the-appropriate-location-please-check-your-filesystem-permissions-to-ensure-the-following-path-is-writable-app-config-local-php/30812/4 "2024-02-07T09:36:18Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/6/60b50703e1d82e42e124b3bcb75be281b752bd0d.png)

this is the error i am getting  
while clear cache after migration

---

<div class="post-metadata">

**Author:** ![shishir](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@shishir](https://forum.mautic.org/u/shishir)\
**Post date:** [February 7, 2024, 9:39am UTC](https://forum.mautic.org/t/mautic-is-unable-to-write-your-configuration-file-to-the-appropriate-location-please-check-your-filesystem-permissions-to-ensure-the-following-path-is-writable-app-config-local-php/30812/5 "2024-02-07T09:39:14Z")

</div>

Please provide a complete solution how to migrate mautic from one server to another. with screenshots so i can follow the guide.

---

<div class="post-metadata">

**Author:** ![alexhammer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/alexhammer/32/14525_2.png) [@alexhammer](https://forum.mautic.org/u/alexhammer)\
**Post date:** [February 7, 2024, 10:11am UTC](https://forum.mautic.org/t/mautic-is-unable-to-write-your-configuration-file-to-the-appropriate-location-please-check-your-filesystem-permissions-to-ensure-the-following-path-is-writable-app-config-local-php/30812/6 "2024-02-07T10:11:30Z")

</div>

if you want to move your mautic you need to:

1. move the files - especially media, themes and plugins
2. move the local.php file and change the paths within the local.php file to the new paths where mautic is installed
3. dump the whole database and find and replace the paths from old mautic to new mautic paths
4. re-upload the database

If you do this, your Mautic should be accessible again with the new path.

---

<div class="post-metadata">

**Author:** ![shishir](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@shishir](https://forum.mautic.org/u/shishir)\
**Post date:** [February 7, 2024, 10:25am UTC](https://forum.mautic.org/t/mautic-is-unable-to-write-your-configuration-file-to-the-appropriate-location-please-check-your-filesystem-permissions-to-ensure-the-following-path-is-writable-app-config-local-php/30812/7 "2024-02-07T10:25:39Z")

</div>

i tried changing the path in the local.php, after changing nothing is coming its just saying url not found. can you specify what are the files i need modify can you give me guide or screenshot so i can follow it.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [February 7, 2024, 10:25am UTC](https://forum.mautic.org/t/mautic-is-unable-to-write-your-configuration-file-to-the-appropriate-location-please-check-your-filesystem-permissions-to-ensure-the-following-path-is-writable-app-config-local-php/30812/8 "2024-02-07T10:25:54Z")

</div>

Regarding permission and cache error:  
If you read the blogpost in 10 minutes (which took me couple of hours to write), you won’t have permission problems.  
The screenshot you provided proves that you didn’t do that.

---

<div class="post-metadata">

**Author:** ![shishir](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@shishir](https://forum.mautic.org/u/shishir)\
**Post date:** [February 7, 2024, 11:16am UTC](https://forum.mautic.org/t/mautic-is-unable-to-write-your-configuration-file-to-the-appropriate-location-please-check-your-filesystem-permissions-to-ensure-the-following-path-is-writable-app-config-local-php/30812/9 "2024-02-07T11:16:11Z")

</div>

Hi i gave 755,775 and 777 all the permission, ownership chown -R www-data:www-data /path  
i tried every possible way. Its not working,

i want to update the mautic before that it is instructed that to migrate the mautic and test it, If it fails while upgrading it so we can restore it , but i am not able to migrate mautic form one linux instance to another, can you give me a guide how to migrate the mautic form one instance to another. I cant find any topic related to migration and steps shown in any topics please create a topic for this i am having issue in migrating the mautic.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [February 7, 2024, 11:24am UTC](https://forum.mautic.org/t/mautic-is-unable-to-write-your-configuration-file-to-the-appropriate-location-please-check-your-filesystem-permissions-to-ensure-the-following-path-is-writable-app-config-local-php/30812/10 "2024-02-07T11:24:02Z")

</div>

In your screenshot you are still regenerating the cache as root.

---

<div class="post-metadata">

**Author:** ![shishir](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@shishir](https://forum.mautic.org/u/shishir)\
**Post date:** [February 7, 2024, 11:53am UTC](https://forum.mautic.org/t/mautic-is-unable-to-write-your-configuration-file-to-the-appropriate-location-please-check-your-filesystem-permissions-to-ensure-the-following-path-is-writable-app-config-local-php/30812/11 "2024-02-07T11:53:02Z")

</div>

Please Provide a guide to migrate mautic from one server to another with some photo attachment.

---

<div class="post-metadata">

**Author:** ![marcus42](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@marcus42](https://forum.mautic.org/u/marcus42)\
**Post date:** [February 8, 2024, 7:59pm UTC](https://forum.mautic.org/t/mautic-is-unable-to-write-your-configuration-file-to-the-appropriate-location-please-check-your-filesystem-permissions-to-ensure-the-following-path-is-writable-app-config-local-php/30812/12 "2024-02-08T19:59:05Z")

</div>

Don’t use the root user and you’ll probably solve all of your problems.
