• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst]apache startet nicht

whois

Ultimate Guru
Hmm

Meine Server laufen alle unter Debian deshalb bin ich nicht ganz sicher ob dir was fehlt, aber IMHO müsst alles dabei sein.
Welcher Version von Suse setzt du ein?
 

whois

Ultimate Guru
Naja ich habe ewig nicht mehr mit Suse Servern gearbeitet sonst wäre mir das nicht entgangen. :roll: :oops:

Code:
rcapache2 start
http://wiki.linux-club.de/XAMPP#Weiterf.C3.BChrende_Infos_und_Hilfen
 

whois

Ultimate Guru
Hi

Port 80 ist frei geschaltet?
http://httpd.apache.org/docs/2.0/invoking.html
http://httpd.apache.org/docs/2.0/mod/mpm_common.html#listen

cu
 

revealed

Guru
Code:
disk@WILD-THING:~> rpm -qa |grep apache
apache2-doc-2.2.4-70.2
apache2-worker-2.2.4-70.2
apache2-mod_perl-2.0.3-55
apache2-prefork-2.2.4-70.2
apache2-mod_php5-5.2.4-11
apache2-example-pages-2.2.4-70.2
apache2-2.2.4-70.2
apache2-mod_python-3.3.1-54
apache2-utils-2.2.4-70.2

Hallo! Apache2 läuft bei mir mit diesen Paketen... eventuell kannst du das vergleichen?
Code:
disk@WILD-THING:~> rpm -qa |grep mysql
libmysqlclient15-5.0.45-22
qt3-mysql-3.3.8-76
php5-mysql-5.2.4-11
mysql-client-5.0.45-22
perl-DBD-mysql-4.005-26
python-mysql-1.2.1_p2-81
mysql-5.0.45-22
mysql-gui-tools-5.0r12-56
mysql-administrator-5.0r12-56
libmysqlclient_r15-5.0.45-22
mysql-tools-5.0.45-22

Code:
disk@WILD-THING:~> rpm -qa |grep php
php5-json-5.2.4-11
php5-ctype-5.2.4-11
php5-pdo-5.2.4-11
php5-mysql-5.2.4-11
selfphp-4.1-48
php5-bz2-5.2.4-11
php5-hash-5.2.4-11
php5-mcrypt-5.2.4-11
php5-zlib-5.2.4-11
apache2-mod_php5-5.2.4-11
php5-5.2.4-11
php5-gd-5.2.4-11
php5-mbstring-5.2.4-11
php5-xmlwriter-5.2.4-11
php5-xmlreader-5.2.4-11
phpMyAdmin-2.11.0-14
php5-dom-5.2.4-11
php5-tokenizer-5.2.4-11
php5-sqlite-5.2.4-11
php5-iconv-5.2.4-11

geholfen hat folgendes:
http://wiki.linux-club.de/Apache
und die dienste MySQL PHP und apache2 im Runlevel Editor aktivieren. Bei der Einrichtung von phpMyAdmin half dann die Doku, die innerhalb der Tools aufrufbar ist.

Gruß

R
[/code]
 

whois

Ultimate Guru
Hi

Die Pakete die er installiert hat sind in Ordnung.
Das habe ich mittlerweile nach vollzogen.
Poste mal bitte die logs die Panamajo geschrieben hat.

cu
 
OP
C

Corraggiouno

