Suse 10.1 & Apache nachinstalliert ...

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

Suse 10.1 & Apache nachinstalliert ...

Postby Falschparker » 05. October 2006 17:13

Hallöchen ... ich hab en Problem und zwar habe ich Apache nachinstalliert (kein Grafiksystem, da Server) und wenn ich den starten will kommt folgende Fehlermeldung:

rechner:/etc/apache2 # httpd2 -k start
httpd2: Syntax error on line 185 of /etc/apache2/httpd.conf: Could not open configuration file /etc/apache2/sysconfig.d/include.conf: No such file or directory
rechner:/etc/apache2 #

öhmmmm ... wird die Datei nicht beim Start von Apache angelegt?

Danke & Gruß
Falschparker
 
Posts: 5
Joined: 05. October 2006 16:42

Postby deepsurfer » 05. October 2006 17:28

öhmmmm ... wird die Datei nicht beim Start von Apache angelegt?

Nein, wie die Fehlermeldung besagt ist in der httpd.conf in Zeile 185
ein "include" Befehl vorhanden, dieser include befehl möchte eine Datei aus einem definiteren Pfad laden, aber diese Datei ist nicht in diesem Pfad zu finden.

Ich geh mal von aus das du keine aktuelle locate-DB hast, dann lass den
PC mal mit find / * |grep 'include.conf' nach dieser Datei suchen ob diese überhaupt in deinem System ist (dauert einige Minuten, festplatte arbeitet hörbar)

Wenn diese gefunden wird, siehst du auch in welchem Pfas die liegt, dann dementsprechen die Zeile 185 der httpd.conf angleichen.

Frage:
Hast du den Apache als Paket (YAST Paketinstallation) installiert oder selbst für dein System kompiliert und eingebunden ?
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

ging ja fix ... Danke.

Postby Falschparker » 05. October 2006 17:36

folgendes hat er ausgespuckt:

Code: Select all
rechner:/etc/apache2 # find / * |grep 'include.conf'
find: WARNING: Hard link count is wrong for /: this may be a bug in your filesystem driver.  Automatically turning on find's -noleaf option.  Earlier results may have failed to include directories that should have been searched.
rechner:/etc/apache2 #



mhmhm?!
Falschparker
 
Posts: 5
Joined: 05. October 2006 16:42

Postby Falschparker » 05. October 2006 17:39

in Zeile 185 steht:

Code: Select all
# Another way to include your own files                                                                                                 
#                                                                                                                                       
# The file below is generated from /etc/sysconfig/apache2,                                                                             
# include arbitrary files as named in APACHE_CONF_INCLUDE_FILES and                                                                     
# APACHE_CONF_INCLUDE_DIRS                                                                                                             
Include /etc/apache2/sysconfig.d/include.conf                                                                                           
                                                                                                                                       



und die Datei include.conf existiert net ...
Falschparker
 
Posts: 5
Joined: 05. October 2006 16:42

Re: ging ja fix ... Danke.

Postby deepsurfer » 05. October 2006 17:48

Falschparker wrote:folgendes hat er ausgespuckt:

Code: Select all
rechner:/etc/apache2 # find / * |grep 'include.conf'
find: WARNING: Hard link count is wrong for /: this may be a bug in your filesystem driver.  Automatically turning on find's -noleaf option.  Earlier results may have failed to include directories that should have been searched.
rechner:/etc/apache2 #



mhmhm?!


woow...den kannte ich auch noch nicht....
Ok..ich les mich jetzt nicht da ein, da ich diesen Bereich so nicht kenne.

zweite Möglichkeit:
updatedb -- das dauert etliche Minuten bis er fertig ist.
Danach sollte mit dem folgenden befehl eine eindeutige Aussage erscheinen.
locate include.conf


-------------
Das diese include.conf nicht existiert ist aus der Fehlermeldung ersichtlich

und die Datei include.conf existiert net ...

Richtig, sonst käme Fehlermdleung nicht, mein vorhaben (find und locate) sind "Such und Find" operatoren für dein System.

Es besteht die wage möglichkeit das die gewünschte "include.conf" in einem anderen Pfad liegt, durch das Suchen könnte man dann den httpd.con eintrag (Zeile 185) dementsprechen abändern.

Aber lange rede kurzer Sinn.
In der Hoffnung das in dieser "include.conf" keine wichtigen Funktionen für den Apache geladen werden sollen kannst du auch die Zeile 185 mit einer raute "Einkommentieren", dann den apache starten lassen und beten das er geht und nun keine Probleme bereitet.

-------------------

Wie lautet deine Antwort zwecks Installation des Apachen ???
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

nuuuu grad mal das richtige Buch bekommen und ja *schäm*

Postby Falschparker » 05. October 2006 17:49

also man startet den apache mit:

Code: Select all
rcapache2 start


und nicht wie ich :?

Code: Select all
httpd2 -k start


also Apache läuft jetzt .... perfekt.

it´s works :D
Falschparker
 
Posts: 5
Joined: 05. October 2006 16:42

Postby deepsurfer » 05. October 2006 17:50

ok..

Have fun with Apache


greets
Deep
User avatar
deepsurfer
AF Moderator
 
Posts: 6440
Joined: 23. November 2004 10:44
Location: Cologne
Operating System: Win-XP / Win7 / Linux -Debian

.....

Postby Falschparker » 05. October 2006 17:51

@deepsurfer Danke für Mühe!!!!!!!!!!!!!!!!!!!

jetzt gibts auch diese Datei

include.conf


ach je ist Linux aufregend ... hätte ich doch nur mehr Zeit :)
Falschparker
 
Posts: 5
Joined: 05. October 2006 16:42


Return to Apache

Who is online

Users browsing this forum: No registered users and 85 guests