Author Topic: Directories not writable...  (Read 1468 times)

Offline starion

  • Jr. Member
  • **
  • Posts: 31
Directories not writable...
« on: June 11, 2015, 05:55:32 PM »
I have searched the forum and found many references to fixing the /temp and /logs directories to be writable.

I have confirmed that httpd is running as apache:apache, setting the directories to 777 and chowning them to apache:apache still doesn't correct the error in the installer.

Putting SELinux into permissive mode temporarily does solve the problem, so I'm sure it's related.  Further reading on SELinux would indicate that it's because the directories don't have the correct security context maybe?

I'm getting in really deep at this point for my level of noobiness.

Has anyone else solved this?
« Last Edit: June 11, 2015, 06:37:47 PM by starion »

Offline starion

  • Jr. Member
  • **
  • Posts: 31
Re: Directories not writable...
« Reply #1 on: June 11, 2015, 07:38:18 PM »
So here was the solution, and I hope the correct fix without disabling SELinux:

/temp and /logs directories were chown apache:apache and chmod 755.

SELinux context was set on the /temp and /logs directories with this:

chcon -R -t httpd_sys_script_rw_t temp
chcon -R -t httpd_sys_script_rw_t logs

So I guess I answered my own question unless anyone has anything else to add.