# Change local paths

**URL:** <https://forum.mautic.org/t/change-local-paths/2189>\
**Category:** Product Support\
**Created:** [August 15, 2015, 11:11pm UTC](https://forum.mautic.org/t/change-local-paths/2189 "2015-08-15T23:11:26Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![quasimotoca](https://avatars.discourse-cdn.com/v4/letter/q/dbc845/32.png) [@quasimotoca](https://forum.mautic.org/u/quasimotoca)\
**Post date:** [August 15, 2015, 11:11pm UTC](https://forum.mautic.org/t/change-local-paths/2189/1 "2015-08-15T23:11:26Z")

</div>

Hi:  
  
  
  
I’d like to change the location where the config files are written to. I noticed there’s a concept of paths\_local.php. Is there an example of this file anywhere? Basically, instead of saving them in /app/config I need to put them in /var/config.  
  
  
  
Cheers,  
  
Dave

---

<div class="post-metadata">

**Author:** ![quasimotoca](https://avatars.discourse-cdn.com/v4/letter/q/dbc845/32.png) [@quasimotoca](https://forum.mautic.org/u/quasimotoca)\
**Post date:** [August 15, 2015, 11:11pm UTC](https://forum.mautic.org/t/change-local-paths/2189/2 "2015-08-15T23:11:26Z")

</div>

Hi:

I’d like to change the location where the config files are written to. I noticed there’s a concept of paths\_local.php. Is there an example of this file anywhere? Basically, instead of saving them in /app/config I need to put them in /var/config.

Cheers,  
Dave

---

<div class="post-metadata">

**Author:** ![buckhornmktg](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@buckhornmktg](https://forum.mautic.org/u/buckhornmktg)\
**Post date:** [August 16, 2015, 6:17am UTC](https://forum.mautic.org/t/change-local-paths/2189/3 "2015-08-16T06:17:18Z")

</div>

Hi Dave, can you use a symbolic link to point app/config to var/config?

---

<div class="post-metadata">

**Author:** ![quasimotoca](https://avatars.discourse-cdn.com/v4/letter/q/dbc845/32.png) [@quasimotoca](https://forum.mautic.org/u/quasimotoca)\
**Post date:** [August 16, 2015, 1:00pm UTC](https://forum.mautic.org/t/change-local-paths/2189/4 "2015-08-16T13:00:41Z")

</div>

Hi:

Thanks for the reply…  
In my case the only file system I can write to is /var. I’m porting Mautic over to run in Sandstorm. Basically, I need to override the default location where app/config currently writes to. Is it in AppKernel.php?

Cheers,  
Dave

---

<div class="post-metadata">

**Author:** ![buckhornmktg](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@buckhornmktg](https://forum.mautic.org/u/buckhornmktg)\
**Post date:** [August 16, 2015, 7:36pm UTC](https://forum.mautic.org/t/change-local-paths/2189/5 "2015-08-16T19:36:48Z")

</div>

Have a look at app/config/paths.php

---

<div class="post-metadata">

**Author:** ![buckhornmktg](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@buckhornmktg](https://forum.mautic.org/u/buckhornmktg)\
**Post date:** [August 16, 2015, 7:58pm UTC](https://forum.mautic.org/t/change-local-paths/2189/6 "2015-08-16T19:58:39Z")

</div>

Here’s some more places to look. app/config/local.php, app/config/parameters.php

Have a look at lines 50 & 75 in app/config/parameters.php. Seems to me like you need to change the apps directory and leave config inside the apps directory. I haven’t come across a simple path variable yet to override the config folder location. The code in parameters.php doesn’t use one, it just looks for the config relative from where it’s located.

Can you put the entire install in var or var/apps? I think that’s important, because you also have the cache directory in apps which gets written to (and who knows what else).

This may be helpful too. [http://symfony.com/doc/current/cookbook/configuration/override\_dir\_structure.html](http://symfony.com/doc/current/cookbook/configuration/override_dir_structure.html)

---

<div class="post-metadata">

**Author:** ![quasimotoca](https://avatars.discourse-cdn.com/v4/letter/q/dbc845/32.png) [@quasimotoca](https://forum.mautic.org/u/quasimotoca)\
**Post date:** [August 16, 2015, 9:38pm UTC](https://forum.mautic.org/t/change-local-paths/2189/7 "2015-08-16T21:38:01Z")

</div>

Thanks a lot! I’ll check that out…  
Cheers,  
Dave

---

<div class="post-metadata">

**Author:** ![buckhornmktg](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@buckhornmktg](https://forum.mautic.org/u/buckhornmktg)\
**Post date:** [August 17, 2015, 7:07am UTC](https://forum.mautic.org/t/change-local-paths/2189/8 "2015-08-17T07:07:45Z")

</div>

You’re welcome. I hope it helps. I think it’s going to be difficult to move config outside of the app directory. Good luck, and let me know how it goes.

-steve.

---

<div class="post-metadata">

**Author:** ![chad.windnagle](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@chad.windnagle](https://forum.mautic.org/u/chad.windnagle)\
**Post date:** [August 17, 2015, 1:17pm UTC](https://forum.mautic.org/t/change-local-paths/2189/9 "2015-08-17T13:17:45Z")

</div>

Moving it entirely is going to be tricky, but you might be able too. There are some settings for the log and root paths here:

![](https://www.evernote.com/l/ACo1h76Vnr9P1KQRHBvd5h5oyiz7Gt7cqZUB/image.png)

That won’t change the configuration file location, though. what you’ll end up with is:

app/config/config-files here (you’ll only be able to modify via uploading the file contents)

Then set:  
var/logs  
var/cache

For the cache and log directories. The config file writability is only important when changing the config file (unlike cache and logs which must always be writable).

–

We haven’t tried to use Sandstorm but if it looks like a compelling environment we’ll figure out a way to support it. Right now we’ve got things on Docker and some other hosts - there’s lot of choice out there!

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:58pm UTC](https://forum.mautic.org/t/change-local-paths/2189/10 "2020-02-02T22:58:56Z")

</div>

Closed on February 2, 2020, 10:58pm UTC


