Re: Apache Fails to Start - Fedora 5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Well i got the last part fixed. I replaced the httpd.conf file with the one I backed up. Apparently there is some version difference or something else that I don't fully understand.
So I now have httpd running. But when I try to add the virtual hosts to the file and do a /etc/rc.d/init.d/httpd configtest I get this:
[root@xxxx conf]# /etc/rc.d/init.d/httpd configtest
[Fri Sep 07 20:45:23 2007] [warn] NameVirtualHost *:80 has no VirtualHosts
Syntax OK
 
This is what the virtual hosts portion of httpd.conf looks like:
===================================================

NameVirtualHost *:80

<VirtualHost 111.222.333.444>
    ServerAdmin domains@xxxxxxxxxxxxxxxxx
    DocumentRoot /var/www/domain1.com/html
    ServerName domain1.com
    ServerAlias www.domain1.com
</VirtualHost>

<VirtualHost 111.222.333.444>
    ServerAdmin domains@xxxxxxxxxxx
    DocumentRoot /var/www/domain2.com/html
    ServerName domain2.com
    ServerAlias www.domain2.com
</VirtualHost>

================================================

Any idea why it isn't recognizing the Virtual Host info?

TIA

Nate

 



 
On 9/7/07, Alastair Neil <ajneil@xxxxxxxxx> wrote:
selinux is preventing the daemon from opening the error_log file.  You probably have to relabel the file with the httpd_log_t  tcontext.  You could try touching /.relabel and reboot.



On 9/7/07, Nate McLain < natemclain@xxxxxxxxx> wrote:
Im having some problems getting Apache to run.
When I use /etc/rc.d/init.d/httpd start
I get Failed on the process.
When I tail the /var/log/messages file I get:
 
Sep  7 13:12:07 tenacity kernel: audit(1189188727.890:1168): avc:  granted  { execstack } for  pid=20060 comm="monitor.pl" scontext=root:system_r:unconfined_t:s0-s0:c0.c255 tcontext=root:system_r:unconfined_t:s0-s0: c0.c255 tclass=process
Sep  7 13:12:07 tenacity kernel: audit(1189188727.890:1169): avc:  granted  { execmem } for  pid=20060 comm="monitor.pl" scontext=root:system_r:unconfined_t:s0-s0:c0.c255 tcontext=root:system_r:unconfined_t:s0-s0: c0.c255 tclass=process
Sep  7 13:14:07 tenacity kernel: audit(1189188847.642:1170): avc:  granted  { execstack } for  pid=20085 comm="monitor.pl" scontext=root:system_r:unconfined_t:s0-s0:c0.c255 tcontext=root:system_r:unconfined_t:s0-s0: c0.c255 tclass=process
Sep  7 13:14:07 tenacity kernel: audit(1189188847.642:1171): avc:  granted  { execmem } for  pid=20085 comm="monitor.pl" scontext=root:system_r:unconfined_t:s0-s0:c0.c255 tcontext=root:system_r:unconfined_t:s0-s0: c0.c255 tclass=process
Sep  7 13:14:29 tenacity kernel: audit(1189188869.627:1172): avc:  denied  { search } for  pid=20108 comm="httpd" name="www" dev=dm-0 ino=1798758 scontext=root:system_r:httpd_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=dir
Sep  7 13:14:29 tenacity kernel: audit(1189188869.627:1173): avc:  denied  { getattr } for  pid=20108 comm="httpd" name="html" dev=dm-0 ino=2878402 scontext=root:system_r:httpd_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=dir
Sep  7 13:14:29 tenacity kernel: audit(1189188869.703:1174): avc:  denied  { append } for  pid=20108 comm="httpd" name="error_log" dev=dm-0 ino=1807242 scontext=root:system_r:httpd_t:s0 tcontext=root:object_r:file_t:s0 tclass=file
 
Can anyone shed any light on this situation so that I might be able to learn how to fix the problem?
 
TIA
 
Nate

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list


--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux