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 |
Do this:
Code:
fuser -n tcp 80 "80/tcp: 9456" Here 9456 is the PID of the process who occupies port 80. Now do: Code:
ps ax | grep 9456 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. |
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. |
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. |
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 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. |