[plug] Re: Localhost problems

Harry harrymc at decisions-and-designs.com.au
Fri Oct 8 20:33:37 WST 2004


On Thu, 7 Oct 2004 20:21:07 +0800 "Joong Cho" <joongcho at westnet.com.au> wrote:

> Hey,
> 
> My ps aux | grep apache shows this:
> 
> root     377 0.0 1.7 17260 1392 ? Ss 07:18 0:00 /usr/sbin/apache -k restart
> www-data 392 0.0 1.7 17260 1408 ? S  07:18 0:00 /usr/sbin/apache -k restart
> www-data 393 0.0 1.7 17260 1408 ? S  07:18 0:00 /usr/sbin/apache -k restart
> www-data 394 0.0 1.7 17260 1408 ? S  07:18 0:00 /usr/sbin/apache -k restart
> www-data 395 0.0 1.7 17260 1408 ? S  07:18 0:00 /usr/sbin/apache -k restart
> www-data 396 0.0 1.7 17260 1408 ? S  07:18 0:00 /usr/sbin/apache -k restart
> root                "     "     0.1                                R+
> 
> Is this meant to be right?

Well, a
# man ps
is the first step on the road to understanding what you are seeing :-)
 
> And could this also be causing my problems,
>
> "make_sock: could not bind to address 0.0.0.0: 80
> no listening sockets available"

A forehead slapping realisation has slapped. I think you are missing lo
(local loopback). Do:

$ ifconfig
eth0      Link encap:Ethernet  HWaddr FE:ED:C0:DE:BE:EF  
          inet addr:192.168.sum.ink Bcast:192.168.0h.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:16028 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18101 errors:0 dropped:0 overruns:0 carrier:0
          collisions:44 txqueuelen:100 
          RX bytes:3762390 (3.5 MiB)  TX bytes:5161692 (4.9 MiB)
          Interrupt:11 Base address:0xec00 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:4180 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4180 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:920923 (899.3 KiB)  TX bytes:920923 (899.3 KiB)

No lo on yours ? Ok, if you have twiddled with /etc/hosts then PutThisRight:

127.0.0.1       localhost

at the top somewhere.

or /etc/network/interfaces twiddling needs to be PutRight:

# The loopback interface
auto lo
iface lo inet loopback
 
restored somewhere. Then, for want of a better way, use:

# ifup lo

Fix up or scratch chin until you see the lo listed using ifconfig.

I remember you explained previously you were trying to give the machine
a public IP address. Make things happen locally first before expanding the
enterprise online.

cu
Harry

ps I'll know progress when your header offers up an alternative to this:
X-Mailer: Microsoft Outlook Express 6.00.2800.1409
;-)

-- 
Are you a computer angel?	http://www.computerangels.org.au/



More information about the plug mailing list