backups

Just in case I ever need to be identified by dental records:

Tags: , , ,

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
If I change it, then it starts working when run manually:

    % chcon root:object_r:etc_t /etc/rc.d/init.d/httpd
    % service httpd start
    Starting httpd: OK
But the next time I reboot, still no httpd. I have to start it manually. Nothing obvious in dmesg, /var/log/messages, /var/log/secure, or /var/log/httpd/error_log.

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?

Tags: , , ,