[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apache



Sorry to follow-up my own post, I forgot to say that if you use
/etc/init.d/network, you will have to execute this script in order to
get a network... Better change /etc/network/interfaces.

Andre Berger <uzscd5@uni-bonn.de> writes:

> Be sure the loopback is enabled.
> 
> Either put the lines
> 	#! /bin/sh
> 	ifconfig lo 127.0.0.1
> into /etc/init.d/network (the pre-2.2 style)
> 
> or the make sure the line
> 	iface lo inet loopback
> is not commented out in /etc/network/interfaces.
> 
> 
> /etc/hosts should contain:
> 	127.0.0.1       localhost       yourMachine.domain.com
> 	xxx.xxx.xxx.xxx	  yourMachine.domain.com   yourMachine
> You can add
> 	yyy.yyy.yyy.yyy   anotherMachine.another.dom   anotherMachine
> and can 'ssh anotherMachine' as shortcut to 'ssh
> anotherMachine.another.dom' etc.
> 
> /etc/hostname would be:
> 	yourMachine
> 
> 
> Restart the machine once the settings are correct.
> 
> Andre
> 
> 
> Joshua Holland <jholland3@uswest.net> writes:
> 
> > [1  <text/plain; ISO-8859-1 (quoted-printable)>]
> > I'm trying to learn apache.  When I run it I get
> > 'Apache: Cannot determine local hostname'
> > Does the hostname have to be set up with my service provider or something?
> > I set the ServerName directive to my hostname.domain.com (hostname is 
> > what's in my /etc/hostname file, and I have a domain name set up).
> > Are there certain criteria for what the hostname in /etc/hostname can be?
> > And what is /etc/hosts?
> > Help please.
> > 
> > Thank you.
> > [2  <text/html; us-ascii (7bit)>]



Reply to: