wolfgang1939
Anmeldungsdatum: 28. November 2009
Beiträge: 700
Wohnort: Nürnberg
|
Hallo, bei mir ist, nehme ich an, das Paket apache2 kaputt.
Wenn ich in das Terminal folgendes eintippe: sudo service apache2 status , dann kommt in einer unter vielen Zeilen die Zeile Active: failed . Wenn das Paket apache2 funktionstüchtig wäre, dann müsste dort stehen: Active: active(running). Nun bitte ich Euch, wer hilft mir, dieses Paket zu reparieren. Gruß Wolfgang Moderiert von Cruiz: Dieses Thema ist verschoben worden. Bitte beachte die als wichtig markierten Themen („Welche Themen gehören hier her und welche nicht?“)!
Bearbeitet von sebix: Gelbe Hinterlegung, die fuer Code gedacht ist, entfernt und durch andere Formatierung ersetzt.
|
tomtomtom
Supporter
Anmeldungsdatum: 22. August 2008
Beiträge: 53602
Wohnort: Berlin
|
Da wäre dann natürlich schon das Log interessant... Das hat in der Regel auch wenig mit "dem Paket apache2" zu tun, sondern mit falscher Konfiguration.
|
Into_the_Pit
Ehemalige
Anmeldungsdatum: 25. Juni 2008
Beiträge: 9490
Wohnort: Bochum
|
Sofern Du bewusst den Webserver installiert und konfiguriert hast, kannst Du die Konfiguration mit einem
sudo apache2ctl -t
überprüfen. Bei einem Syntaxfehler wird Dir entsprechend ein Hinweis angezeigt.
|
wolfgang1939
(Themenstarter)
Anmeldungsdatum: 28. November 2009
Beiträge: 700
Wohnort: Nürnberg
|
Vielen Dank für die schnelle Antwort. wolfgang@wolfgang-MS-7800:~$ sudo apache2ctl -t
[sudo] Passwort für wolfgang:
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Syntax OK
wolfgang@wolfgang-MS-7800:~$ Es wird gemeldet: Syntax OK . Findet Ihr das OK ? Ich brauche das apache2 um eine Datenbank einzurichten. Gruß Wolfgang Bearbeitet von sebix: Gelbe Hinterlegung, die fuer Code gedacht ist, entfernt und durch andere Formatierung ersetzt.
|
Into_the_Pit
Ehemalige
Anmeldungsdatum: 25. Juni 2008
Beiträge: 9490
Wohnort: Bochum
|
Dann zeig doch mal die Ausgaben von
systemctl status apache2.service
systemctl start apapche2.service
journalctl -u apache2 -xe
ss -talp
|
wolfgang1939
(Themenstarter)
Anmeldungsdatum: 28. November 2009
Beiträge: 700
Wohnort: Nürnberg
|
Into_the_Pit schrieb: Dann zeig doch mal die Ausgaben von
wolfgang@wolfgang-MS-7800:~$ systemctl status apache2.service
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset:
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since Sat 2018-05-19 13:01:34 CEST; 6min a
Process: 1190 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILU
Mai 19 13:01:33 wolfgang-MS-7800 systemd[1]: Starting The Apache HTTP Server...
Mai 19 13:01:34 wolfgang-MS-7800 apachectl[1190]: AH00558: apache2: Could not re
Mai 19 13:01:34 wolfgang-MS-7800 apachectl[1190]: Action 'start' failed.
Mai 19 13:01:34 wolfgang-MS-7800 apachectl[1190]: The Apache error log may have
Mai 19 13:01:34 wolfgang-MS-7800 systemd[1]: apache2.service: Control process ex
Mai 19 13:01:34 wolfgang-MS-7800 systemd[1]: apache2.service: Failed with result
Mai 19 13:01:34 wolfgang-MS-7800 systemd[1]: Failed to start The Apache HTTP Ser
lines 1-14/14 (END)
Ich habe dann strg C gedrückt. wolfgang@wolfgang-MS-7800:~$ systemctl start apapche2.service
Failed to start apapche2.service: Unit apapche2.service not found.
wolfgang@wolfgang-MS-7800:~$
wolfgang@wolfgang-MS-7800:~$ journalctl -u apache2 -xe
-- Unit apache2.service has failed.
--
-- The result is RESULT.
-- Reboot --
Mai 19 13:01:33 wolfgang-MS-7800 systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit apache2.service has begun start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit apache2.service has begun starting up.
Mai 19 13:01:34 wolfgang-MS-7800 apachectl[1190]: AH00558: apache2: Could not re
Mai 19 13:01:34 wolfgang-MS-7800 apachectl[1190]: Action 'start' failed.
Mai 19 13:01:34 wolfgang-MS-7800 apachectl[1190]: The Apache error log may have
Mai 19 13:01:34 wolfgang-MS-7800 systemd[1]: apache2.service: Control process ex
Mai 19 13:01:34 wolfgang-MS-7800 systemd[1]: apache2.service: Failed with result
Mai 19 13:01:34 wolfgang-MS-7800 systemd[1]: Failed to start The Apache HTTP Ser
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit apache2.service has failed.
--
-- The result is RESULT.
lines 2576-2598/2598 (END)
wolfgang@wolfgang-MS-7800:~$ ss -talp
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 80 127.0.0.1:mysql 0.0.0.0:*
LISTEN 0 128 127.0.0.53%lo:domain 0.0.0.0:*
LISTEN 0 5 127.0.0.1:ipp 0.0.0.0:*
LISTEN 0 32 *:ftp *:*
LISTEN 0 5 [::1]:ipp [::]:*
wolfgang@wolfgang-MS-7800:~$ Hoffentlich habe ich alles richtig gemacht. (Durch das kopieren + einfügen übernimmt man das einfach so. Jetzt ist mir aufgefallen, dass bei dem 2. Terminalbefehl eventuell ein Schreibfehler vorhanden ist. Das ist der verdächtige Befehl: systemctl start apapche2.service. Wenn ja, dann wiederhole ich das berichtigt. ) Ich will es lieber 'mal gleich machen:
wolfgang@wolfgang-MS-7800:~$ systemctl start apache2.service
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
wolfgang@wolfgang-MS-7800:~$
Gruß Wolfgang
|
Into_the_Pit
Ehemalige
Anmeldungsdatum: 25. Juni 2008
Beiträge: 9490
Wohnort: Bochum
|
Dir ist hoffentlich aufgefallen, dass die Auszüge nicht vollständig angezeigt werden in Deinem Paste? Somit sind sie nutzlos. wolfgang1939 schrieb: Ich habe dann strg C gedrückt.
Mit q kann man das beenden. Pack mal den Inhalt des error.log hier rein, das liegt in /var/log/apache2.
|
wolfgang1939
(Themenstarter)
Anmeldungsdatum: 28. November 2009
Beiträge: 700
Wohnort: Nürnberg
|
Into_the_Pit schrieb: Pack mal den Inhalt des error.log hier rein, das liegt in /var/log/apache2.
Der Inhalt von error.log sieht so aus: [Sat May 19 13:01:34.016001 2018] [wsgi:crit] [pid 1210] mod_wsgi (pid=1210): The mod_python module can not be used in conjunction with mod_wsgi 4.0+. Remove the mod_python module from the Apache configuration.
AH00016: Configuration Failed
[Sat May 19 13:37:54.276152 2018] [wsgi:crit] [pid 2724] mod_wsgi (pid=2724): The mod_python module can not be used in conjunction with mod_wsgi 4.0+. Remove the mod_python module from the Apache configuration.
AH00016: Configuration Failed
[Sat May 19 17:50:44.975252 2018] [wsgi:crit] [pid 1221] mod_wsgi (pid=1221): The mod_python module can not be used in conjunction with mod_wsgi 4.0+. Remove the mod_python module from the Apache configuration.
AH00016: Configuration Failed Into_the_Pit schrieb: Dir ist hoffentlich aufgefallen, dass die Auszüge nicht vollständig angezeigt werden in Deinem Paste? Somit sind sie nutzlos.
Wenn noch etwas fehlt, dann schicke ich es gerne noch einmal. Gruß Wolfgang Bearbeitet von sebix: Bitte verwende in Zukunft Codeblöcke, um die Übersicht im Forum zu verbessern!
|
tomtomtom
Supporter
Anmeldungsdatum: 22. August 2008
Beiträge: 53602
Wohnort: Berlin
|
wolfgang1939 schrieb: The mod_python module can not be used in conjunction with mod_wsgi 4.0+. Remove the mod_python module from the Apache configuration
Fehlermeldung plus Fehlerbereinigungs-Vorschlag. Das ist doch mal ein Service...
|
noisefloor
Ehemaliger
Anmeldungsdatum: 6. Juni 2006
Beiträge: 29049
Wohnort: WW
|
Hallo, wieso hast du mod_python installiert? Das ist doch schon seit Jahren toter als tot... WSGI ist seit ca. 10 Jahren der de-facto Standard für Webapplikationen mit Python. Für den Apache brauchst du dann nur mod_wsgi (was - wie die Fehlermeldung ja sagt - nicht gleichzeitig mit mod_python läuft). Hint: zum Ausliefern von Python WSGI-Webapplikationen ist der Apache nicht 1. Wahl. Die Nutzung eines WSGI-Applikationsserver wie Gunicorn, ggf. in Kombination mit nginx als Revers Proxy, ist einfacher zu konfigurieren und flexibler in der Nutzung. Gruß, noisefloor
|
wolfgang1939
(Themenstarter)
Anmeldungsdatum: 28. November 2009
Beiträge: 700
Wohnort: Nürnberg
|
noisefloor schrieb: wieso hast du mod_python installiert?
Ich habe in Synaptic das Paket libapache2-mod-python festgestellt. Wenn das Eure Expertenmeinung ist, dann werde ich das Paket entfernen, oder? Gruß Wolfgang Bearbeitet von sebix: Gelbe Hinterlegung, die fuer Code gedacht ist, entfernt und durch andere Formatierung ersetzt.
|
noisefloor
Ehemaliger
Anmeldungsdatum: 6. Juni 2006
Beiträge: 29049
Wohnort: WW
|
Hallo, dann ist die Frage: warum hast du es installiert? Gruß, noisefloor
|
coram
Anmeldungsdatum: 17. Januar 2015
Beiträge: 645
Wohnort: Freiburg
|
Alle Jahre wieder: 2015, 2016 ... Warum, wolfgang1939, installierst Du das problematische Python-Modul immer wieder neu, obwohl Du es doch ganz offensichtlich nicht benötigst? 😉
|
wolfgang1939
(Themenstarter)
Anmeldungsdatum: 28. November 2009
Beiträge: 700
Wohnort: Nürnberg
|
Das Paket libapache2-mod-python habe ich jetzt in der Paketverwaltung Synaptic deinstalliert. Das Paket libapache2-mod-wsgi ist installiert (grün). noisefloor schrieb: dann ist die Frage: warum hast du es installiert?
Ich schreibe mir so gut es geht auf, wie ich nach Versionsumstellung (Upgrade) die Datenbank wieder einrichten kann. Und da stand das Paket libapache2-mod-python mit dabei. Gruß Wolfgang
|
wolfgang1939
(Themenstarter)
Anmeldungsdatum: 28. November 2009
Beiträge: 700
Wohnort: Nürnberg
|
Das apache2 - Paket ist anscheinend wieder in Ordnung:
wolfgang@wolfgang-MS-7800:~$ sudo service apache2 status
[sudo] Passwort für wolfgang:
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset:
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: active (running) since Wed 2018-05-23 13:18:51 CEST; 50min ago
Process: 1190 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCE
Main PID: 1266 (apache2)
Tasks: 12 (limit: 4014)
CGroup: /system.slice/apache2.service
├─1266 /usr/sbin/apache2 -k start
├─1287 /usr/sbin/apache2 -k start
├─1288 /usr/sbin/apache2 -k start
├─1289 /usr/sbin/apache2 -k start
├─1290 /usr/sbin/apache2 -k start
├─1292 /usr/sbin/apache2 -k start
├─2729 /usr/sbin/apache2 -k start
├─2730 /usr/sbin/apache2 -k start
├─2731 /usr/sbin/apache2 -k start
├─2732 /usr/sbin/apache2 -k start
├─2733 /usr/sbin/apache2 -k start
└─2734 /usr/sbin/apache2 -k start
Mai 23 13:18:51 wolfgang-MS-7800 systemd[1]: Starting The Apache HTTP Server...
...skipping...
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: active (running) since Wed 2018-05-23 13:18:51 CEST; 50min ago
Process: 1190 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCE
Main PID: 1266 (apache2)
Tasks: 12 (limit: 4014)
CGroup: /system.slice/apache2.service
├─1266 /usr/sbin/apache2 -k start
├─1287 /usr/sbin/apache2 -k start
├─1288 /usr/sbin/apache2 -k start
├─1289 /usr/sbin/apache2 -k start
├─1290 /usr/sbin/apache2 -k start
├─1292 /usr/sbin/apache2 -k start
├─2729 /usr/sbin/apache2 -k start
├─2730 /usr/sbin/apache2 -k start
├─2731 /usr/sbin/apache2 -k start
├─2732 /usr/sbin/apache2 -k start
├─2733 /usr/sbin/apache2 -k start
└─2734 /usr/sbin/apache2 -k start
Mai 23 13:18:51 wolfgang-MS-7800 systemd[1]: Starting The Apache HTTP Server...
Mai 23 13:18:51 wolfgang-MS-7800 apachectl[1190]: AH00558: apache2: Could not re
Mai 23 13:18:51 wolfgang-MS-7800 systemd[1]: Started The Apache HTTP Server.
...skipping...
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: active (running) since Wed 2018-05-23 13:18:51 CEST; 50min ago
Process: 1190 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCE
Main PID: 1266 (apache2)
Tasks: 12 (limit: 4014)
CGroup: /system.slice/apache2.service
├─1266 /usr/sbin/apache2 -k start
├─1287 /usr/sbin/apache2 -k start
├─1288 /usr/sbin/apache2 -k start
├─1289 /usr/sbin/apache2 -k start
├─1290 /usr/sbin/apache2 -k start
├─1292 /usr/sbin/apache2 -k start
├─2729 /usr/sbin/apache2 -k start
├─2730 /usr/sbin/apache2 -k start
├─2731 /usr/sbin/apache2 -k start
├─2732 /usr/sbin/apache2 -k start
├─2733 /usr/sbin/apache2 -k start
└─2734 /usr/sbin/apache2 -k start
Mai 23 13:18:51 wolfgang-MS-7800 systemd[1]: Starting The Apache HTTP Server...
Mai 23 13:18:51 wolfgang-MS-7800 apachectl[1190]: AH00558: apache2: Could not re
Mai 23 13:18:51 wolfgang-MS-7800 systemd[1]: Started The Apache HTTP Server.
lines 3-25/25 (END)
Es steht also wieder da : Active: active (running) . Die Sache ist dann wohl wieder in Ordnung. Ich danke für Eure Antworten.
Gruß Wolfgang
|