LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-13-2005, 02:41 PM   #1
sptb
LQ Newbie
 
Registered: Jun 2005
Location: Eastbourne
Distribution: Mandrake 9.2
Posts: 3

Rep: Reputation: 0
Cannot start Web Server on port 80 - Linux Mandrake 9.2


I am trying to get a web server running on port 80 on Linux Mandrake 9.2. I have tried various web servers and I get the same results. The error message I keep getting is "There's a listening error on port 80". Just to test the web servers, I changed the port to 8080 which works fine. The first thing I checked was the firewall. Unfortunately the problem is still occuring even though the firewall is disabled.

Could there be something else running on port 80? If so how do I find out what is running on this port? I searched the net for ways to do this and I found a few sites which gave me a command to run from Konsole. However if this is correct then it would appear that nothing is running on port 80.

If anyone can possibley help on this I would be extremely grateful. I'm no stranger to computers but have never really used Linux properly before.

Many thanks
 
Old 06-13-2005, 02:59 PM   #2
huibert.alblas
Member
 
Registered: Jan 2004
Location: Duesseldorf /Germany
Distribution: Gentoo amd64 / Debian
Posts: 226

Rep: Reputation: 30
Do this:

Code:
fuser -n tcp 80
This should list something like:
"80/tcp: 9456"
Here 9456 is the PID of the process who occupies port 80.
Now do:
Code:
ps ax | grep 9456
And there should be the programm you are looking for.
It might be that the "grep 9456" process is listed also ,
that's because you did a simple grep through the contents of the output of "ps ax"

This should get you going.
 
Old 06-14-2005, 01:44 PM   #3
sptb
LQ Newbie
 
Registered: Jun 2005
Location: Eastbourne
Distribution: Mandrake 9.2
Posts: 3

Original Poster
Rep: Reputation: 0
fuser command not found

Thanks for your help. Unfortunately it didn't work. When I typed in fuser -n tcp 80 I received the following error message from Konsole;

fuser: command not found.

I also tried this from root but I didn't get any message back from the command this time.

Thanks anyway. I'll keep on looking.
 
Old 06-14-2005, 01:44 PM   #4
sptb
LQ Newbie
 
Registered: Jun 2005
Location: Eastbourne
Distribution: Mandrake 9.2
Posts: 3

Original Poster
Rep: Reputation: 0
fuser command not found

Thanks for your help. Unfortunately it didn't work. When I typed in fuser -n tcp 80 I received the following error message from Konsole;

fuser: command not found.

I also tried this from root but I didn't get any message back from the command this time.

Thanks anyway. I'll keep on looking.
 
Old 06-14-2005, 02:34 PM   #5
huibert.alblas
Member
 
Registered: Jan 2004
Location: Duesseldorf /Germany
Distribution: Gentoo amd64 / Debian
Posts: 226

Rep: Reputation: 30
fuser should be run as root.
If you did not get anything back from the command,
then fuser could find any process ocupying port 80.

As another test try:
Code:
telnet localhost 80
You should get a "connection refused"
If you can connect, and a cursor sits blinking and waiting in your terminal,
you might start to worry, because some proccess is running a listening socket on port 80, and root is not able to find out what PID it has.
(Might be a rootkit, worm or someting like that)

If you get a connection refused, "everything" is OK, and you should look further into the webserver config.

What webserver are you trying to use, what configuration ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
port forwarding via web server nerd32768 Linux - Networking 1 09-21-2005 01:21 PM
how to do a http network install from a web server not on port 80 lothario Linux - Software 0 05-27-2004 04:25 AM
stealth port 80 while running apache web server? TheOneAndOnlySM Linux - General 3 04-24-2004 08:52 AM
Forward port port 80 to lan web server dulaus Linux - Networking 9 10-04-2002 03:45 AM
Help: Want Linux Web server BEHIND NAT using port mapping spadesmaster Linux - Networking 0 12-26-2001 04:02 PM


All times are GMT -5. The time now is 06:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration