Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Permission error, cache/doctrine is not writable

Started by Michael 8 years ago · 1 replies · 3098 views
8 years ago

If setenforce is 1, I get following error:

InvalidArgumentException
The directory "/var/www/dev/public_html/GravCMS/cache/doctrine" is not writable.

However:

  • ls -l
  • drwsrwsr-x | apache | apache

For testing purposes I tried with following permissions:

  • 0777
  • 6775
  • 0775

no change.

8 years ago

EDIT: Solution is also found at https://learn.getgrav.org/15/troubleshooting/permissions (SELinux-specific advice), somewhat missed it, assuming I was not able to connect solution to my problem. Silly me, I blame lack of coffee.

Temporary solved

Solution
Used command chcon -Rv --type=httpd_sys_rw_content_t ./ inside grav installion folder.

Reference: https://github.com/getgrav/grav/issues/912

last edited 03/25/19 by Michael

Suggested topics

Topic Participants Replies Views Activity
Installation & Hosting · by DrPen, 6 days ago
4 117 4 days ago
Installation & Hosting · by vollstock, 3 weeks ago
3 221 3 weeks ago
Installation & Hosting · by David, 7 years ago
3 3508 1 month ago
Installation & Hosting · by David Meissner, 1 month ago
3 345 1 month ago
Installation & Hosting · by David Meissner, 1 month ago
0 269 1 month ago