Re: [EMAIL PROTECTED] Why wont apache start with this httpd.conf?
On Thu, Oct 13, 2005 at 03:38:22PM +0200, Søren Neigaard wrote: I have a strange problem on Fedora Core 4. I have edited my httpd.conf, and now apache will not start when i use the /etc/init.d/httpd script, but if do a configtest it says ok, and if i start apache manually with /usr/sbin/httpd it allso works just fine. This is an SELinux issue. In FC4, SELinux policy is only applied if httpd is started via the init script. You'd have to correctly label the docroots outside /var/www so that the SELinux policy will allow access; see the following guides for more information: http://fedora.redhat.com/docs/selinux-apache-fc3/ http://fedora.redhat.com/docs/selinux-faq-fc3/ e.g. something like this should work: # chcon -R -t httpd_sys_content_t /home/www/ ... VirtualHost 192.168.0.253 DocumentRoot /home/www/html /VirtualHost Regards, joe - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Why wont apache start with this httpd.conf?
On 10/13/05, Søren Neigaard [EMAIL PROTECTED] wrote: Hi I have a strange problem on Fedora Core 4. I have edited my httpd.conf, and now apache will not start when i use the /etc/init.d/httpd script, but if do a configtest it says ok, and if i start apache manually with /usr/sbin/httpd it allso works just fine. I still have the original httpd.conf, and if i revert to that the /etc/init.d/httpd script works fine. To me it looks like the /etc/init.d/httpd does some checking on my httpd.conf before it attempts to start apache, and that check fails, but why? There is nothing in any logfiles. /etc/init.d/httpd is a fedora/redhat script; it does not come from apache. So if you are having a problem with that script, you should probably talk to redhat. We have no way of knowing what is going on in there. Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Why wont apache start with this httpd.conf?
Joshua Slive wrote: On 10/13/05, Søren Neigaard [EMAIL PROTECTED] wrote: Hi I have a strange problem on Fedora Core 4. I have edited my httpd.conf, and now apache will not start when i use the /etc/init.d/httpd script, but if do a configtest it says ok, and if i start apache manually with /usr/sbin/httpd it allso works just fine. I still have the original httpd.conf, and if i revert to that the /etc/init.d/httpd script works fine. To me it looks like the /etc/init.d/httpd does some checking on my httpd.conf before it attempts to start apache, and that check fails, but why? There is nothing in any logfiles. /etc/init.d/httpd is a fedora/redhat script; it does not come from apache. So if you are having a problem with that script, you should probably talk to redhat. We have no way of knowing what is going on in there. Joshua. Damn i was afraid of that... /Søren - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]