Hallo zusammen!
Das ist mein erster Beitrag hier.
Bin seit ein paar Tagen Besitzer des Raspberry Pi 4B (4GB) und hab schon einiges am Start, unter anderem auch die NextCloud-Applikation.
Daneben läuft auch schon (wenn auch nur lokal und noch nicht via Internet erreichbar) die RocketChat-Applikation.
Gestern wollte ich mit Hilfe dieses Videos einen ReverseProxy erstellen - genau für den besagten RocketChat:
https://www.youtube.com/watch?v=yPwTbW-gxJk
Ebenso wird in diesem Video auch gezeigt, wie man mit Hilfe von LET'S-ENCRYPT auch ein gescheites SSL-Zertifkat dafür bekommt.
Aber ich scheitere schon beim Starten des Apache:
root@raspberrypi:/home/pi# apachectl start
Invoking 'systemctl start apache2'.
Use 'systemctl status apache2' for more info.
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
Action 'start' failed.
The Apache error log may have more information.
root@raspberrypi:/home/pi# systemctl status apache2.service
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2019-12-03 18:02:52 CET; 16s ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 13842 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
Dez 03 18:02:51 raspberrypi systemd[1]: Starting The Apache HTTP Server...
Dez 03 18:02:52 raspberrypi apachectl[13842]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Dez 03 18:02:52 raspberrypi apachectl[13842]: no listening sockets available, shutting down
Dez 03 18:02:52 raspberrypi apachectl[13842]: AH00015: Unable to open logs
Dez 03 18:02:52 raspberrypi apachectl[13842]: Action 'start' failed.
Dez 03 18:02:52 raspberrypi apachectl[13842]: The Apache error log may have more information.
Dez 03 18:02:52 raspberrypi systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Dez 03 18:02:52 raspberrypi systemd[1]: apache2.service: Failed with result 'exit-code'.
Dez 03 18:02:52 raspberrypi systemd[1]: Failed to start The Apache HTTP Server.
root@raspberrypi:/home/pi#
Display More
Momentan stehe ich echt auf'm Schlauch und finde den Fehler nicht.
Es scheint ja das Binden an Port 80 fehlerhaft zu sein (siehe oben!)
Ganz allgemein kommt immer das hier:
root@raspberrypi:/home/pi# /etc/init.d/apache2 restart
[....] Restarting apache2 (via systemctl): apache2.serviceJob for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
failed!
root@raspberrypi:/home/pi#
Auf Port 80 läuft ja auch immer noch was:
root@raspberrypi:/home/pi# netstat -lnp | grep :80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2876/httpd
Wenn ich den Prozess kille, ist sofort wieder ein neuer da:
root@raspberrypi:/home/pi# kill -9 2876
root@raspberrypi:/home/pi# netstat -lnp | grep :80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2877/httpd
Ich kann wohl etwas stoppen:
root@raspberrypi:/home/pi# /etc/init.d/apache2 stop
[ ok ] Stopping apache2 (via systemctl): apache2.service.
Aber beim Start kommt immer wieder das hier:
root@raspberrypi:/home/pi# /etc/init.d/apache2 start
[....] Starting apache2 (via systemctl): apache2.serviceJob for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
failed!
Via "apt-get --purge remove apache2" und "apt autoremove" ging auch alles weg.
Danach Neuinstallation mit "apt-get install apache2 -y" war alles wieder da.
Daher gehe ich mal davon aus, dass es nicht so viel sein kann.
Jedoch bin in Sachen Linux nicht so fit und bin auf Eure Hilfe angewiesen.
Danke schon jetzt an alle, die helfen möchten hier.
LG ARTsoft