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

Apache startet nicht Suse 42.1

Roemer

Newbie
Hallo Gemeinde
Beim versuch phpMyAdmin zu installieren und zu betreiben ist mir aufgefallen das der Apache nicht richtig läuft.

Eine Idee die ich hatte das ich das Problem durch Deinstallation und Neuinstallation beseitigt bekomme hat leider nicht Funktioniert. Von daher könnten benötigte Pakete fehlen
Beim Starten des Servers mit Webmin wird die Fehlermeldung erzeugt

Konnte Apache nicht starten : Apache scheint nicht zu laufen :
Die Apache Version ist 2.4.16
Code:
[Tue Jul 12 11:05:35.564496 2016] [core:notice] [pid 31481] AH00094: Command line: '/usr/sbin/httpd-prefork -f /etc/apache2/httpd.conf -D SYSCONFIG -D ICINGA -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d/ -D SYSTEMD -D FOREGROUND'
[Tue Jul 12 11:51:17.957418 2016] [mpm_prefork:notice] [pid 31481] AH00170: caught SIGWINCH, shutting down gracefully
AH00558: httpd-prefork: Could not reliably determine the server's fully qualified domain name, using 192.168.2.30. Set the 'ServerName' directive globally to suppress this message
[Tue Jul 12 11:51:18.173079 2016] [mpm_prefork:notice] [pid 32456] AH00163: Apache/2.4.16 (Linux/SUSE) configured -- resuming normal operations
[Tue Jul 12 11:51:18.173189 2016] [core:notice] [pid 32456] AH00094: Command line: '/usr/sbin/httpd-prefork -f /etc/apache2/httpd.conf -D SYSCONFIG -D ICINGA -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d/ -D SYSTEMD -D FOREGROUND'

Beim lesen in Foren habe ich versucht den Server mit der Konsole zu starten.
Die Meldungen sind
Code:
RoemersServerII:/srv/www/htdocs # apache2 start
If 'apache2' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf apache2

In einem Anderen Post war die Frage welche Pakete zur Verfügung stehen
hier die Liste
Code:
oemersServerII:/srv/www/htdocs # rpm -qa | grep apache
apache2-worker-2.4.16-9.1.x86_64
apache2-prefork-2.4.16-9.1.x86_64
apache2-2.4.16-9.1.x86_64
apache2-worker-debuginfo-2.4.16-9.1.x86_64
apache2-utils-debuginfo-2.4.16-9.1.x86_64
apache2-mod_php5-5.5.14-53.1.x86_64
apache2-utils-2.4.16-9.1.x86_64

Der Versuch hat keine Ausgabe gebracht

Code:
RoemersServerII:~ # 
RoemersServerII:~ # rcapache2 start
RoemersServerII:~ #
Meine Versuche nehme ich aus dem Beitrag http://linux-club.de/forum/viewtopic.php?t=88540
Mein kenntnisstand von Linux ist nicht so tief das ich die ausgaben einschätzen kann ob sie vergleichbar sind. Da bei dem Beitrag opensuse 10.3 lief und bei mir Suse 42.1 läuft sind so was wie die Versionsnummern der laufenden Anwendung unterschiedlich.
Ich kann mir auch vorstellen das bei dem 42.1 andere Prozesse wichtig sind.
Ich bedanke mich schon im voraus für die hilfe.
Bis dann
Roemer
 
OP
R

Roemer

Newbie
Hallo Sauerland
So eine Ausgabe habe ich in einem anderen Thema schon gefunden aber mit anderem Inhalt so das ich damit nichts anfangen konnte

Code:
RoemersServerII:~ # 
RoemersServerII:~ # systemctl status apache2.service
apache2.service - The Apache Webserver
   Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled)
   Active: active (running) since Tue 2016-07-12 16:30:09 CEST; 17h ago
  Process: 14998 ExecStop=/usr/sbin/start_apache2 -DSYSTEMD -DFOREGROUND -k graceful-stop (code=exited, status=0/SUCCESS)
 Main PID: 15017 (httpd-prefork)
   Status: "Total requests: 0; Current requests/sec: 0; Current traffic:   0 B/sec"
   CGroup: /system.slice/apache2.service
           ├─15017 /usr/sbin/httpd-prefork -f /etc/apache2/httpd.conf -DSYSCONFIG -DICINGA -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d/ -DSYSTEMD -DFOREGROUND -k start
           ├─15022 /usr/sbin/httpd-prefork -f /etc/apache2/httpd.conf -DSYSCONFIG -DICINGA -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d/ -DSYSTEMD -DFOREGROUND -k start
           ├─15023 /usr/sbin/httpd-prefork -f /etc/apache2/httpd.conf -DSYSCONFIG -DICINGA -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d/ -DSYSTEMD -DFOREGROUND -k start
           ├─15024 /usr/sbin/httpd-prefork -f /etc/apache2/httpd.conf -DSYSCONFIG -DICINGA -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d/ -DSYSTEMD -DFOREGROUND -k start
           ├─15025 /usr/sbin/httpd-prefork -f /etc/apache2/httpd.conf -DSYSCONFIG -DICINGA -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d/ -DSYSTEMD -DFOREGROUND -k start
           └─15026 /usr/sbin/httpd-prefork -f /etc/apache2/httpd.conf -DSYSCONFIG -DICINGA -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d/ -DSYSTEMD -DFOREGROUND -k start

