[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] Web Server problem



Rajesh Fowkar wrote:
> 
> Hi Satya,
> 
> > 1)checking to see if your stack is up:
> >  Is the 192.somthing address set on your ethernet card ?
> 
> I don't have any Ethernet Card on my PC. It's a standalone machine.
> 
> > can you ping localhost.
> 
> When I do ping localhost or ping rajesh.com or ping localhost.localdomain
> I get the following message :
> 
> connect: Network is unreachable
> 
> The output of netstat -a | grep LISTEN on my machine is as follows :
> tcp        0      0 *:6000                  *:*                     LISTEN
> tcp        0      0 *:postgres              *:*                     LISTEN
> tcp        0      0 *:www                   *:*                     LISTEN
> tcp        0      0 *:smtp                  *:*                     LISTEN
> tcp        0      0 *:printer               *:*                     LISTEN
> tcp        0      0 *:linuxconf             *:*                     LISTEN
> tcp        0      0 *:finger                *:*                     LISTEN
> tcp        0      0 *:login                 *:*                     LISTEN
> tcp        0      0 *:shell                 *:*                     LISTEN
> tcp        0      0 *:telnet                *:*                     LISTEN
> tcp        0      0 *:ftp                   *:*                     LISTEN
> tcp        0      0 *:auth                  *:*                     LISTEN
> tcp        0      0 *:sunrpc                *:*                     LISTEN
> unix  0      [ ACC ]     STREAM     LISTENING     1668   /tmp/x11amp_rajesh.0
> unix  0      [ ACC ]     STREAM     LISTENING     450    /tmp/.font-unix/fs-1
> unix  0      [ ACC ]     STREAM     LISTENING     429    /tmp/.s.PGSQL.5432
> unix  0      [ ACC ]     STREAM     LISTENING     326    /dev/printer
> unix  0      [ ACC ]     STREAM     LISTENING     560    /tmp/.X11-unix/X0
> unix  0      [ ACC ]     STREAM     LISTENING     651    /tmp//kio_500_632rajesh.com_0
> unix  0      [ ACC ]     STREAM     LISTENING     653    /tmp//kfm_500_632rajesh.com_0
> unix  0      [ ACC ]     STREAM     LISTENING     387    /dev/gpmctl
> --------------------------------------------------------------------------------------------------------------------------------------------------------
> Surprising to see that there is no HTTPD in the above list. But when my
> computer is booting linux it is showing Starting httpd:. Strange to find the
> httpd entry missing in the above output.
> 
> One thing I want to mention here is that When I connect to Internet I can
> telnet as well as ping any site. No errors.
> 
> > Are you getting a host not found error from netscape or is it a HTTP error from
> > the webserver
> 
> No such error in netscape I can browse all the sites. This problem is only for
> my machine i.e. whenever I say http://rajesh.com.
> 
> The output of hostname command on my machine is :
> rajesh.com
> 
> The output of dnsdomainname command on my machine is :
> com

I have the following /etc/hosts
127.0.0.1	lvghomepc.visakha	lvghomepc
192.168.1.1	lvghomepc.visakha	lvghomepc
192.168.1.10	dgmpspc.visakha	dgmpspc
first line for localhost. My localhost name is lvghomepc. Its domain is
visakha
second line is meant to use my pc as dialup server. Third line is for
the client to be connected.

I have /etc/sysconfig/network
NETWORKING=yes
FORWARD_IPV4=false
HOSTNAME=lvghomepc.visakha

[root@lvghomepc /root]# ping lvghomepc
PING lvghomepc.visakha (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.2 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=255 time=0.1 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=255 time=0.0 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=255 time=0.1 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=255 time=0.1 ms
64 bytes from 127.0.0.1: icmp_seq=5 ttl=255 time=0.1 ms
64 bytes from 127.0.0.1: icmp_seq=6 ttl=255 time=0.1 ms
64 bytes from 127.0.0.1: icmp_seq=7 ttl=255 time=0.0 ms
64 bytes from 127.0.0.1: icmp_seq=8 ttl=255 time=0.1 ms
64 bytes from 127.0.0.1: icmp_seq=9 ttl=255 time=0.1 ms
64 bytes from 127.0.0.1: icmp_seq=10 ttl=255 time=0.0 ms
64 bytes from 127.0.0.1: icmp_seq=11 ttl=255 time=0.1 ms
64 bytes from 127.0.0.1: icmp_seq=12 ttl=255 time=0.1 ms

--- lvghomepc.visakha ping statistics ---
13 packets transmitted, 13 packets received, 0% packet loss
round-trip min/avg/max = 0.0/0.0/0.2 ms

I hope this will clarify how to go about it.


-- 
L.V.Gandhi
MECON, 5th Floor, RTC Complex, Visakhapatnam AP 530020 INDIA
http://www.poboxes.com/lvgandhi  lvgandhi@xxxxxxxxxxx, 
lvgandhi@xxxxxxxx,  31882656@xxxxxxxxxxxxxxxxxxx


--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.