# The folder var/cache/prod change file owner

**URL:** https://forum.mautic.org/t/the-folder-var-cache-prod-change-file-owner/25354
**Category:** Product Support
**Tags:** mautic-4
**Created:** [September 11, 2022, 7:23pm UTC](https://forum.mautic.org/t/the-folder-var-cache-prod-change-file-owner/25354 "2022-09-11T19:23:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![yukzanaly](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/yukzanaly/32/1769_2.png) [@yukzanaly](https://forum.mautic.org/u/yukzanaly)
#### Post date: [September 11, 2022, 7:23pm UTC](https://forum.mautic.org/t/the-folder-var-cache-prod-change-file-owner/25354/1 "2022-09-11T19:23:50Z")

</div>

**Your software**  
My Mautic version is: 4.4.2  
My PHP version is: 8  
My Database type and version is: 10.3.29-MariaDB-0ubuntu0.20.04.1

**Your problem**  
My problem is: the folder var/cache/prod change file owner. I have to fix it all the time.

These errors are showing in the log: no log

Steps I have tried to fix the problem: I have to fix the ownership all the time.

---

<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: [September 11, 2022, 8:15pm UTC](https://forum.mautic.org/t/the-folder-var-cache-prod-change-file-owner/25354/2 "2022-09-11T20:15:59Z")

</div>

Clear cache with web server user (usually www-data). On ubuntu based system command would go something like this:

`sudo -u www-data /usr/bin/php <path-to-bin>/console cache:clear --env=prod`

Thats one way to go about this problem…
