Re: apache: "httpd: cannot determine local host name."

1998-12-16 Thread Colin Boyd


>I installed apache, but at the end of the configuration stage it failed to
>start, giving an error. I ran "apacheconfig", and got the following output
>(essentially the same error):
>
>
>Save these changes to the configuration files? [Y/n]
>
>Rotated `/etc/apache/httpd.conf' at Sat Dec 12 09:53:35 EST 1998.
>Restart Apache now? [Y/n]
>Stopping apache with apachectl ...
>httpd: cannot determine local host name.
>Use the ServerName directive to set it manually.
>/usr/sbin/apachectl start: httpd could not be started
>
>
>I don't know why it should have trouble finding my hostname. It's right
>there in /etc/hostname. I don't know how to use the 'ServerName' directive,
>whatever that is.
>


To set the ServerName directive you put "ServerName your.ip.address" in one
of the files in /etc/apache. Most likely in httpd conf. If you plan on using
apache as a real web server...(rather than for reading you man pages in your
browser) you would be doing yourself a big favor to read the apache
documentation carefully. Also if this is going to be a production web
server, you may want to disable telnet and ftp acess to it..I think you can
use ssh instead.

-Colin


Re: apache: "httpd: cannot determine local host name."

1998-12-13 Thread Tim Moore
> "Graham" == Graham Ashton <[EMAIL PROTECTED]> writes:

Graham> if you've got a dynamic ip address, or that still doesn't
Graham> work, look through your httpd.conf file until you find the
Graham> line that looks like;

Graham> #ServerName myhost.mydomain.com

Graham> replace myhost.mydomain.com with what it should be, and
Graham> remove the '#' from the start of the line. then try
Graham> restarting apache.

So what if your hostname is dynamic, too?  Obviously this won't be
usable as an actual web server, but I want to use it for dwww,
squid-cgi, and other utility CGIs.

Can I just set ServerName to "localhost" or the (fake) hostname I've
set for the machine?  /etc/apache/http.conf says: "You cannot just
invent host names and hope they work."  But does that only apply if
clients on other machines are seeing it?

As a side note, having a dynamic IP/hostname is a *real* pain on
Linux!  Perhaps an effort to develop a set of services which are
optimized for a dialup connection would be good...

Tim Moore


Re: apache: "httpd: cannot determine local host name."

1998-12-12 Thread Nuno Carvalho
On Sat, 12 Dec 1998, Zack Brown wrote:

> I installed apache, but at the end of the configuration stage it failed to
> start, giving an error. I ran "apacheconfig", and got the following output
> (essentially the same error):

 I already had such error.
 On /etc/apache/httpd.conf change the line from:

   ServerName new.host.name
   to 
   ServerName 

 or try even to comment it:
   
  # ServerName new.host.name

 Best regards,
   Nuno Carvalho

??
   Nuno Emanuel F. Carvalho
 Dep. Informatics Engineering
University of Coimbra

  PGP key available at finger
??


Re: apache: "httpd: cannot determine local host name."

1998-12-12 Thread Graham Ashton
On 12 Dec, Zack Brown wrote:

> I installed apache, but at the end of the configuration stage it failed to
> start, giving an error. I ran "apacheconfig", and got the following output
> (essentially the same error):

> I don't know why it should have trouble finding my hostname. It's right
> there in /etc/hostname.

it's not looking at /etc/hostname. it's trying to work out what
hostname it should send to a browser in reply to a request to a given
ip address (namely the ip address of your network interface). put a
line in /etc/hosts like this;

123.456.789.012  myhost.mydomain.commyhost

where 123.456.789.012 is your ip address.

if you've got a dynamic ip address, or that still doesn't work, look
through your httpd.conf file until you find the line that looks like;

#ServerName myhost.mydomain.com

replace myhost.mydomain.com with what it should be, and remove the '#'
from the start of the line. then try restarting apache.

you shouldn't need to use the ServerName directive in simple cases
though. apache should be able to work it out for itself if your system
is set up correctly.

-- 
Graham


apache: "httpd: cannot determine local host name."

1998-12-12 Thread Zack Brown
I installed apache, but at the end of the configuration stage it failed to
start, giving an error. I ran "apacheconfig", and got the following output
(essentially the same error):


Save these changes to the configuration files? [Y/n]

Rotated `/etc/apache/httpd.conf' at Sat Dec 12 09:53:35 EST 1998.
Restart Apache now? [Y/n]
Stopping apache with apachectl ...
httpd: cannot determine local host name.
Use the ServerName directive to set it manually.
/usr/sbin/apachectl start: httpd could not be started


I don't know why it should have trouble finding my hostname. It's right
there in /etc/hostname. I don't know how to use the 'ServerName' directive,
whatever that is.

Zack