Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache
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
holbre
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jul 2004
Posts: 77
Location: Hannover

PostPosted: Fri Nov 19, 2004 9:30 am    Post subject: Apache Reply with quote

hallo
kann mir mal jemand helfen

/etc/init.d/apache2 start

wirft mir folgende meldung aus

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 


Code:
ls /usr/lib/apache2/logs/error_log
ls: /usr/lib/apache2/logs/error_log: No such file or directory


logs scheint kein verzeichnis zu sein, kann nicht in das verzeichnis rein.[/code]
_________________
ASUS P4P800-E Deluxe * 1Gbit onboard * P4 oc 3,6GHz (3,2GHz) + ARCTIC COOLING - Freezer 4 * G.E.I.L. DIMM 1 GB DDR-400 Kit (Value Series) * AGP GF 6600 266MB * Maxtor 16GB S-ATA * DVD-R/W, DVD-ROM, Floppy
Back to top
View user's profile Send private message
deejay
l33t
l33t


Joined: 24 Aug 2004
Posts: 983
Location: Hannover, Germany

PostPosted: Fri Nov 19, 2004 9:38 am    Post subject: Reply with quote

startest du den apache auch als root?
_________________
Back to top
View user's profile Send private message
holbre
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jul 2004
Posts: 77
Location: Hannover

PostPosted: Fri Nov 19, 2004 9:40 am    Post subject: Reply with quote

ja, da ich noch am installieren bin.
_________________
ASUS P4P800-E Deluxe * 1Gbit onboard * P4 oc 3,6GHz (3,2GHz) + ARCTIC COOLING - Freezer 4 * G.E.I.L. DIMM 1 GB DDR-400 Kit (Value Series) * AGP GF 6600 266MB * Maxtor 16GB S-ATA * DVD-R/W, DVD-ROM, Floppy
Back to top
View user's profile Send private message
makenoob
Apprentice
Apprentice


Joined: 19 Aug 2004
Posts: 272
Location: /Germany/Düsseldorf

PostPosted: Fri Nov 19, 2004 9:43 am    Post subject: Reply with quote

in deinen config-dateien wird der log-pfad zu deinen lodateien angegeben, das sieht dann in etwa so aus:

Code:

ErrorLog logs/error_log


diese pfadangabe ist relativ zum serverroot, der separat angegeben ist. standardmäßig ist in /usr/lib/apache2 ein symlink angelegt, der auf /var/log/apache2 zeigt (zumindest war es bei mir so).

Code:

ln -s /var/log/apache2 /usr/lib/apache2/logs


kann sein, dass du die error_log auch vorher noch "touchen" musst, damit sie existiert ist.

sollte den link bei dir erstellen und diese meldung beseitigen. prüfe auch sämtliche pfadangaben in den configdateien.

gruß
marc
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: Fri Nov 19, 2004 9:52 am    Post subject: Reply with quote

makenoob wrote:

kann sein, dass du die error_log auch vorher noch "touchen" musst, damit sie existiert ist.

Nein, das braucht man nicht. Nur das Directory muß vorhanden - und schreibbar - sein.
_________________
mysql> SELECT question FROM life, universe, everything WHERE answer=42;
Empty set (2079460347 sec)
Back to top
View user's profile Send private message
holbre
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jul 2004
Posts: 77
Location: Hannover

PostPosted: Fri Nov 19, 2004 9:53 am    Post subject: Reply with quote

kann mich nicht entsinnen bei letzten mal ein syb. link angelegt zu haben.

aber habe es grad mal gemacht und wollte dann apache starten.

leider ist die fehlermeldung immer noch da und es ist die gleiche
_________________
ASUS P4P800-E Deluxe * 1Gbit onboard * P4 oc 3,6GHz (3,2GHz) + ARCTIC COOLING - Freezer 4 * G.E.I.L. DIMM 1 GB DDR-400 Kit (Value Series) * AGP GF 6600 266MB * Maxtor 16GB S-ATA * DVD-R/W, DVD-ROM, Floppy
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: Fri Nov 19, 2004 9:58 am    Post subject: Reply with quote

Hab' den link auch noch nie selber anlegen müssen - das sollt' eigentlich portage machen.

Am Besten apache neu mergen, da muß irgendwas schiefgegangen sein.

robelix
_________________
mysql> SELECT question FROM life, universe, everything WHERE answer=42;
Empty set (2079460347 sec)
Back to top
View user's profile Send private message
s.hase
Apprentice
Apprentice


Joined: 19 Nov 2004
Posts: 293

PostPosted: Fri Nov 19, 2004 10:00 am    Post subject: Reply with quote

Hi!

