HTTPD can't use port 80, New RH7.3 install

Posted on 2002-06-03
Last Modified: 2012-05-04
Installed RH7.3, minimum (no X) and can't get HTTPD (Apache) to listen to port 80! ERROR_LOG reads:

Address already in use: make_sock: could not bind to address port 80

What is doing this?

Question by:victorus
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 7052432
Run netstat -a | grep 80 or netstat -a | grep http (depending on implementation) to see if there really is someone listening to port 80.

Then, as root, run lsof -i TCP:80 to find the PID and other details of the processes that are using that port.

Cheers - Gavin

Expert Comment

ID: 7052471
You can also do:
"/sbin/service httpd status" to check the status of the server
AND Optionally:
/sbin/service httpd start to start apache
It sounds like you may be trying to start two instances of it.
LVL 51

Expert Comment

ID: 7053387
to complete previous comments:

   netstat -pan|egrep -i '80|http'

not shure if RH's netstat supports -p option, if not you may try:

   netstat -an|egrep -i '80|http'

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.


Author Comment

ID: 7053726
All excellent suggestions, BUT netstat lists nothing running on port 80. "/sbin/service/httpd status" says "httpd dead but subsys locked".

I was wondering if ipchains was in the way, but it doesn't look like it.

And then I was wondering if I could use something like port 3000, but then it does not respond.

The results of the netstat are as follows:

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name  
tcp        0      0  *               LISTEN      683/rpc.statd      
tcp        0      0   *               LISTEN      655/portmap        
tcp        0      0    *               LISTEN      849/sshd            
tcp        0      0  *               LISTEN      923/sendmail: accep
udp        0      0  *                           683/rpc.statd      
udp        0      0   *                           655/portmap        
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node PID/Program name    Path
unix  2      [ ACC ]     STREAM     LISTENING     1543   942/gpm             /dev/gpmctl
unix  8      [ ]         DGRAM                    976    629/syslogd         /dev/log
unix  2      [ ]         DGRAM                    1575   983/crond          
unix  2      [ ]         DGRAM                    1505   923/sendmail: accep
unix  2      [ ]         DGRAM                    1431   882/xinetd          
unix  2      [ ]         DGRAM                    1182   795/apmd            
unix  2      [ ]         DGRAM                    1044   683/rpc.statd      
unix  2      [ ]         DGRAM                    988    634/klogd          

Author Comment

ID: 7053757
!!!! MORE !!!!
Ok, I tweaked around in the httpd.conf file and got the service to run and at least some portion of the service to listen to port 80. Now I have no errors on start up but whien I do a "netstat -pan" I see that both hpptd and portmap are using 80, instead of 111 like before! Is this normal?

And the worst part, I still can't get any browser client on a remote machine to get a response. I CAN ping to it fine. This might be a problem still in the httpd.conf and I am going to tweak around in there a bit more.

Author Comment

ID: 7053771
!!! OOOPS !!!
Take that back about portmap listening to port 80. Just read the wrong line (you know wrapping text and all of that, duh!).

But I still get the message
"Cannot find server or DNS Error"
when I try to reach it with a client.

Am I in the wrong area now? Should I be in the APACHE group?

Any help appreciated,
LVL 51

Expert Comment

ID: 7053791
> "Cannot find server or DNS Error"

You get this message on the client, right?
That has nothing to do with httpd, apache, httpd.conf etc.
Your client simply does not know how to resolve hostnames.

Dou you get a response in your client if you use something like:

or more simple in a shell:

   telnet 80

Author Comment

ID: 7053800
!!! MORE IDEAS !!!

Since I cannot get wu-ftp to work on this machine either I am thinking that sshd is getting in the way. My secure log shows that it is listening on port 22 and receiving signal 15 and terminating.

I am new to the sshd daemon and RH7.3 says that it is supposed to take place of FTP, TELNET, and other protocols. Can you shed some light on this? If I can't use FTP then how is one supposed to communicate via WinPCs?

I know these are a lot of little questions but really, I just would like to get one thing solved that would probably relate to the rest.

Thanks for your patience,

Author Comment

ID: 7053812
To: ahoffmann:
re: Dou you get a response in your client if you use something like:


I DID use this form instead of a domain name. I have not set up the system for a domain as yet and was planning to use it as an IP address only server. Telnet is disabled by default on RH7.3 and I have had LOTS of security problems in the past when it was enabled.

LVL 51

Expert Comment

ID: 7053835 works (according to your previous comment)
So this question got a solution, IMHO.

Author Comment

ID: 7053916
I will be out of the office for the remainder of the week and will be back Friday to pick up where we left off. I will check my e-mails then.

Thanks for all of your help,

Accepted Solution

kannabis earned 50 total points
ID: 7079726
Starting from version 7.1 I believe, Redhat has a built in firewall (using ipchains for some reason).  You might want to check and make sure that it's either disabled totally, or make sure that port 80 is available and not being blocked.


Author Comment

ID: 7080435
B I N G 0 !!!

I disabled ipchains and all works well. I guess I am going to have to bone up on ipchains firewalling in order to configure this properly AND have a firewall.

I wish that RH would be a little clearer on new installation notes and include this little piece of information!

Thanks to all of the people that helped me with this problem.


Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Backup Raspberri Pi over the netowrk to a Windows Share 5 63
How to enable sync between two yum repo? 1 55
Apache module 5 66
Internal CA server 6 93
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Fine Tune your automatic Updates for Ubuntu / Debian
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question