line 574 of /etc/httpd/conf/httpd.conf

(cd /etc/httpd/conf && cat httpd.conf|sed -e "s|#ServerName \
new.host.name|ServerName `hostname`|g" > httpd.conf.2 && mv httpd.conf \
httpd.conf.original && mv httpd.conf.2 httpd.conf && \
/etc/rc.d/init.d/httpd start ) || echo "Errors.... bailing out"

should do the trick, if not goto line 574 and read it ;)

On Sun, 11 Jul 1999, James J. Capone wrote:

> When I start up and it starts all of my programs I get 
> 
> Starting HTTPD                         [Failed]
> HTTPD unable to set host name
> use ServerName directive to correct..
> 
> 
> Can anyone tell me what is going on.
> 
> Here is what my /etc/hosts file look like
> 
> #127.0.0.1              Localhost         localhost.localdomain
> 127.0.0.1                 Localhost        Majestic.localdomain
> 
> 
> 
> Thanks
> 
> James J. Capone
> 

Reply via email to