Ich hatte gestern genau das selbe Problem als ich Apache2 installiert habe. /usr/lib/apache2/logs ist ein symbolischer Link auf /var/log/apache2 und genau das Verzeichnis existierte bei mir nicht. Neu angelegt und schon gings. Ist vielleich bei Dir das selbe?

Gruss
Sebastian
Back to top
View user's profile Send private message
makenoob
Apprentice
Apprentice


Joined: 19 Aug 2004
Posts: 272
Location: /Germany/Düsseldorf

PostPosted: Fri Nov 19, 2004 10:01 am    Post subject: Reply with quote

und was sagt

Code:

ls -al /usr/lib/apache2
ls -al /var/log/apache2


wie siehts mit den pfadangaben in deinen configs aus?
Back to top
View user's profile Send private message
insaan
n00b
n00b


Joined: 26 Oct 2004
Posts: 72

PostPosted: Fri Nov 19, 2004 10:15 am    Post subject: Reply with quote

Ich hatte auch das gleiche Problem und habe einen neuen Verzeichnis erstellt. Guck mal

https://forums.gentoo.org/viewtopic.php?t=252721&highlight=apache+solved
Back to top
View user's profile Send private message
s.hase
Apprentice
Apprentice


Joined: 19 Nov 2004
Posts: 293

PostPosted: Fri Nov 19, 2004 10:17 am    Post subject: Reply with quote

Also:

hase@sulaco downloads $ ls -al /usr/lib/apache2
insgesamt 65
drwxr-xr-x 4 root root 200 18. Nov 13:01 .
drwxr-xr-x 93 root root 64688 18. Nov 20:46 ..
drwxr-xr-x 2 root root 400 18. Nov 13:01 build
lrwxrwxrwx 1 root root 17 18. Nov 13:01 conf -> /etc/apache2/conf
lrwxrwxrwx 1 root root 29 18. Nov 13:01 extramodules -> /usr/lib/apache2-extramodules
lrwxrwxrwx 1 root root 8 18. Nov 13:01 lib -> /usr/lib
lrwxrwxrwx 1 root root 16 18. Nov 13:01 logs -> /var/log/apache2
drwxr-xr-x 2 root root 1752 18. Nov 13:01 modules
hase@sulaco downloads $ ls -al /var/log/apache2
insgesamt 80
drwxr-xr-x 2 root root 112 18. Nov 15:14 .
drwxr-xr-x 9 root root 448 19. Nov 07:42 ..
-rw-r--r-- 1 root root 69069 18. Nov 16:05 access_log
-rw-r--r-- 1 root root 12115 19. Nov 07:35 error_log

Ausschnitt mit den Pfadangaben in meiner apache2.conf (daran habe ich seit der Installation nichts geändert):
ServerRoot /usr/lib/apache2
#ServerName localhost
#LockFile /etc/apache2/apache2.lock
PidFile /var/run/apache2.pid
ErrorLog logs/error_log
LogLevel warn
DocumentRoot /var/www/localhost/htdocs

Gruss
Sebastian
Back to top
View user's profile Send private message
holbre
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jul 2004
Posts: 77
Location: Hannover

PostPosted: Fri Nov 19, 2004 10:22 am    Post subject: Reply with quote

super fettes THX

/var/log/apache2 wurde nicht erstellt

hatte auch schon apache 2 mal neu emerge - ohne erfolg
_________________
ASUS P4P800-E Deluxe * 1Gbit onboard * P4 oc 3,6GHz (3,2GHz) + ARCTIC COOLING - Freezer 4 * G.E.I.L. DIMM 1 GB DDR-400 Kit (Value Series) * AGP GF 6600 266MB * Maxtor 16GB S-ATA * DVD-R/W, DVD-ROM, Floppy
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: Fri Nov 19, 2004 10:24 am    Post subject: Reply with quote

Welche genaue Version vom Apachen habt ihr installiert?

Da so komische Dinger öfter auftreten vermute ich mal, daß ein ebuild verkorkst ist.
Wenn dem so ist, dann am Besten in die packages.mask entragen und die nächstkleinere Version bauen.

robelix
_________________
mysql> SELECT question FROM life, universe, everything WHERE answer=42;
Empty set (2079460347 sec)
Back to top
View user's profile Send private message
makenoob
Apprentice
Apprentice


Joined: 19 Aug 2004
Posts: 272
Location: /Germany/Düsseldorf

PostPosted: Fri Nov 19, 2004 10:29 am    Post subject: Reply with quote

2.0.51-r1 (da wirds noch sauber erstellt, hatte die probleme nämlich nicht)

und

2.0.52-r1 (ist allerdings ein update von .51, daher kann ich für das ebuild keine aussage treffen)

gruß
marc

ps: solved-tag? ;)
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