# Error 500: broken path to log an cache directory

**URL:** https://forum.mautic.org/t/error-500-broken-path-to-log-an-cache-directory/20802
**Category:** Product Support
**Created:** [September 9, 2021, 4:33pm UTC](https://forum.mautic.org/t/error-500-broken-path-to-log-an-cache-directory/20802 "2021-09-09T16:33:59Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![shaysashcov](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shaysashcov/32/669_2.png) [@shaysashcov](https://forum.mautic.org/u/shaysashcov)
#### Post date: [September 9, 2021, 4:33pm UTC](https://forum.mautic.org/t/error-500-broken-path-to-log-an-cache-directory/20802/1 "2021-09-09T16:33:59Z")

</div>

**Your software**  
My Mautic version is: 3.1.2  
My PHP version is: 7.4  
My Database type and version is: Mysql

**Your problem**  
My problem is: So I tried changing the path to the logs and cache directory manually because it had the path of an older version of mautic. Doing so, I put the wrong path and now can’t access my dashboard. Is there a quick fix to it? Thanks!

These errors are showing in the log:

Steps I have tried to fix the problem:

---

<div class="post-metadata">

### Author: ![EJL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ejl/32/12155_2.png) [@EJL](https://forum.mautic.org/u/EJL)
#### Post date: [September 9, 2021, 4:37pm UTC](https://forum.mautic.org/t/error-500-broken-path-to-log-an-cache-directory/20802/2 "2021-09-09T16:37:04Z")

</div>

Look in your mautic/app/config/local.php file

---

<div class="post-metadata">

### Author: ![shaysashcov](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shaysashcov/32/669_2.png) [@shaysashcov](https://forum.mautic.org/u/shaysashcov)
#### Post date: [September 9, 2021, 4:39pm UTC](https://forum.mautic.org/t/error-500-broken-path-to-log-an-cache-directory/20802/3 "2021-09-09T16:39:45Z")

</div>

\<?php $parameters = array( 'db\_driver' =\> 'pdo\_mysql', 'db\_host' =\> 'localhost', 'db\_table\_prefix' =\> 'ar5d\_', 'db\_port' =\> '3306', 'db\_name' =\> 'redacted', 'db\_user' =\> 'redacted', 'db\_password' =\> 'redacted', 'db\_backup\_tables' =\> 0, 'db\_backup\_prefix' =\> 'bak\_', 'db\_server\_version' =\> '5.5.5-10.4.14-MariaDB', 'mailer\_from\_name' =\> 'Site Owner', 'mailer\_from\_email' =\> 'devnull@installatron.com', 'mailer\_transport' =\> 'sendmail', 'mailer\_host' =\> null, 'mailer\_port' =\> null, 'mailer\_user' =\> null, 'mailer\_password' =\> null, 'mailer\_api\_key' =\> null, 'mailer\_encryption' =\> null, 'mailer\_auth\_mode' =\> null, 'mailer\_spool\_type' =\> 'memory', 'mailer\_spool\_path' =\> '%kernel.root\_dir%/var/spool', 'secret\_key' =\> 'redacted', 'site\_url' =\> 'redacted', ); This is what I have in the file. What exactly do I change?

---

<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: [September 9, 2021, 4:56pm UTC](https://forum.mautic.org/t/error-500-broken-path-to-log-an-cache-directory/20802/4 "2021-09-09T16:56:15Z")

</div>

@shaysashcov I have redacted the sensitive information in your post - please don’t share credentials in the forum, just replace the sensitive stuff with ‘redacted’ or something similar 🙂

---

<div class="post-metadata">

### Author: ![shaysashcov](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shaysashcov/32/669_2.png) [@shaysashcov](https://forum.mautic.org/u/shaysashcov)
#### Post date: [September 9, 2021, 5:00pm UTC](https://forum.mautic.org/t/error-500-broken-path-to-log-an-cache-directory/20802/5 "2021-09-09T17:00:49Z")

</div>

Thank you, sir.

---

<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: [September 9, 2021, 5:03pm UTC](https://forum.mautic.org/t/error-500-broken-path-to-log-an-cache-directory/20802/6 "2021-09-09T17:03:08Z")

</div>

You’re welcome, and actually I’m female so no need for the Sir 🙂

---

<div class="post-metadata">

### Author: ![shaysashcov](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shaysashcov/32/669_2.png) [@shaysashcov](https://forum.mautic.org/u/shaysashcov)
#### Post date: [September 9, 2021, 5:10pm UTC](https://forum.mautic.org/t/error-500-broken-path-to-log-an-cache-directory/20802/7 "2021-09-09T17:10:28Z")

</div>

My apologies ma’am.  
Is there a solution to my problem? 😬  
Thanks!

---

<div class="post-metadata">

### Author: ![EJL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ejl/32/12155_2.png) [@EJL](https://forum.mautic.org/u/EJL)
#### Post date: [September 9, 2021, 7:10pm UTC](https://forum.mautic.org/t/error-500-broken-path-to-log-an-cache-directory/20802/8 "2021-09-09T19:10:36Z")

</div>

Line 27 and 28 in my local.php has cache and logs directory. Your directories won’t be exactly the same because my dev environment is probably different from yours. Centos 8 with Plesk Panel.

```auto
||'cache_path' => '/var/www/vhosts/mymautic.com/app.mymautic.com/var/cache',|
|---|---|
||'log_path' => '/var/www/vhosts/mymautic.com/app.mymautic.com/var/logs',|

```

Have you cleared cache after you changed the paths? If not I would do so.
