Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache2 Error beim starten
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
isreal
n00b
n00b


Joined: 16 Apr 2004
Posts: 40
Location: Austria

PostPosted: Mon Dec 27, 2004 4:43 pm    Post subject: Apache2 Error beim starten Reply with quote

Hallo!


Nachdem ich Apache mit PHP und Mysql emerged hab:
Code:

emerge apache mysql php mod_php


Bekomme ich beim starten von Apache2
Code:

su
/etc/init.d/apache2 start


folgenden Fehler:

Code:

* Starting apache2...
(2)No such file or directory: apache2: could not open error log file /usr/lib/apache2/logs/error_log.                                                   
Unable to open logs                                                       [ !! ]


Hab an den Konfigurationsdateien noch nichts geändert!
Hatte jemand schon mal dieses Problem??

Bin für jede Hilfe dankbar!


Danke

mfG
Back to top
View user's profile Send private message
Gags666
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jun 2004
Posts: 89

PostPosted: Mon Dec 27, 2004 5:08 pm    Post subject: Reply with quote

Ist vielleicht eine blöde Frage, aber hast Du schonmal nachgeschaut, ob es die Datei /usr/lib/apache2/logs/error_log überhaupt gibt? Wenn es sie nicht gibt, dann versuche doch einfach mal sie zu erstellen. Aber vielleicht hat die Datei ja auch einfach nicht die passenden Rechte.
_________________
Huldigt Chuck Norris: roundhousekick.de


Last edited by Gags666 on Mon Dec 27, 2004 5:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
Robelix
l33t
l33t


Joined: 21 Jul 2002
Posts: 760
Location: in a World created by a Flying Spaghetti Monster

PostPosted: Mon Dec 27, 2004 5:09 pm    Post subject: Reply with quote

/usr/lib/apache/logs sollte ein symlink auf /var/log/apache2 sein, kann's dein daß der bei dir fehlt?
_________________
mysql> SELECT question FROM life, universe, everything WHERE answer=42;
Empty set (2079460347 sec)
Back to top
View user's profile Send private message
Christoph Schnauß
Guru
Guru


Joined: 17 Dec 2004
Posts: 553
Location: Berlin

PostPosted: Mon Dec 27, 2004 5:39 pm    Post subject: Re: Apache2 Error beim starten Reply with quote

isreal wrote:
Nachdem ich Apache mit PHP und Mysql emerged hab...Bekomme ich beim starten von Apache2
Code:

su
/etc/init.d/apache2 start
folgenden Fehler:
Code:
* Starting apache2...
(2)No such file or directory: apache2: could not open error log file /usr/lib/apache2/logs/error_log.                                                   
Unable to open logs                                                       [ !! ]

Zum Apachestart solltest du
Code:
apache2ctl -k start
nehmen. Du kannst ihn auch mit rc-update bei Systemstart hochfahren.
Allerdings bekomme ich denselben Fehler eben gerade auch
Quote:
Hab an den Konfigurationsdateien noch nichts geändert!
Das ist vielleicht dein Fehler. Die Syntax der Konfiguration kannst du mit
Code:
apache2 -t
auf Richtigkeit überprüfen. Ein Servername sollte angegeben sein ...


Christoph S.
Back to top
View user's profile Send private message
isreal
n00b
n00b


Joined: 16 Apr 2004
Posts: 40
Location: Austria

PostPosted: Mon Dec 27, 2004 7:48 pm    Post subject: Reply with quote

Danke für die raschen Antworten!

Meine Frage war wohl echt auf Faulheit zurück zu führen, denn:
Die Datei /usr/lib/apache/logs existierte nicht. Komischerweise war aber auch kein Verzeichnis apache2 in /var/log angelegt.
Lösung:
Code:

mkdir /var/log/apache2
ln -s /var/log/apache2/ /usr/lib/apache2/logs
/etc/init.d/apache2 start


Log Dateien schreibt der Apache ganz brav!
Danke für eure Posts
Back to top
View user's profile Send private message
Christoph Schnauß
Guru
Guru


Joined: 17 Dec 2004
Posts: 553
Location: Berlin

PostPosted: Mon Dec 27, 2004 8:05 pm    Post subject: Reply with quote

isreal wrote:
Die Datei /usr/lib/apache/logs existierte nicht. Komischerweise war aber auch kein Verzeichnis apache2 in /var/log angelegt.

Ja, das scheint ein "Konstruktionsfehler" bei Apache 2.0.52 zu sein, also im ebuild oder sogar im den Originalsourcen der Apache Foundation. Deine Lösung ist korrekt, sollte dich aber trotzdem nicht davon abhalten, kräftig an der Konfiguration herumzuschrauben, die deinen Bedürfnissen kaum entsprechen dürfte, wenn du alles auf "default" stehenläßt.

Christoph S.

httpd.conf in deutsch
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum