# The /var/www/mautic/app/logs directory must be writable

**URL:** <https://forum.mautic.org/t/the-var-www-mautic-app-logs-directory-must-be-writable/4505>\
**Category:** Product Support\
**Created:** [July 15, 2016, 2:26am UTC](https://forum.mautic.org/t/the-var-www-mautic-app-logs-directory-must-be-writable/4505 "2016-07-15T02:26:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Waldemiro](https://avatars.discourse-cdn.com/v4/letter/w/d9b06d/32.png) [@Waldemiro](https://forum.mautic.org/u/Waldemiro)\
**Post date:** [July 15, 2016, 2:26am UTC](https://forum.mautic.org/t/the-var-www-mautic-app-logs-directory-must-be-writable/4505/1 "2016-07-15T02:26:11Z")

</div>

Guys,  
  
  
  
After a fresh install of Mautic 2.0, I can’t solve just one major problem: “The /var/www/mautic/app/logs directory must be writable. Change the permissions of the /var/www/mautic/app/logs directory so that the web server can write into it.”.  
  
  
  
I’m using Ubuntu Linux, and tried to recreate ‘logs’ folder, change permissions of it (with “sudo chmod -R 775 logs”), etc. Nothing works!  
  
  
  
Could you help me?  
  
  
  
Thanks!  
  
  
  
Waldemiro

---

<div class="post-metadata">

**Author:** ![Waldemiro](https://avatars.discourse-cdn.com/v4/letter/w/d9b06d/32.png) [@Waldemiro](https://forum.mautic.org/u/Waldemiro)\
**Post date:** [July 15, 2016, 2:26am UTC](https://forum.mautic.org/t/the-var-www-mautic-app-logs-directory-must-be-writable/4505/2 "2016-07-15T02:26:11Z")

</div>

Guys,

After a fresh install of Mautic 2.0, I can’t solve just one major problem: “The /var/www/mautic/app/logs directory must be writable. Change the permissions of the /var/www/mautic/app/logs directory so that the web server can write into it.”.

I’m using Ubuntu Linux, and tried to recreate ‘logs’ folder, change permissions of it (with “sudo chmod -R 775 logs”), etc. Nothing works!

Could you help me?

Thanks!

Waldemiro

---

<div class="post-metadata">

**Author:** ![prowebspot](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/prowebspot/32/22_2.png) [@prowebspot](https://forum.mautic.org/u/prowebspot)\
**Post date:** [July 15, 2016, 3:01am UTC](https://forum.mautic.org/t/the-var-www-mautic-app-logs-directory-must-be-writable/4505/3 "2016-07-15T03:01:15Z")

</div>

I found out, the ‘logs’ folder doesn’t exist at all. So I just created new ‘logs’ folder in app directory. That works for me.

---

<div class="post-metadata">

**Author:** ![Waldemiro](https://avatars.discourse-cdn.com/v4/letter/w/d9b06d/32.png) [@Waldemiro](https://forum.mautic.org/u/Waldemiro)\
**Post date:** [July 15, 2016, 1:51pm UTC](https://forum.mautic.org/t/the-var-www-mautic-app-logs-directory-must-be-writable/4505/4 "2016-07-15T13:51:09Z")

</div>

Unfortunately, this was my first action, and didn’t solve the problem…

---

<div class="post-metadata">

**Author:** ![theatereleven](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@theatereleven](https://forum.mautic.org/u/theatereleven)\
**Post date:** [July 15, 2016, 2:13pm UTC](https://forum.mautic.org/t/the-var-www-mautic-app-logs-directory-must-be-writable/4505/5 "2016-07-15T14:13:25Z")

</div>

Make sure the web user has rights to the folder.

Example - from a command line in Debian/Ubuntu type:

chown -R www-data:www-data /var/www/yoursites.com/app/logs

Just modify the path to go to your mautic install.

---

<div class="post-metadata">

**Author:** ![Waldemiro](https://avatars.discourse-cdn.com/v4/letter/w/d9b06d/32.png) [@Waldemiro](https://forum.mautic.org/u/Waldemiro)\
**Post date:** [July 15, 2016, 9:27pm UTC](https://forum.mautic.org/t/the-var-www-mautic-app-logs-directory-must-be-writable/4505/6 "2016-07-15T21:27:28Z")

</div>

Worked perfectly! Thank you!!

---

<div class="post-metadata">

**Author:** ![theatereleven](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@theatereleven](https://forum.mautic.org/u/theatereleven)\
**Post date:** [July 15, 2016, 9:34pm UTC](https://forum.mautic.org/t/the-var-www-mautic-app-logs-directory-must-be-writable/4505/7 "2016-07-15T21:34:49Z")

</div>

Great! np.