Member
die error_log gibt folgendes aus:
[Mon Nov 26 14:08:29 2007] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Nov 26 14:08:29 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2)
[Mon Nov 26 14:08:30 2007] [notice] Apache/2.2.4 (Linux/SUSE) mod_ssl/2.2.4 OpenSSL/0.9.8e PHP/5.2.4 with Suhosin-Patch configured -- resuming normal operations
[Mon Nov 26 14:09:22 2007] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
[Mon Nov 26 14:09:22 2007] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/favicon.ico
[Mon Nov 26 14:11:10 2007] [notice] caught SIGTERM, shutting down
[Mon Nov 26 14:12:20 2007] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Nov 26 14:12:20 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2)
[Mon Nov 26 14:12:21 2007] [notice] Apache/2.2.4 (Linux/SUSE) mod_ssl/2.2.4 OpenSSL/0.9.8e PHP/5.2.4 with Suhosin-Patch configured -- resuming normal operations
[Mon Nov 26 14:58:30 2007] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
[Mon Nov 26 14:58:31 2007] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/favicon.ico
[Mon Nov 26 14:59:23 2007] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
[Mon Nov 26 15:20:21 2007] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
[Mon Nov 26 15:20:27 2007] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/, referer: http://localhost/
[Mon Nov 26 15:27:10 2007] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/, referer: http://localhost/
[Mon Nov 26 15:27:26 2007] [notice] caught SIGTERM, shutting down
[Mon Nov 26 20:24:05 2007] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Nov 26 20:24:06 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2)
[Mon Nov 26 20:24:06 2007] [notice] Apache/2.2.4 (Linux/SUSE) mod_ssl/2.2.4 OpenSSL/0.9.8e PHP/5.2.4 with Suhosin-Patch configured -- resuming normal operations
[Mon Nov 26 20:31:22 2007] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
[Mon Nov 26 20:31:23 2007] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/favicon.ico
[Mon Nov 26 20:31:34 2007] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
[Mon Nov 26 20:33:45 2007] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
[Mon Nov 26 20:33:45 2007] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
[Mon Nov 26 20:39:00 2007] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
[Mon Nov 26 21:09:47 2007] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
[Mon Nov 26 21:12:59 2007] [notice] caught SIGTERM, shutting down
[Mon Nov 26 21:13:04 2007] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Nov 26 21:13:04 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2)
[Mon Nov 26 21:13:04 2007] [notice] Apache/2.2.4 (Linux/SUSE) mod_ssl/2.2.4 OpenSSL/0.9.8e PHP/5.2.4 with Suhosin-Patch configured -- resuming normal operations
[Mon Nov 26 21:13:17 2007] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
[Mon Nov 26 21:14:25 2007] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
[Mon Nov 26 21:14:25 2007] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/favicon.ico
[Tue Nov 27 10:24:41 2007] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Nov 27 10:24:41 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2)
[Tue Nov 27 10:24:42 2007] [notice] Apache/2.2.4 (Linux/SUSE) mod_ssl/2.2.4 OpenSSL/0.9.8e PHP/5.2.4 with Suhosin-Patch configured -- resuming normal operations
[Tue Nov 27 10:34:31 2007] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
[Tue Nov 27 10:34:32 2007] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/favicon.ico
[Tue Nov 27 10:34:33 2007] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/favicon.ico
[Tue Nov 27 10:35:22 2007] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/favicon.ico
[Tue Nov 27 10:35:27 2007] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
[Tue Nov 27 10:35:27 2007] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/favicon.ico
[Tue Nov 27 10:37:40 2007] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/favicon.ico
[Tue Nov 27 10:37:45 2007] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/favicon.ico

