Chris Weber: Ich kriege Apache nicht zum laufen

Hallo,

ich habe mir eben Apache für Win32 runtergeladen (ich habe Win95 b).  Nach der Installation habe ich Apache gestartet und bekam folgende Meldung:

C:\PROGRA~1\APACHE~1\APACHE\APACHE.EXE: cannot determine local hostname.

Use the ServerName directive to set it manually

Was heisst das und was soll ich tun ?

  1. hi!

    ich habe mir eben Apache für Win32 runtergeladen (ich habe Win95 b).  Nach der Installation
    habe ich Apache gestartet und bekam folgende Meldung:

    C:\PROGRA~1\APACHE~1\APACHE\APACHE.EXE: cannot determine local hostname.
    Use the ServerName directive to set it manually

    Was heisst das und was soll ich tun ?

    Steht doch alles da: du sollst den Hostnamen manuell in der Konfiguration eintragen, und zwar über die "ServerName"-Direktive. Alles weitere darüber solltest du theoretisch der Dokumentation entnehmen können, wenn nicht sogar der Beispiel-Konfiguration.

    bye, Frank!

  2. Hallo
    Ich bin ein glücklicher User der Apache vor 3 Tagen zum Laufen gebracht hat.

    Use the ServerName directive to set it manually

    Das selbe Stand bei mir auch.
    Wenn Du den Server verwendest um Deine Seiten offline anzuschauen (so wie ich) dann solltest Du in dem Apache Konfigurationsfile folgendes eingeben:

    <-- httpd.conf

    ServerName allows you to set a host name which is sent back to clients for

    your server if it's different than the one the program would get (i.e., use

    "www" instead of the host's real name).

    Note: You cannot just invent host names and hope they work. The name you

    define here must be a valid DNS name for your host. If you don't understand

    this, ask your network administrator.

    If your host doesn't have a registered DNS name, enter its IP address here.

    You will have to access it by its address (e.g., http://123.45.67.89/)

    anyway, and this will make redirections work in a sensible way.

    ServerName http://127.0.0.0/

    -->

    Dann kannst Du wenn der Apache läuft im Browser http://localhost eingeben und Deine Seiten werde angezeigt. (natürlich muss Du noch das richtige "DocumentRoot" angeben.)

    Viel Spass
      Felix