Jul 12 16:30:09 RoemersServerII start_apache2[15017]: AH00558: httpd-prefork: Could not reliably determine the server's fully qualified domain name, using 192.168.2.30. Set the 'ServerName' directive glo...s this message
Jul 12 16:30:09 RoemersServerII systemd[1]: Started The Apache Webserver.
Hint: Some lines were ellipsized, use -l to show in full.
RoemersServerII:~ #
 

marce

Guru
für mich sagt die Ausgabe, daß der Apache läuft.

Woran machst Du denn fest, daß er nicht läuft? Sind die Prozesse vorhanden? Was sagt Error- und Access-Log?
 
OP
R

Roemer

Newbie
Hallo marko
Hast recht. Wenn ich die Seite des Servers aufrufe kommt die Meldung
Code:
Access forbidden!

You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

If you think this is a server error, please contact the webmaster.
Error 403
192.168.2.30
Apache
Das Sagt ja das Apache läuft und es ein Rechteproblem ist.
Meine Schlussfolgerung kam durch Webmin
die Ausgabe ist wenn ich Apache starten will ist:
Durch meine Legasthenie bin ich halt bestrebt möglichst Graphische Oberflächen nutzen zu wollen bzw. zu müssen.
Code:
	Fehler 	
Konnte Apache nicht starten : Apache scheint nicht zu laufen :

[Tue Jul 12 16:30:09.056642 2016] [core:notice] [pid 15017] AH00094: Command line: '/usr/sbin/httpd-prefork -f /etc/apache2/httpd.conf -D SYSCONFIG -D ICINGA -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d/ -D SYSTEMD -D FOREGROUND'
[Wed Jul 13 10:25:52.170585 2016] [mpm_prefork:notice] [pid 15017] AH00170: caught SIGWINCH, shutting down gracefully
AH00558: httpd-prefork: Could not reliably determine the server's fully qualified domain name, using 192.168.2.30. Set the 'ServerName' directive globally to suppress this message
[Wed Jul 13 10:25:52.434973 2016] [mpm_prefork:notice] [pid 8604] AH00163: Apache/2.4.16 (Linux/SUSE) configured -- resuming normal operations
[Wed Jul 13 10:25:52.435087 2016] [core:notice] [pid 8604] AH00094: Command line: '/usr/sbin/httpd-prefork -f /etc/apache2/httpd.conf -D SYSCONFIG -D ICINGA -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d/ -D SYSTEMD -D FOREGROUND'
Ich kenne den Webserver aus den vorherigen Suse Versionen so das es automatisch eine Standartwebseite von Suse kreiert gibt und nicht die Fehlermeldung zugriff verweigert erscheint.
Was kann ich tun mit er auch benutzbar ist.

Das Problem mit dem phpMyAdmin mache ich dann ein neues Thema auf.
 
OP
R

Roemer

Newbie
Hallo marko und Sauerland
Das Problem mit MyAdmin habe ich inzwischen auch gelöst. Fehler gefunden.
Auf der Seite http://www.php-kurs.com/mysql-anweisungen-lernen---phpmyadmin-nutzen.htm
hjabe ich mir den Link http://localhost/phpmyadmin/ kopiert und in die Adresszeile eingetragen.
Daraufhin habe ich die Fehlermeldung bekommen
Code:
Object not found!

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

If you think this is a server error, please contact the webmaster.
Error 404
localhost
Apache

Als ich weitergesucht habe habe ich ein anderen Thred erwischt mit dem Link http://localhost/phpMyAdmin/ mit dem Hinweis Case Sensetiv
Den Beitrag habe ich jetzt nicht mehr gefunden um die URL mit Posten zu können.
Auf jeden Fall jetzt funktioniert alles wunschgemäß.
Ich nehme an das wenn ich eine Webseite in Apache einrichte bekomme ich die art der Fehlermeldungen nicht mehr. Das ist aber für mich ein späteres Problem.

Danke für die Hilfe.
ich hoffe das ich später die empfangene Hilfe weitergeben kann. Wird bloß noch ne weile dauern. Aber mit meinem Positiven denken wird es schon Funktionieren.
 
Oben