und die access_log
127.0.0.1 - - [26/Nov/2007:14:09:22 +0100] "GET / HTTP/1.1" 403 1131 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.8) Gecko/20071015 SUSE/2.0.0.8-1.1 Firefox/2.0.0.8"
127.0.0.1 - - [26/Nov/2007:14:09:22 +0100] "GET /favicon.ico HTTP/1.1" 404 1165 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.8) Gecko/20071015 SUSE/2.0.0.8-1.1 Firefox/2.0.0.8"
127.0.0.1 - - [26/Nov/2007:14:58:30 +0100] "GET / HTTP/1.1" 403 1131 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.8) Gecko/20071015 SUSE/2.0.0.8-1.1 Firefox/2.0.0.8"
127.0.0.1 - - [26/Nov/2007:14:58:31 +0100] "GET /favicon.ico HTTP/1.1" 404 1165 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.8) Gecko/20071015 SUSE/2.0.0.8-1.1 Firefox/2.0.0.8"
127.0.0.1 - - [26/Nov/2007:14:59:23 +0100] "GET / HTTP/1.1" 403 1131 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.8) Gecko/20071015 SUSE/2.0.0.8-1.1 Firefox/2.0.0.8"
127.0.0.1 - - [26/Nov/2007:15:20:21 +0100] "GET / HTTP/1.1" 403 1131 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.8) Gecko/20071015 SUSE/2.0.0.8-1.1 Firefox/2.0.0.8"
127.0.0.1 - - [26/Nov/2007:15:20:27 +0100] "GET / HTTP/1.1" 403 1131 "http://localhost/" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.8) Gecko/20071015 SUSE/2.0.0.8-1.1 Firefox/2.0.0.8"
127.0.0.1 - - [26/Nov/2007:15:27:10 +0100] "GET / HTTP/1.1" 403 1131 "http://localhost/" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.8) Gecko/20071015 SUSE/2.0.0.8-1.1 Firefox/2.0.0.8"
127.0.0.1 - - [26/Nov/2007:20:31:22 +0100] "GET / HTTP/1.1" 403 1131 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.8) Gecko/20071015 SUSE/2.0.0.8-1.1 Firefox/2.0.0.8"
127.0.0.1 - - [26/Nov/2007:20:31:23 +0100] "GET /favicon.ico HTTP/1.1" 404 1165 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.8) Gecko/20071015 SUSE/2.0.0.8-1.1 Firefox/2.0.0.8"
127.0.0.1 - - [26/Nov/2007:20:31:34 +0100] "GET / HTTP/1.1" 403 1131 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.8) Gecko/20071015 SUSE/2.0.0.8-1.1 Firefox/2.0.0.8"
127.0.0.1 - - [26/Nov/2007:20:33:45 +0100] "GET / HTTP/1.1" 403 1131 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.8) Gecko/20071015 SUSE/2.0.0.8-1.1 Firefox/2.0.0.8"
127.0.0.1 - - [26/Nov/2007:20:33:45 +0100] "GET / HTTP/1.1" 403 1131 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.8) Gecko/20071015 SUSE/2.0.0.8-1.1 Firefox/2.0.0.8"
127.0.0.1 - - [26/Nov/2007:20:39:00 +0100] "GET / HTTP/1.1" 403 1131 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.8) Gecko/20071015 SUSE/2.0.0.8-1.1 Firefox/2.0.0.8"
127.0.0.1 - - [26/Nov/2007:21:09:47 +0100] "GET / HTTP/1.1" 403 1131 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.8) Gecko/20071015 SUSE/2.0.0.8-1.1 Firefox/2.0.0.8"
127.0.0.1 - - [26/Nov/2007:21:13:17 +0100] "GET / HTTP/1.1" 403 1131 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.8) Gecko/20071015 SUSE/2.0.0.8-1.1 Firefox/2.0.0.8"
127.0.0.1 - - [26/Nov/2007:21:14:25 +0100] "GET / HTTP/1.1" 403 1131 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.8) Gecko/20071015 SUSE/2.0.0.8-1.1 Firefox/2.0.0.8"
127.0.0.1 - - [26/Nov/2007:21:14:25 +0100] "GET /favicon.ico HTTP/1.1" 404 1165 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.8) Gecko/20071015 SUSE/2.0.0.8-1.1 Firefox/2.0.0.8"
127.0.0.1 - - [27/Nov/2007:10:34:31 +0100] "GET / HTTP/1.1" 403 1131 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.8) Gecko/20071015 SUSE/2.0.0.8-1.1 Firefox/2.0.0.8"
127.0.0.1 - - [27/Nov/2007:10:34:32 +0100] "GET /favicon.ico HTTP/1.1" 404 1165 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.8) Gecko/20071015 SUSE/2.0.0.8-1.1 Firefox/2.0.0.8"
127.0.0.1 - - [27/Nov/2007:10:34:33 +0100] "GET /favicon.ico HTTP/1.1" 404 1165 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.8) Gecko/20071015 SUSE/2.0.0.8-1.1 Firefox/2.0.0.8"
127.0.0.1 - - [27/Nov/2007:10:35:22 +0100] "GET /favicon.ico HTTP/1.1" 404 1165 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.8) Gecko/20071015 SUSE/2.0.0.8-1.1 Firefox/2.0.0.8"
127.0.0.1 - - [27/Nov/2007:10:35:27 +0100] "GET / HTTP/1.1" 403 1131 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.8) Gecko/20071015 SUSE/2.0.0.8-1.1 Firefox/2.0.0.8"
127.0.0.1 - - [27/Nov/2007:10:35:27 +0100] "GET /favicon.ico HTTP/1.1" 404 1165 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.8) Gecko/20071015 SUSE/2.0.0.8-1.1 Firefox/2.0.0.8"
127.0.0.1 - - [27/Nov/2007:10:37:40 +0100] "GET /favicon.ico HTTP/1.1" 404 1165 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.8) Gecko/20071015 SUSE/2.0.0.8-1.1 Firefox/2.0.0.8"
127.0.0.1 - - [27/Nov/2007:10:37:45 +0100] "GET /favicon.ico HTTP/1.1" 404 1165 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.8) Gecko/20071015 SUSE/2.0.0.8-1.1 Firefox/2.0.0.8"
 
OP
C

Corraggiouno

Member
da hät ich auch selbst drauf können, da liegt einfach keine index.html oder was auch immer drin!!
Ist das nicht so, daß bei Aufruf
http://localhost
die Testseite "Apache" erscheint?
Ist die Testseite bei einer Apache-Installation nicht mehr dabei?
 

revealed

Guru
also bei mir ist diese dabei gewesen. Eventuell solltest du das nochmal überprüfen.

eventuell hilft dir das RPM "apache2-example-pages" dabei weiter? Dazu könntest du dir die Dateiliste mal ansehen.

dein eigendliches Problem ist aber denke ich das hier:
Code:
[Mon Nov 26 14:09:22 2007] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/

was spricht denn:
Code:
ls -al /srv/www/htdocs
? Ich mein wegen der Berechtigungen, falls möglich.

was du auch versuchen kannst ist ein:

su
Code:
rcapache2 stop
rcapache2 configtest
Dieser sollte dir melden:
Code:
Syntax OK


Gruß

R
 
OP
C

Corraggiouno

Member
was bedeutet diese Meldung
rcapache2 start
Starting httpd2 (prefork) (98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
startproc: exit status of parent of /usr/sbin/httpd2-prefork: 1
die Eingabe von
Code:
rcapache2 configtest
ergibt:
 

revealed

Guru
versuch mal so:

im Terminal von KDE aus:

Code:
rcSuSEfirewall2 stop
rcapache2 stop
rcapache2 start
konqueror http://localhost # oder:
w3m http://localhost # falls nur bash

Gruß

R
 
Oben