# Cleared cache, Mautic down

**URL:** <https://forum.mautic.org/t/cleared-cache-mautic-down/15595>\
**Category:** Product Support\
**Created:** [August 11, 2020, 2:28pm UTC](https://forum.mautic.org/t/cleared-cache-mautic-down/15595 "2020-08-11T14:28:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![abracadabra.photogra](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/abracadabra.photogra/32/505_2.png) [@abracadabra.photogra](https://forum.mautic.org/u/abracadabra.photogra)\
**Post date:** [August 11, 2020, 2:28pm UTC](https://forum.mautic.org/t/cleared-cache-mautic-down/15595/1 "2020-08-11T14:28:05Z")

</div>

I deleted cache in Mautic 2.15  
Mautic went down, error 500

Why? Any reason for this?  
I’m not able to let it work anymore

---

<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:** [August 11, 2020, 3:08pm UTC](https://forum.mautic.org/t/cleared-cache-mautic-down/15595/2 "2020-08-11T15:08:48Z")

</div>

Hi, make sure files are right ownership:  
if the webserver runs as www-data, then:

chown -R www-data:www-data /var/www/html/mautic/

Also: check rights:  
chmod -R 755 /var/www/html/mautic/

You can also rebuild cache and see if you get errors. If you are root, you can run it as the web user:  
sudo -u www-data php /var/www/html/mautic/app/console cache:clear

Good luck

---

<div class="post-metadata">

**Author:** ![abracadabra.photogra](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/abracadabra.photogra/32/505_2.png) [@abracadabra.photogra](https://forum.mautic.org/u/abracadabra.photogra)\
**Post date:** [August 11, 2020, 3:35pm UTC](https://forum.mautic.org/t/cleared-cache-mautic-down/15595/3 "2020-08-11T15:35:38Z")

</div>

I have Mautic in a shared webhost, permissions of mautic installation are rwx --x — for the main folder and rwx r-x r-x for the subfolders

---

<div class="post-metadata">

**Author:** ![devsrealm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/devsrealm/32/3669_2.png) [@devsrealm](https://forum.mautic.org/u/devsrealm)\
**Post date:** [August 11, 2020, 5:17pm UTC](https://forum.mautic.org/t/cleared-cache-mautic-down/15595/4 "2020-08-11T17:17:04Z")

</div>

Find the directory mautic is installed in, and find the owner of that directory, for example, if mautic is installed under: **/home/username/public\_html/mautic** I’ll find the owner using:

> ls -l /home/ **username** /public\_html/mautic

If you check that, then it might have been replaced with the root user cos of the way you cleared the cache, so, just change it to www-data as that is the default web server user, at least on Ubuntu, change it using:

> chown -R www-data:www-data /home/ **username** /public\_html/mautic

Now, whenever you want to clear your cache, use the app/console and run it as www-data, e.g:

> sudo -u www-data php /home/ **username** /public\_html/mautic/app/console cache:clear

_Note: I am assuming, mautic is installed under **/home/username/public\_html/mautic** , so you might wanna adjust that to wherever mautic is installed._

---

<div class="post-metadata">

**Author:** ![abracadabra.photogra](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/abracadabra.photogra/32/505_2.png) [@abracadabra.photogra](https://forum.mautic.org/u/abracadabra.photogra)\
**Post date:** [August 11, 2020, 6:43pm UTC](https://forum.mautic.org/t/cleared-cache-mautic-down/15595/5 "2020-08-11T18:43:01Z")

</div>

Hi guys,  
it is a shared web host, I can’t use the shell.

Mautic is installed in a subdomain…it always worked, I don’t understand why deleting the cache folder could cause this sort of issues…

---

<div class="post-metadata">

**Author:** ![abracadabra.photogra](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/abracadabra.photogra/32/505_2.png) [@abracadabra.photogra](https://forum.mautic.org/u/abracadabra.photogra)\
**Post date:** [August 12, 2020, 8:24am UTC](https://forum.mautic.org/t/cleared-cache-mautic-down/15595/7 "2020-08-12T08:24:46Z")

</div>

Today I cleared the cache again and it worked.  
I didn’t need to change any file permission

No sense in this…
