Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Permission error, cache/doctrine is not writable

Started by Michael 7 years ago · 1 replies · 2503 views
7 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.

7 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 jeremycherfas, 1 week ago
1 111 7 days ago
Installation & Hosting · by motorambler, 3 weeks ago
8 392 2 weeks ago
Installation & Hosting · by antoinep, 3 months ago
8 963 3 months ago
Installation & Hosting · by Jürgen Dietrich, 10 months ago
0 623 10 months ago
Installation & Hosting · by rappluk, 11 months ago
0 667 11 months ago