apach - httpd.conf problem - apache startet nicht!

Alles, was den Apache betrifft, kann hier besprochen werden.

apach - httpd.conf problem - apache startet nicht!

Postby nille » 04. January 2006 15:04

hi,

wenn chh den apache starten möchte, tritt folgendes problem auf:

Code: Select all
Diese Eingabeforderung nicht waehrend des Running beenden
Bitte erst bei einem gewollten Shutdown schliessen
Please close this command only for Shutdown
Apache 2 is starting ...
Syntax error on line 334 of E:/XAMPP Server/xampp/apache/conf/httpd.conf:
DocumentRoot takes one argument, Root directory of the document tree

Apache konnte nicht gestartet werden
Apache could not be started
Press any key to continue . . .


ich habe schonmal in der httpd.conf nachgeschaut, jedoch keine lösung gefunden.
kann mir jemand bei diesem problem weiterhelfen?
falls infos benötigt werden, geb ich sie preis!

gruß
nille
nille
 
Posts: 4
Joined: 04. January 2006 14:57

Postby LazyOne » 04. January 2006 15:26

poste bitte mal zeilen 330 bis 340
LazyOne
 
Posts: 141
Joined: 12. May 2005 12:12
Location: München

Postby KingCrunch » 04. January 2006 15:38

Ich würd aber gerne die Theorie aufstellen, dass du versucht mehrere Verzeichnisse zum DOCUMENT_ROOT zu machen ;)
Nicht jeder Fehler ist ein Bug ...
KingCrunch
 
Posts: 1724
Joined: 26. November 2005 19:25

Postby nille » 04. January 2006 15:39

kenn mich nohc nicht sogut damit aus...
die httpd.conf ist ziemlich land, wie komm ihc zu den zeilen, durch abzählen?
zählen leerzeilen mit?

danke fü die hilfe!
nille
 
Posts: 4
Joined: 04. January 2006 14:57

Postby KingCrunch » 04. January 2006 15:46

Nutz ein Programm mit Zeilennummerierung. Aber da offensichtlich sowieso der Document-root dafür verantwortlich ist, kannst du wahrscheinlich direkt danach suchen

Und Leerzeilen zählen mit ;)
Nicht jeder Fehler ist ein Bug ...
KingCrunch
 
Posts: 1724
Joined: 26. November 2005 19:25

Postby deepsurfer » 04. January 2006 15:49

nille wrote:kenn mich nohc nicht sogut damit aus...
die httpd.conf ist ziemlich land, wie komm ihc zu den zeilen, durch abzählen?
zählen leerzeilen mit?

danke fü die hilfe!


START -->
AUSFÜRHEN ==>
cmd ==>
ALT & RETURN gleichzeitig (commandfenster wird ganz gross)
cd c:\apachefriends\xampp\apache\conf
edit httpd.conf

Nun hast du einen Editor der dir die Zeilenzahl unten anzeigt wenn du mit den Pfeiltasten hinunter Scrollst.
Zeile 334 ist bei der derzeitigen XAMPP Version die Definition des
DocumentRoot, also wäre es angebracht entweder zu bestätigen das du diese httpd.conf schon mal editiert hast und nicht mehr weiterkommst, oder hier und jetzt hoch und heilig versprichst das Niemand an der httpd.conf etwas geändert hat.

Den Editor verlässt du mit einmal ALT und dann mit den Pfeiltasten im Menüpunkt "Datei" auf beenden gehen.
Danach wieder ALT & RETURN gleichzeitig und das commandfenster kannst du dann beruhigt mit dem kleinen "x" rechts oben schliessen oder du tipps "exit" ein.
chirio Deep
Wie sagte einst der MCP aus Tron auf dem Bildschirm zu schreiben Pflegte
" ... end of communication ... "
User avatar
deepsurfer
AF Moderator
 
Posts: 6440
Joined: 23. November 2004 10:44
Location: Cologne
Operating System: Win-XP / Win7 / Linux -Debian

Postby nille » 04. January 2006 15:59

gut gut...die httpd.conf wurde schon verändert!

zeilen ausschnitt:

Code: Select all
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot E:/XAMPP Server/xampp/htdocs

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "E:/XAMPP Server/xampp/htdocs">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI Multiviews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
#
    Options Indexes FollowSymLinks Includes ExecCGI
    AddType text/html .shtml
    AddHandler server-parsed .shtml
    AddHandler cgi-script .cgi .pl

# ReadmeName footer.html
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride All

#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all

</Directory>

#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.  Be especially careful to use
# proper, forward slashes here.
#
# UserDir "My Documents/My Website"



so, das is er...
nille
 
Posts: 4
Joined: 04. January 2006 14:57

Postby Wiedmann » 04. January 2006 16:10

die httpd.conf wurde schon verändert!

Von wem? Und/oder welchen XAMPP benutzt du?

DocumentRoot E:/XAMPP Server/xampp/htdocs

-->
Code: Select all
DocumentRoot "E:/XAMPP Server/xampp/htdocs"
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby nille » 04. January 2006 16:14

DocumentRoot E:/XAMPP Server/xampp/htdocs

-->
Code: Select all
DocumentRoot "E:/XAMPP Server/xampp/htdocs"


-> das wars schon! funzt wieder!

bin überrascht, bin mir nicht bewusst dies gezielt geändetr zu haben!

habt vielen dank!
nille
 
Posts: 4
Joined: 04. January 2006 14:57


Return to Apache

Who is online

Users browsing this forum: No registered users and 77 guests