Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to install gms3.3.9 onto a centos 7 server
#1
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? Huh Huh
Reply
#2
See also this topic: http://get-simple.info/forums/showthread.php?tid=8253
Reply
#3
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 ?
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#4
(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. 
Reply
#5
datiswous i have checked that thread and can confirm no safe mode turned on in php.
Reply
#6
You have host error logs
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#7
(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
Reply
#8
Solved via :

chcon -R -t httpd_sys_rw_content_t /path/to/directory
Reply




Users browsing this thread: 1 Guest(s)