From d58ecf3fb277ef461b1646e0238285d26534682e Mon Sep 17 00:00:00 2001 From: JOduMonT Date: Mon, 26 Feb 2018 03:55:43 +0100 Subject: [PATCH] based on my experience and stackexchange at least, it was missing the **./** aka where to apply this *change context* --- pages/11.troubleshooting/05.permissions/docs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/11.troubleshooting/05.permissions/docs.md b/pages/11.troubleshooting/05.permissions/docs.md index 7af2235b4..ea303e963 100644 --- a/pages/11.troubleshooting/05.permissions/docs.md +++ b/pages/11.troubleshooting/05.permissions/docs.md @@ -77,10 +77,10 @@ In general, Grav can be installed in a root level folder of an existing WordPres If the above suggestions still do not work, run -`chcon -Rv --type=httpd_sys_rw_content_t` into the Grav root folder. +`chcon -Rv system_u:object_r:httpd_sys_rw_content_t:s0 ./` into the Grav root folder. References: - +- [https://unix.stackexchange.com/questions/337704/selinux-is-preventing-nginx-from-writing-via-php-fpm](https://unix.stackexchange.com/questions/337704/selinux-is-preventing-nginx-from-writing-via-php-fpm) - [https://github.com/getgrav/grav/issues/912#issuecomment-227627196](https://github.com/getgrav/grav/issues/912#issuecomment-227627196) - [http://stopdisablingselinux.com](http://stopdisablingselinux.com/) - [http://stackoverflow.com/questions/28786047/failed-to-open-stream-on-file-put-contents-in-php-on-centos-7](http://stackoverflow.com/questions/28786047/failed-to-open-stream-on-file-put-contents-in-php-on-centos-7)