LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-27-2006, 04:19 PM   #1
ekdya
Member
 
Registered: Oct 2003
Posts: 280

Rep: Reputation: 30
listening on port 80, why


Hi

it looks like my system is listening on port 80
$ netstat -an | grep -i listen
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
...

but port 80 is for web servers, I am not a web server, so I looked for
how it was opened in order to stop it, I happen to be in runlevel 2,
and in my rc2.d there is no apache daemon which could initiate this
listening service, as I could tell from the command

:/etc/rc2.d$ grep -FHrn 80 .
./S99xdm:114:# vim:set ai et sts=2 sw=2 tw=80:
./S20xfs:156:# vim:set ai et sts=2 sw=2 tw=80:

what should I do in this case?

thanks
 
Old 09-27-2006, 04:34 PM   #2
i_grok
Member
 
Registered: Jun 2006
Location: Massachusetts
Distribution: Gentoo
Posts: 79

Rep: Reputation: 16
You can find what process has each port open:
Code:
netstat -pan | grep -i listen
 
Old 09-27-2006, 05:13 PM   #3
ekdya
Member
 
Registered: Oct 2003
Posts: 280

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by i_grok
You can find what process has each port open:
Code:
netstat -pan | grep -i listen
$ sudo netstat -pan | grep -i listen
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 4507/apache

is it safe to purge apache, I use dwww to view system docs in html, do I need apache for that?

another thing, what is this 4507 before apache?

thanks
 
Old 09-27-2006, 06:02 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Quote:
is it safe to purge apache, I use dwww to view system docs in html, do I need apache for that?
You do not need apache to view static html pages on your local filesystem. Just open them in any browser.

Quote:
another thing, what is this 4507 before apache?
That would be the PID number: Process IDentification...run 'ps aux' to see lots of PIDs, they are in column 2.
 
Old 09-27-2006, 06:24 PM   #5
ekdya
Member
 
Registered: Oct 2003
Posts: 280

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by bulliver
You do not need apache to view static html pages on your local filesystem. Just open them in any browser.
:~$ sudo apt-get --purge remove apache
Password:
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED
apache* dwww*

I use dwww to search for docs on my system. yes I don't need it to view the html doc but to find them is the thing.
 
Old 09-27-2006, 06:50 PM   #6
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Well then keep it...or find something else to find/organize your docs.

You can use your firewall to keep people from the outside world from accessing your webserver, by blocking port 80...in fact you should block all ports except those you want/need open, but that is an entirely differnt issue.
 
  


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
Cannot create listening port Braynid Linux - Newbie 3 06-06-2006 03:33 PM
2 servers listening on port 80 possible? scrawl Linux - Software 1 03-13-2005 05:06 PM
Listening on a serial port calebsg Linux - General 2 10-13-2004 10:45 AM
ssh listening on port 22 sharpie Linux - Security 9 06-08-2004 03:28 PM
sendmail listening on port 25 dskny Linux - Software 14 08-12-2003 06:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:05 AM.

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
Open Source Consulting | Domain Registration