Skip to content
Grav 2.0 is officially stable. Read the announcement →
Installation & Hosting

Permission error, cache/doctrine is not writable

Started by Michael 7 years ago · 1 replies · 2386 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 antoinep, 1 month ago
8 603 1 month ago
Installation & Hosting · by Jürgen Dietrich, 8 months ago
0 370 8 months ago
Installation & Hosting · by rappluk, 9 months ago
0 421 9 months ago
Installation & Hosting · by N, 1 year ago
3 350 1 year ago
Installation & Hosting · by Youle, 1 year ago
1 279 1 year ago