Posts: 39
Threads: 10
Joined: May 2016
Hi I am trying to install this onto my server that uses centos7. I have downloaded, chmod 777 and ftp'ed the folder onto my server, then proceeded to error, everything is for now 777 permission in the getsimple folder. Now, when I proceed to install I get the error:
Unable to continue: Unable to write the configuration file. CHMOD 755 or 777 the /data, /backups folders & sub-folders and retry.
and Folder Permissions Error - Not Writable
everything else is green and OK.
Why is this showing permission issues when everything is 777?
Posts: 1,247
Threads: 82
Joined: Feb 2011
Posts: 6,266
Threads: 181
Joined: Sep 2011
Did you check error logs?
could be that chmod is not allowed, or that safemode or some other php user not matching file ownership problem.
chown ?
Posts: 39
Threads: 10
Joined: May 2016
(2016-06-03, 00:19:13)shawn_a Wrote: Did you check error logs?
could be that chmod is not allowed, or that safemode or some other php user not matching file ownership problem.
chown ?
Sorry shawn_a, I am only attempting to install and have no error log folder, and the folder is currently under my users ownership.
Posts: 39
Threads: 10
Joined: May 2016
datiswous i have checked that thread and can confirm no safe mode turned on in php.
Posts: 6,266
Threads: 181
Joined: Sep 2011
Posts: 39
Threads: 10
Joined: May 2016
(2016-06-03, 00:48:57)shawn_a Wrote: You have host error logs
Oppps I had an idiotic moment of course, and guess what? its my good old uncle selinux:
Jun 2 17:16:28 localhost setroubleshoot: SELinux is preventing /usr/sbin/httpd from setattr access on the directory data. For complete SELinux messages. run sealert -l 47c75be1-7159-4c11-9615-331395c0de6b
Jun 2 17:16:28 localhost python: SELinux is preventing /usr/sbin/httpd from setattr access on the directory data.#012#012***** Plugin httpd_write_content (92.2 confidence) suggests ***************#012#012If you want to allow httpd to have setattr access on the data directory#012Then you need to change the label on 'data'#012Do#012# semanage fcontext -a -t httpd_sys_rw_content_t 'data'#012# restorecon -v 'data'#012#012***** Plugin catchall_boolean (7.83 confidence) suggests ******************#012#012If you want to allow httpd to unified#012Then you must tell SELinux about this by enabling the 'httpd_unified' boolean.#012You can read 'None' man page for more details.#012Do#012setsebool -P httpd_unified 1#012#012***** Plugin catchall (1.41 confidence) suggests **************************#012#012If you believe that httpd should be allowed setattr access on the data directory by default.#012Then you should report this as a bug.#012You can generate a local policy module to allow this access.#012Do#012allow this access for now by executing:#012# grep httpd /var/log/audit/audit.log | audit2allow -M mypol#012# semodule -i mypol.pp#012
Posts: 39
Threads: 10
Joined: May 2016
Solved via :
chcon -R -t httpd_sys_rw_content_t /path/to/directory