Files not writable on install - SELinux

1 reply [Last post]
Offline
Joined: 2009-07-15
Posts: 8

Hardware description -- server, a resource dream for just playing around
Operating System -- CentOS 5
AMP Stack -- Not sure, I'm away from the system right now
Network Environment -- local network, server & browser on same machine
Package on SourceForge (2.3.1548.tar.gz)

During the install, all of the directories came up as not writable. I changed the permissions as instructed (chmod 777) and hit refresh. Still though the directories weren't writable. I made sure I changed it on the correct directories and that they were set correctly. I finally figured out SELinux was getting in the way, disallowing the webserver to make changes to those files.

To disable it until reboot on CentOS, I issued the command: setenforce 0
http://www.crypt.gen.nz/selinux/disable_selinux.html

The install worked great after that.

Offline
Joined: 2009-04-16
Posts: 89
RE: Files not writable on install - SELinux

"'MattZimmerman' pid='29' dateline='1247673619'" wrote:

I finally figured out SELinux was getting in the way, disallowing the webserver to make changes to those files.

That's interesting. We haven't been testing with SELinux so thanks for the report.

SELinux is tricky to setup with any web-based application. Hopefully at some point, somebody from the project will be able to put together a working SELinux/OpenFISMA system:

http://beginlinux.com/server_training/web-server/976-apache-and-selinux