1833159 Members
2922 Online
110051 Solutions
New Discussion

Port 80 Problem

 
Shem_1
Occasional Contributor

Port 80 Problem

How do I check if Port 80 on my server is working? If it is not working how do I fix it? I was working fine previously.
Port 80 on HP-UX 11.0
10 REPLIES 10
Zafar A. Mohammed_1
Trusted Contributor

Re: Port 80 Problem

Port 80 is usually used for Internet. You can check with what service is assign to it in /etc/services file.

Thanks
Zafar
U.SivaKumar_2
Honored Contributor

Re: Port 80 Problem

Hi,

To check whether port 80 is open .

#netstat -an | grep -i listen | grep 80

It the output is somewhat like this then the web server is running in port 80

0.0.0.0:80 LISTEN

regards,
U.SivaKumar
Innovations are made when conventions are broken
Zafar A. Mohammed_1
Trusted Contributor

Re: Port 80 Problem

Yes, you can check with netstat command.

Thanks
Zafar
Shem_1
Occasional Contributor

Re: Port 80 Problem

I tried the grep thingy but there was no response. I guess port 80 is not working. How do i go round fxing this problem?

regards
shem
Port 80 on HP-UX 11.0
U.SivaKumar_2
Honored Contributor

Re: Port 80 Problem

Hi,

What is the webserver you are running ?

apache ?

#httpd

regards,

U.SivaKumar
Innovations are made when conventions are broken
Shem_1
Occasional Contributor

Re: Port 80 Problem

Sivakumar,

I am running Netscape Enterprise Server 4.0

regards
shem
Port 80 on HP-UX 11.0
U.SivaKumar_2
Honored Contributor

Re: Port 80 Problem

Hi,

Have to started the netscape server ?

regards,

U.SivaKumar
Innovations are made when conventions are broken
Michael Steele_2
Honored Contributor

Re: Port 80 Problem

(* I wasn't going to respond to this because of 26 replies, little did I know that Zafar was inundated with pop up windows. :-) *)

You can also use 'lsof' to investigate port 80.

lsof -i tcp:80
lsof -i udp:80

This will give you an idea of what application processes are bound to port 80.
Support Fatherhood - Stop Family Law
Ryan Green
Valued Contributor

Re: Port 80 Problem

Please note that if you have port 80 assigned to http in /etc/services then you will need to grep for http and not 80.

netstat -a | grep http

ryan
Geoff Wild
Honored Contributor

Re: Port 80 Problem

Yes, the
netstat -a | grep http
will do it for you - also, a simple way to check a server remotely - is telnet to port 80:

telnet yourserver 80

Connected to yourserver.
Escape character is '^]'.

That means there is there is a webserver running on port 80 (ok - maybe not - as someone could use port 80 for something else - but that would be rare).

Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.