FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

LinkBack Thread Tools
Old 11-25-2007, 04:31 AM
Jordan Woehr
Default Issues pinging localhost and starting apache.

Mark Shields wrote:
On Nov 22, 2007 7:45 PM, Jordan Woehr <jwoehr1@telus.net
<mailto:jwoehr1@telus.net>> wrote:

*I first encounter this problem while trying to setup Apache for my
machine. I only want it to run locally on my network. First issue,
I try
to start Apache and have it listen to port 80 but it won't start with
the error:*

apache2ctl start
* Caching service dependencies
... [ ok ]
* Starting apache2 ...
(98)Address already in use: make_sock: could not bind to address <>
no listening sockets available, shutting down
Unable to open logs

*The only lines I have added to httpd.conf are as follows:
ServerName localhost
Listen 80

*Having Apache listen on port 8080 instead results in it starting
Thing is, I'm pretty sure nothing is listening on port 80.*

netstat -an | grep :80
tcp 0 0
tcp 0 0
tcp 0 0
tcp 0 0

*I was not happy with Apache not starting listening to port 80 but I
started it on 8080 instead. Tried going to localhost:8080 in
but received an unable to establish connection error.

From there I went to my hosts file which is as follows

* <> localhost

*Tried scanning <> with nmap:

*nmap -sT -PT <>

Starting Nmap 4.20 ( http://insecure.org <http://insecure.org> )
at 2007-11-22 17:11 MST
Note: Host seems down. If it is really up, but blocking our ping
try -P0
Nmap finished: 1 IP address (0 hosts up) scanned in 3.342 seconds

*And now a ping
ping -c 5 localhost
PING localhost ( <>) 56(84) bytes of data.
From <> icmp_seq=1 Destination Net
From <> icmp_seq=3 Destination Net
From <> icmp_seq=4 Destination Net
From <> icmp_seq=5 Destination Net

--- localhost ping statistics ---
5 packets transmitted, 0 received, +4 errors, 100% packet loss,
time 4000ms

*localhost seems to be resolved properly to
<> but what I don't
understand is where the <> comes from.
This computer's ip on the
network is <> (static) and my ip
on the internet is
77.something.something.something (was when I did the ping at least).

I hope the above is enough information. Suggestions on why Apache
start listening on port 80 and why I can't connect to localhost:8080
from firefox when Apache is running are welcome.

gentoo-user@gentoo.org <mailto:gentoo-user@gentoo.org> mailing list

This may sound like a silly question, but is loopback running

- Mark Shields
This was exactly the problem. I switched from the traditional startup
scripts to NetworkManager a while back and I guess NM doesn't handle lo
by default. Does anyone happen to know if NM handles the loopback
adapter at all?

gentoo-user@gentoo.org mailing list

Thread Tools

All times are GMT. The time now is 12:08 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org