Apache/exim problem

sspt

Verified User
Joined
Oct 27, 2005
Messages
57
/var/log/messages
Oct 29 22:11:01 host httpd: httpd shutdown succeeded
Oct 29 22:11:01 host httpd: [Sat Oct 29 22:11:01 2005] [warn] NameVirtualHost 64.92.174.59:80 has no VirtualHosts
Oct 29 22:11:01 host httpd: [Sat Oct 29 22:11:01 2005] [warn] NameVirtualHost 64.92.174.59:443 has no VirtualHosts
Oct 29 22:11:01 host httpd: [Sat Oct 29 22:11:01 2005] [warn] NameVirtualHost 64.92.174.62:80 has no VirtualHosts
Oct 29 22:11:01 host httpd: [Sat Oct 29 22:11:01 2005] [warn] NameVirtualHost 64.92.174.62:443 has no VirtualHosts
Oct 29 22:11:01 host httpd: [Sat Oct 29 22:11:01 2005] [warn] NameVirtualHost 64.92.174.60:80 has no VirtualHosts
Oct 29 22:11:01 host httpd: [Sat Oct 29 22:11:01 2005] [warn] NameVirtualHost 64.92.174.60:443 has no VirtualHosts
Oct 29 22:11:01 host httpd: [Sat Oct 29 22:11:01 2005] [warn] NameVirtualHost 64.92.174.61:80 has no VirtualHosts
Oct 29 22:11:01 host httpd: [Sat Oct 29 22:11:01 2005] [warn] NameVirtualHost 64.92.174.61:443 has no VirtualHosts
Oct 29 22:11:01 host httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
Oct 29 22:11:01 host httpd: no listening sockets available, shutting down

Processes using apache ports:
[root@host log]# netstat -lnp | grep 443
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 31677/exim
[root@host log]# netstat -lnp | grep 80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 31677/exim

SeLinux (permissive mode)


What can be causing it?

Edit: I'm using Apache 2.0.55 and PHP 4.4.0

Thanks in advance,
 
Last edited:
Hello,

That is very very strange. It says exim is listening on the apache ports. What happens when you type:
Code:
telnet localhost 80
Either way, that has to be some sort of process/port listing bug.. I don't see any way that exim just happens to snatch up the ports. What OS are you using?

John
 
I'm using CentOS 4.1 (64bit).
I've changed the apache config to bind into my primary ip instead of 0.0.0.0 and now it aren't crashing (yet).
netstat -lnp | grep 80
warning, got duplicate tcp line.
warning, got duplicate tcp line.
tcp 0 0 xx.xx.xx.xx:80 0.0.0.0:* LISTEN 2961/httpd
Two seconds latter
netstat -lnp | grep 80
tcp 0 0 xx.xx.xx.xx:80 0.0.0.0:* LISTEN 2961/httpd

What means the duplicate tcp line?

Thanks
 
sspt said:
Processes using apache ports:

SeLinux (permissive mode)
Is anyone else using selinux? We keep it turned off because we haven't done extensive testing yet.

Jeff
 
SELINUX config file:
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=permissive
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
/var/log/secure
I've some lines like that (Mysql only, none apache related)
Oct 30 18:11:28 host kernel: audit(1130695888.176:354): avc: denied { setattr } for pid=13260 comm="mysqld" name="u_online.TMD" scontext=root:system_r:mysqld_t tcontext=root:object_r:var_lib_t tclass=file
 
Back
Top