Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache 2.0 Broken a.ka, Self Inflicted Wound.. Need Help In A Bad Way!

Status
Not open for further replies.

ih8windoz

Technical User
Oct 6, 2003
2
US
Hi all;

I have a unique problem with Apache 2.0, running on RedHat 9.0.

Apache was functional on the standard http side, I was setting up a ssl website using webmin when it broke (Webmin Version 1.100 on labels.labeltechnique.com (Redhat Linux 9.0)).

I am recieving the following message when I run "apachectl graceful" or "apachectl start"


httpd not running, trying to start
(98)Address already in use: make_sock: could not bind to address 68.225.120.130:443
no listening sockets available, shutting down



Now when I saw this message I thought that there was still an Apache process running or there was a double entry in the conf file for a Listening port, but there is not. I then deleted the modified conf file and copied the original back where it was, but that didn't help. Next I rebooted the server, that didn't help.

Now I thought that just maybe there wa another daemon for what ever reason was listening on port 80 or 443 so I ran nmap against localhost and against the FQDN, the results were...

Starting nmap V. 3.00 ( )
Interesting ports on labels.labeltechnique.com (68.225.120.130):
(The 1594 ports scanned but not shown below are in state: closed)
Port State Service
22/tcp open ssh
25/tcp open smtp
53/tcp open domain
110/tcp open pop-3
111/tcp open sunrpc
995/tcp open pop3s
10000/tcp open snet-sensor-mgmt



Starting nmap V. 3.00 ( )
Interesting ports on localhost (127.0.0.1):
(The 1592 ports scanned but not shown below are in state: closed)
Port State Service
22/tcp open ssh
25/tcp open smtp
53/tcp open domain
110/tcp open pop-3
111/tcp open sunrpc
783/tcp open hp-alarm-mgr
953/tcp open rndc
995/tcp open pop3s
10000/tcp open snet-sensor-mgmt



As you can see there is nothing listening on port 80 or 443, I even tried telneting to the ports and they were not active.

I have attempted to telnet to ports 80 and 443, I looked at netstat, lsof, and ps -ax and ports 80 and 443 are not in use.

Next I reinstalled the following rpm's...


/root/httpd-2.0.40-21.5.i386.rpm (1058940 bytes)
/root/httpd-devel-2.0.40-21.5.i386.rpm (260960 bytes)
/root/httpd-manual-2.0.40-21.5.i386.rpm (832806 bytes)
/root/mod_ssl-2.0.40-21.5.i386.rpm (78491 bytes)


This didn't help either. I am missing something here and I'm not sure what it is, any help would be appreciated.

Thanks in advance
 
I have to ask :

Are you starting apache as root? Only root can open < 1024 port levels. Maybe your webmin changed it to some other user.
 
I think the problem has to be with ssl vhosts cannot share one ip address. You may want to consider using ip aliasing which assigning more than one ip to one interface such as, eth0:1, eth0:2 and so on. You will then need to change to ip based addressing for your vhosts.
 
NameVirtualHost directive doesn't work with name based vhosts?

 
I've been healed!!!!

First I would like to thank everyone for their response and your time.

Now for the fix, there is a file called ssl.conf (which I had forgotten about) which resides under /etc/httpd/conf.d/, it had two entries that pointed to port 443.
I just removed the one that pointed to the IP address and it worked fine.

Now the thing that created the problem was in fact webmin, they have a patch out for this version of webmin that addresses this specific issue.

Hope this will help others and thanks again for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top