The way I set it up was I gave me computer name a hostname and a domainname
that wasn't from the Internet, but from internal use.

Edit httpd.conf and search for servername, put your fake hostname dot fake
domain name dot com like (for example) in your httpd.conf

ServerName linuxbox1.network.com

Setup your hostname and domainname with the commands of the same name.

After that restart the httpd

ps -ef | grep httpd

Find the httpd proc with the lowest PID number then run the command

kill -HUP PID

There is also a script in the bin directory for apache called `apachectl` (only
for 1.3.9) which can restart the httpd for you

`/usr/local/apache/bin/apachectl restart`

or wherever you or your distro install apache to.

man hostname; man domainname

Also check out the FAQ and docs at http://www.apache.org

Jack

On Sat, 15 Jan 2000, Jack wrote:
> yeah, I use apache.  got hint from log file:
> 
> rg2k httpd: httpd: cannot determine local host name.
> rg2k httpd: Use the ServerName directive to set it manually.
> rg2k httpd: httpd startup failed
> 
> may you guess this: I use ppp to get online. Now, what can I do with
> this? (hostname: rg2k.penguinpowered.com) (hosts: 127.0.0.1
> localhost       localhost.localdomain)  add one line for rg2k in hosts
> file?
> 
> thanks for your help.
> 
> jack
> 
> On Sat, Jan 15, 2000 at 01:52:42PM -0700, David Hojo Hajoglou wrote:
> > 
> > A few question for you
> > > 
> > > 1.) using rh6.1,  httpd fails when booting, but could be started
> > > manually.  
> > >     [rc3.d/S85http->../init.d/httpd]  [failed]
> > >     # httpd start               [OK]
> > > 
> > 1) that httpd server are you running? (apache I would assume)
> > 2) can you see anything in the logs?  Try to find that and some answers
> > will be found.
> > 
> > 
> > -dave

Reply via email to