Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Permission error, cache/doctrine is not writable

Started by Michael 8 years ago · 1 replies · 2669 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 motorambler, 1 month ago
9 681 3 weeks ago
Installation & Hosting · by jeremycherfas, 1 month ago
1 336 1 month ago
Installation & Hosting · by antoinep, 4 months ago
8 1162 4 months ago
Installation & Hosting · by Jürgen Dietrich, 10 months ago
0 803 10 months ago
Installation & Hosting · by rappluk, 12 months ago
0 836 12 months ago