Just in case I ever need to be identified by dental records:
backups
19 Comments
Tags: firstperson, parts, photography, teeth
Current Music: Warsaw -- Living in the Ice Age ♬
selinux and apache
Dear Lazyweb,
Apache won't start automatically on some (but not all) of my FC4 machines. I think this probably has something to do with SElinux?
In the default configuration, "service httpd start" doesn't seem to work at all: this is apparently because the init.d script has the wrong attributes:
- % ls -lZ /etc/rc.d/init.d/httpd
-rwxr-xr-x root root system_u:object_r:initrc_exec_t /etc/rc.d/init.d/httpd
% service httpd start
Starting httpd: FAILED
- % chcon root:object_r:etc_t /etc/rc.d/init.d/httpd
% service httpd start
Starting httpd: OK
I guess I could just turn off SElinux, but that doesn't seem like such a good idea. These machines are all very minimal, default-ish installations.
Any suggestions?