# Deleted contents of var/cache folder, now I'm unable to load site

**URL:** <https://forum.mautic.org/t/deleted-contents-of-var-cache-folder-now-im-unable-to-load-site/17932>\
**Category:** Product Support\
**Tags:** development\
**Created:** [January 26, 2021, 5:41pm UTC](https://forum.mautic.org/t/deleted-contents-of-var-cache-folder-now-im-unable-to-load-site/17932 "2021-01-26T17:41:39Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![kkoger](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kkoger/32/4346_2.png) [@kkoger](https://forum.mautic.org/u/kkoger)\
**Post date:** [January 26, 2021, 5:41pm UTC](https://forum.mautic.org/t/deleted-contents-of-var-cache-folder-now-im-unable-to-load-site/17932/1 "2021-01-26T17:41:39Z")

</div>

**Your software**  
My Mautic version is:3.2.4  
My PHP version is:7.4.14  
My Database type and version is: MySQL 5.7.33

**Your problem**  
My problem is: I deleted the contents of var/cache per the troubleshooting documentation ([Troubleshooting | Mautic Community Documentation](https://docs.mautic.org/en/troubleshooting)). Now I’m unable to even access and load the site.

These errors are showing in the log: I don’t see anything in the logs for today’s date

Steps I have tried to fix the problem: Not sure what to try

---

<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:** [January 26, 2021, 6:41pm UTC](https://forum.mautic.org/t/deleted-contents-of-var-cache-folder-now-im-unable-to-load-site/17932/2 "2021-01-26T18:41:12Z")

</div>

Clear browser cache or open in incognito tab. If that doesn’t work, set permissions for your cache folder and var/logs folder

---

<div class="post-metadata">

**Author:** ![kkoger](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kkoger/32/4346_2.png) [@kkoger](https://forum.mautic.org/u/kkoger)\
**Post date:** [January 26, 2021, 6:59pm UTC](https://forum.mautic.org/t/deleted-contents-of-var-cache-folder-now-im-unable-to-load-site/17932/3 "2021-01-26T18:59:55Z")

</div>

EJL,

I have cleared browser cache and cookies several times. I tried opening it in ingotnito window and that didn’t help. Also, the permissions are set to 755.

---

<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:** [January 26, 2021, 7:12pm UTC](https://forum.mautic.org/t/deleted-contents-of-var-cache-folder-now-im-unable-to-load-site/17932/4 "2021-01-26T19:12:30Z")

</div>

Try 775 on permissions. Are you on a VPS or dedicated server?

---

<div class="post-metadata">

**Author:** ![kkoger](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kkoger/32/4346_2.png) [@kkoger](https://forum.mautic.org/u/kkoger)\
**Post date:** [January 26, 2021, 7:32pm UTC](https://forum.mautic.org/t/deleted-contents-of-var-cache-folder-now-im-unable-to-load-site/17932/5 "2021-01-26T19:32:53Z")

</div>

I set the var/cache folder to 775 and set the var/logs to 775. I am on a VPS.

BTW, I also happen to look at my var/.htaccess and it says “deny for all” ? Should the .htaccess file say that?

---

<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:** [January 26, 2021, 8:22pm UTC](https://forum.mautic.org/t/deleted-contents-of-var-cache-folder-now-im-unable-to-load-site/17932/6 "2021-01-26T20:22:56Z")

</div>

> [@kkoger](#):
>
> BTW, I also happen to look at my var/.htaccess and it says “deny for all” ? Should the .htaccess file say that?

If someone tries to access the folder directly via it will give a 403 error. I do not think its related.

Have you tried restarting apache? On Centos7 via command line: “service httpd restart” will do the trick. Your system may vary a little based on OS

---

<div class="post-metadata">

**Author:** ![kkoger](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kkoger/32/4346_2.png) [@kkoger](https://forum.mautic.org/u/kkoger)\
**Post date:** [January 26, 2021, 10:40pm UTC](https://forum.mautic.org/t/deleted-contents-of-var-cache-folder-now-im-unable-to-load-site/17932/7 "2021-01-26T22:40:04Z")

</div>

EJL,  
I rebooted the server on WHM and it didn’t have any effect. Still can’t access my site

---

<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:** [January 26, 2021, 11:10pm UTC](https://forum.mautic.org/t/deleted-contents-of-var-cache-folder-now-im-unable-to-load-site/17932/8 "2021-01-26T23:10:12Z")

</div>

apache logs dont show anything? No errors in php logs? turn on debug option, and check mautic/var/logs/

---

<div class="post-metadata">

**Author:** ![kkoger](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kkoger/32/4346_2.png) [@kkoger](https://forum.mautic.org/u/kkoger)\
**Post date:** [January 26, 2021, 11:50pm UTC](https://forum.mautic.org/t/deleted-contents-of-var-cache-folder-now-im-unable-to-load-site/17932/9 "2021-01-26T23:50:38Z")

</div>

EJL,  
I decided to save my database and uninstall the Mautic script and then reinstall a fresh clean version to that same subdomain. I use Softaculous on cPanel to do the install.

Now, with the fresh clean install and new database I can’t access the site at all. I get a message from my browser that its getting too many redirects. I don’t understand why a fresh new installation won’t let me access it. I’ve tried clearing the cache and cookies and an incognito window as well.

I have open a support ticket with my host and see what I can figure out from that end first. A clean install should work.

---

<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:** [January 27, 2021, 12:06am UTC](https://forum.mautic.org/t/deleted-contents-of-var-cache-folder-now-im-unable-to-load-site/17932/10 "2021-01-27T00:06:01Z")

</div>

Did you save a copy of your local.php before you migrated? Is your sql driver set to pdo? Top few lines of local.php file

---

<div class="post-metadata">

**Author:** ![kkoger](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kkoger/32/4346_2.png) [@kkoger](https://forum.mautic.org/u/kkoger)\
**Post date:** [January 27, 2021, 4:32pm UTC](https://forum.mautic.org/t/deleted-contents-of-var-cache-folder-now-im-unable-to-load-site/17932/11 "2021-01-27T16:32:55Z")

</div>

EJL,  
No, I did not. As an update for this morning. I just was able to access the new installation of Mautic from an Incognito window. My host indicated that I was getting too many redirects from Cloudfare. I’ve disabled Cloudfare for that subdomain.

I didn’t have a lot of data (maybe a weeks worth) in my previous Mautic installation as I was just setting things up.

I’m still unclear of why when I cleared the contents of var/cache that it broke Mautic. Maybe I went about it incorrectly. I was following the instructions in the Troubleshooting section of Mautic. This all originated because I was attempting to connect my Mautic instance to Zapier. I was advised to clear my cache folder contents, so I did.

I’ll attempt to try to connect it with this fresh install but I need to re-configue some of the settings I had already had in place.

---

<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:** [January 27, 2021, 5:25pm UTC](https://forum.mautic.org/t/deleted-contents-of-var-cache-folder-now-im-unable-to-load-site/17932/12 "2021-01-27T17:25:26Z")

</div>

in the future you can save the local.php file and use it to restore your settings by copying into the app/config folder of any new installs.  
If I recall correctly the Zapier plugin in nonfunctional due to some changes on Zapier’s end but it may be sorted out by now.  
Unfortunately the documentation for Mautic is far behind its development. Its being addressed, but it isn’t current as I understand it.  
If you have ssh access you can run the cache:clear command as opposed to deleting the whole folder.

---

<div class="post-metadata">

**Author:** ![kkoger](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kkoger/32/4346_2.png) [@kkoger](https://forum.mautic.org/u/kkoger)\
**Post date:** [January 27, 2021, 5:49pm UTC](https://forum.mautic.org/t/deleted-contents-of-var-cache-folder-now-im-unable-to-load-site/17932/13 "2021-01-27T17:49:55Z")

</div>

That’s good to know about the local.php file. Where exactly is that file located?

Makes sense with regards to Zapier. Do you know if Integrately works? I know they have a mautic connector. (and Integrately costs far less to use than Zapier)

I do have SSH access, although I know enough to be dangerous, I try to stay away from shell commands unless absolutely necessary. After going through this though I probably will use the shell command next time.

I’m reconfiguring the new mautic install now. I’m so much faster at it the second time around! LOL

I really appreciate all your help. Thank you🙏

---

<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:** [January 27, 2021, 5:52pm UTC](https://forum.mautic.org/t/deleted-contents-of-var-cache-folder-now-im-unable-to-load-site/17932/14 "2021-01-27T17:52:08Z")

</div>

> [@kkoger](#):
>
> Where exactly is that file located?

your/mautic/directory/app/config  
I haven’t used integratedly so I cant offer any input.

Its no trouble. I hope it remains problem free.

---

<div class="post-metadata">

**Author:** ![kkoger](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kkoger/32/4346_2.png) [@kkoger](https://forum.mautic.org/u/kkoger)\
**Post date:** [January 27, 2021, 5:59pm UTC](https://forum.mautic.org/t/deleted-contents-of-var-cache-folder-now-im-unable-to-load-site/17932/15 "2021-01-27T17:59:04Z")

</div>

In light of the Zapier issue, I’ll test out Integrately for a successful connection. I’ll let you know.
