LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot start Web Server on port 80 - Linux Mandrake 9.2 (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-start-web-server-on-port-80-linux-mandrake-9-2-a-333184/)

sptb 06-13-2005 02:41 PM

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

huibert.alblas 06-13-2005 02:59 PM

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.

sptb 06-14-2005 01:44 PM

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.

sptb 06-14-2005 01:44 PM

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.

huibert.alblas 06-14-2005 02:34 PM

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 ?


All times are GMT -5. The time now is 02:47 AM.