# Mautic configuration file missing at app/config/local.php

**URL:** <https://forum.mautic.org/t/mautic-configuration-file-missing-at-app-config-local-php/28300>\
**Category:** Mautic 4 Install/Upgrade Support\
**Created:** [June 13, 2023, 12:57pm UTC](https://forum.mautic.org/t/mautic-configuration-file-missing-at-app-config-local-php/28300 "2023-06-13T12:57:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![team](https://avatars.discourse-cdn.com/v4/letter/t/b5a626/32.png) [@team](https://forum.mautic.org/u/team)\
**Post date:** [June 13, 2023, 12:57pm UTC](https://forum.mautic.org/t/mautic-configuration-file-missing-at-app-config-local-php/28300/1 "2023-06-13T12:57:31Z")

</div>

**Apache 2.4**  
_PHP 8.0, and PHP 8.1_ :  
_My MySQL/MariaDB version is_ (delete as applicable): MySQL/MariaDB version

**Where is the location of the app/config/local.php file to configure the use of the Cloud SQL Database (i.e., 45\_mautic-449)? See the screenshot image of the config file directory?**  
_Unable to find Mautic configuration file_ :

\*Screenshot images from the extracted unzip command line: unzip mautic-45\_mautic-449.zip  
\*

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

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

---

<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:** [June 13, 2023, 1:20pm UTC](https://forum.mautic.org/t/mautic-configuration-file-missing-at-app-config-local-php/28300/2 "2023-06-13T13:20:27Z")

</div>

Hello,  
after successful install you should see it right there.  
`app/config/local.php`

---

<div class="post-metadata">

**Author:** ![team](https://avatars.discourse-cdn.com/v4/letter/t/b5a626/32.png) [@team](https://forum.mautic.org/u/team)\
**Post date:** [June 13, 2023, 7:30pm UTC](https://forum.mautic.org/t/mautic-configuration-file-missing-at-app-config-local-php/28300/3 "2023-06-13T19:30:46Z")

</div>

Joeyk,

The most recent version of Mautic (i.e., 4.4.9 45\_mautic-449.zipapp\_config) does not extract local.php, or app/config/local.php. How can we change the database settings in the current version to reflect the host, username, password, and MySQL database name?

The WinRAR extractor version 6.21 is shown in the following screenshot.

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

Team

---

<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:** [June 14, 2023, 8:54am UTC](https://forum.mautic.org/t/mautic-configuration-file-missing-at-app-config-local-php/28300/4 "2023-06-14T08:54:28Z")

</div>

local.php is a file that gets generated on successful mautic install and is not shipped in mautic release or in the git repository.

If you lost it, maybe you can run install command again and it will generate new local.php file for you (look into php bin/console mautic:install command).

Just make sure you use new (empty) database during the install procedure to keep your current database safe. When you have new local.php you can change database and creds to database directly in the file to point to the original database.

You might also need to check all mautic settings over the GUI again to make sure your mautic is configured properly.

---

<div class="post-metadata">

**Author:** ![team](https://avatars.discourse-cdn.com/v4/letter/t/b5a626/32.png) [@team](https://forum.mautic.org/u/team)\
**Post date:** [June 14, 2023, 12:01pm UTC](https://forum.mautic.org/t/mautic-configuration-file-missing-at-app-config-local-php/28300/5 "2023-06-14T12:01:57Z")

</div>

Thank you for answering my question.

---

<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:** [June 16, 2023, 12:02am UTC](https://forum.mautic.org/t/mautic-configuration-file-missing-at-app-config-local-php/28300/6 "2023-06-16T00:02:35Z")

</div>

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