Apache2 startet nicht

Debian macht sich hervorragend als Web- und Mailserver. Schau auch in den " Tipps und Tricks"-Bereich.
Antworten
flexone2018
Beiträge: 9
Registriert: 19.04.2018 21:14:35

Apache2 startet nicht

Beitrag von flexone2018 » 19.04.2018 22:09:01

Hallo,
ich bin neu hier und auf der suche nach einer Lösung für mein Problem.
Leider konnte ich noch nichts hilfreiches über google finden und deswegen dachte ich ich frage mal hier nach.

Zum Problem Apache2 startet nicht und gibt folgende Meldungen aus.

systemctl status apache2

Code: Alles auswählen

root@debian2virtual:/# systemctl status apache2
● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2018-04-19 20:44:47 CEST; 35min ago

Apr 19 20:44:47 debian2virtual apachectl[1024]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Apr 19 20:44:47 debian2virtual apachectl[1024]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Apr 19 20:44:47 debian2virtual apachectl[1024]: no listening sockets available, shutting down
Apr 19 20:44:47 debian2virtual apachectl[1024]: AH00015: Unable to open logs
Apr 19 20:44:47 debian2virtual apachectl[1024]: Action 'start' failed.
Apr 19 20:44:47 debian2virtual apachectl[1024]: The Apache error log may have more information.
Apr 19 20:44:47 debian2virtual systemd[1]: apache2.service: Control process exited, code=exited status=1
Apr 19 20:44:47 debian2virtual systemd[1]: Failed to start The Apache HTTP Server.
Apr 19 20:44:47 debian2virtual systemd[1]: apache2.service: Unit entered failed state.
Apr 19 20:44:47 debian2virtual systemd[1]: apache2.service: Failed with result 'exit-code'.

journalctl -xe

Code: Alles auswählen

-- Logs begin at Thu 2018-04-19 21:41:41 CEST, end at Thu 2018-04-19 22:03:26 CEST. --
Apr 19 21:41:41 debian2virtual kernel: Linux version 4.9.0-6-amd64 (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02)
Apr 19 21:41:41 debian2virtual kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-4.9.0-6-amd64 root=/dev/sda1 ro quiet
Apr 19 21:41:41 debian2virtual kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Apr 19 21:41:41 debian2virtual kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
Apr 19 21:41:41 debian2virtual kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
Apr 19 21:41:41 debian2virtual kernel: x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
Apr 19 21:41:41 debian2virtual kernel: x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
Apr 19 21:41:41 debian2virtual kernel: x86/fpu: Using 'eager' FPU context switches.
Apr 19 21:41:41 debian2virtual kernel: e820: BIOS-provided physical RAM map:
Apr 19 21:41:41 debian2virtual kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
Apr 19 21:41:41 debian2virtual kernel: BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
Apr 19 21:41:41 debian2virtual kernel: BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
Apr 19 21:41:41 debian2virtual kernel: BIOS-e820: [mem 0x0000000000100000-0x000000005ffeffff] usable
Apr 19 21:41:41 debian2virtual kernel: BIOS-e820: [mem 0x000000005fff0000-0x000000005fffffff] ACPI data
Apr 19 21:41:41 debian2virtual kernel: BIOS-e820: [mem 0x00000000fec00000-0x00000000fec00fff] reserved
Apr 19 21:41:41 debian2virtual kernel: BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved
Apr 19 21:41:41 debian2virtual kernel: BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
Apr 19 21:41:41 debian2virtual kernel: NX (Execute Disable) protection: active
Apr 19 21:41:41 debian2virtual kernel: SMBIOS 2.5 present.
Apr 19 21:41:41 debian2virtual kernel: DMI: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006
Apr 19 21:41:41 debian2virtual kernel: Hypervisor detected: KVM
Apr 19 21:41:41 debian2virtual kernel: e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
Apr 19 21:41:41 debian2virtual kernel: e820: remove [mem 0x000a0000-0x000fffff] usable
-- The start-up result is done.
Apr 19 21:43:02 debian2virtual systemd[1]: Starting RPC bind portmap service...
-- Subject: Unit rpcbind.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit rpcbind.service has begun starting up.
Apr 19 21:43:02 debian2virtual systemd[1]: Started RPC bind portmap service.
-- Subject: Unit rpcbind.service has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit rpcbind.service has finished starting up.
-- 
-- The start-up result is done.
Apr 19 21:43:02 debian2virtual systemd[1]: Reached target RPC Port Mapper.
-- Subject: Unit rpcbind.target has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit rpcbind.target has finished starting up.
-- 
-- The start-up result is done.
Apr 19 21:43:02 debian2virtual systemd[1]: Reached target Remote File Systems (Pre).
-- Subject: Unit remote-fs-pre.target has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit remote-fs-pre.target has finished starting up.
-- 
-- The start-up result is done.
Apr 19 21:43:04 debian2virtual useradd[2015]: new user: name=statd, UID=114, GID=65534, home=/var/lib/nfs, shell=/bin/false
Apr 19 21:43:04 debian2virtual usermod[2020]: change user 'statd' password
Apr 19 21:43:04 debian2virtual chage[2025]: changed password expiry for statd
Apr 19 21:43:04 debian2virtual systemd[1]: Reloading.
Apr 19 21:43:04 debian2virtual systemd[1]: apt-daily.timer: Adding 8h 21min 5.936489s random time.
Apr 19 21:43:04 debian2virtual systemd[1]: anacron.timer: Adding 3min 44.999009s random time.
Apr 19 21:43:04 debian2virtual systemd[1]: apt-daily-upgrade.timer: Adding 28min 54.324205s random time.
Apr 19 21:43:04 debian2virtual systemd[1]: Reloading.
Apr 19 21:43:05 debian2virtual systemd[1]: apt-daily.timer: Adding 5h 12min 59.322796s random time.
Apr 19 21:43:05 debian2virtual systemd[1]: anacron.timer: Adding 2min 11.809114s random time.
Apr 19 21:43:05 debian2virtual systemd[1]: apt-daily-upgrade.timer: Adding 9min 37.881738s random time.
Apr 19 21:43:05 debian2virtual systemd[1]: Reloading.
Apr 19 21:43:05 debian2virtual systemd[1]: apt-daily.timer: Adding 4h 24min 38.239333s random time.
Apr 19 21:43:05 debian2virtual systemd[1]: anacron.timer: Adding 4min 17.124181s random time.
Apr 19 21:43:05 debian2virtual systemd[1]: apt-daily-upgrade.timer: Adding 50min 10.428585s random time.
Apr 19 21:43:05 debian2virtual systemd[1]: Reloading.
Apr 19 21:43:05 debian2virtual systemd[1]: apt-daily-upgrade.timer: Adding 57min 41.017708s random time.
Apr 19 21:43:05 debian2virtual systemd[1]: apt-daily.timer: Adding 10h 38min 14.245549s random time.
Apr 19 21:43:05 debian2virtual systemd[1]: anacron.timer: Adding 3min 15.257752s random time.
Apr 19 21:43:05 debian2virtual systemd[1]: Reloading.
Apr 19 21:43:05 debian2virtual systemd[1]: apt-daily.timer: Adding 10h 6min 37.003605s random time.
Apr 19 21:43:05 debian2virtual systemd[1]: apt-daily-upgrade.timer: Adding 13min 22.792853s random time.
Apr 19 21:43:05 debian2virtual systemd[1]: anacron.timer: Adding 1min 26.107752s random time.
Apr 19 21:43:25 debian2virtual systemd[1]: getty@tty1.service: Service has no hold-off time, scheduling restart.
Apr 19 21:43:25 debian2virtual systemd[1]: Stopped Getty on tty1.
-- Subject: Unit getty@tty1.service has finished shutting down
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit getty@tty1.service has finished shutting down.
Apr 19 21:43:25 debian2virtual systemd[1]: Started Getty on tty1.
-- Subject: Unit getty@tty1.service has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit getty@tty1.service has finished starting up.
-- 
-- The start-up result is done.
Apr 19 21:50:01 debian2virtual CRON[2171]: pam_unix(cron:session): session opened for user root by (uid=0)
Apr 19 21:50:01 debian2virtual CRON[2172]: (root) CMD (   PATH="$PATH:/usr/local/bin/" pihole updatechecker local)
Apr 19 21:50:02 debian2virtual CRON[2171]: pam_unix(cron:session): session closed for user root
Apr 19 21:50:44 debian2virtual kernel: ntfs: driver 2.1.32 [Flags: R/O MODULE].
Apr 19 21:53:40 debian2virtual kernel: FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
Apr 19 21:55:45 debian2virtual kernel: usb 1-1: USB disconnect, device number 2
Apr 19 21:56:47 debian2virtual systemd[1]: Starting Cleanup of Temporary Directories...
-- Subject: Unit systemd-tmpfiles-clean.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit systemd-tmpfiles-clean.service has begun starting up.
Apr 19 21:56:47 debian2virtual systemd[1]: Started Cleanup of Temporary Directories.
-- Subject: Unit systemd-tmpfiles-clean.service has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit systemd-tmpfiles-clean.service has finished starting up.
-- 
-- The start-up result is done.
Apr 19 22:00:01 debian2virtual CRON[2282]: pam_unix(cron:session): session opened for user root by (uid=0)
Apr 19 22:00:01 debian2virtual CRON[2283]: (root) CMD (   PATH="$PATH:/usr/local/bin/" pihole updatechecker local)
Apr 19 22:00:01 debian2virtual CRON[2282]: pam_unix(cron:session): session closed for user root
Apr 19 22:01:47 debian2virtual systemd[1]: Started Run anacron jobs.
-- Subject: Unit anacron.service has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit anacron.service has finished starting up.
-- 
-- The start-up result is done.
Apr 19 22:01:47 debian2virtual anacron[2297]: Anacron 2.3 started on 2018-04-19
Apr 19 22:01:47 debian2virtual anacron[2297]: Normal exit (0 jobs run)
Apr 19 22:01:47 debian2virtual systemd[1]: anacron.timer: Adding 18.890475s random time.
Apr 19 22:03:26 debian2virtual systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit apache2.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit apache2.service has begun starting up.
Apr 19 22:03:26 debian2virtual apachectl[2310]: 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
Apr 19 22:03:26 debian2virtual apachectl[2310]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Apr 19 22:03:26 debian2virtual apachectl[2310]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Apr 19 22:03:26 debian2virtual apachectl[2310]: no listening sockets available, shutting down
Apr 19 22:03:26 debian2virtual apachectl[2310]: AH00015: Unable to open logs
Apr 19 22:03:26 debian2virtual apachectl[2310]: Action 'start' failed.
Apr 19 22:03:26 debian2virtual apachectl[2310]: The Apache error log may have more information.
Apr 19 22:03:26 debian2virtual systemd[1]: apache2.service: Control process exited, code=exited status=1
Apr 19 22:03:26 debian2virtual systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit apache2.service has failed.
-- 
-- The result is failed.
Apr 19 22:03:26 debian2virtual systemd[1]: apache2.service: Unit entered failed state.
Apr 19 22:03:26 debian2virtual systemd[1]: apache2.service: Failed with result 'exit-code'.
ich musste den code leider kürzen sollte der Rest noch relevant sein dann muss ich es irgendwie anders uploaden


Des weiteren ist mir aufgefallen das einige WebGUIs von meinem Server gehen und andere nicht,
es geht:
pi-hole webgui
openmediavault webgui

es geht nicht:
webmin webgui
volkszähler org webgui

ich hoffe es hat dafür jemand eine Lösung.

DeletedUserReAsG

Re: Apache2 startet nicht

Beitrag von DeletedUserReAsG » 19.04.2018 22:22:31

Code: Alles auswählen

Apr 19 20:44:47 debian2virtual apachectl[1024]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Apr 19 20:44:47 debian2virtual apachectl[1024]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Mit netstat oder auch mit lsof könntest du nun schauen, was dort schon läuft und den Start deines httpd verhindert.

OT:
ich musste den code leider kürzen sollte der Rest noch relevant sein dann muss ich es irgendwie anders uploaden
Ist so eigentlich schon viel zu lang. Du solltest die mit „WICHTIGER HINWEIS“ überschriebenen Punkte beim Erstellen eines Beitrags mal lesen – da steht die Lösung.

flexone2018
Beiträge: 9
Registriert: 19.04.2018 21:14:35

Re: Apache2 startet nicht

Beitrag von flexone2018 » 20.04.2018 16:34:11

ich habe mal netstat ausgeführt und lsof auch.
lsof ist zu lang zum posten. und direkt das problem finde ich bei beiden nicht.


root@debian2virtual:/home/flex# netstat
Aktive Internetverbindungen (ohne Server)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 192.168.178.92:ssh 192.168.178.53:33616 VERBUNDEN
tcp 0 0 192.168.178.92:48744 ftp.de.debian.org:http TIME_WAIT
Aktive Sockets in der UNIX-Domäne (ohne Server)
Proto RefCnt Flags Type State I-Node Pfad
unix 2 [ ] DGRAM 13884 /run/user/999/systemd/notify
unix 3 [ ] DGRAM 9557 /run/systemd/notify
unix 2 [ ] DGRAM 9559 /run/systemd/cgroups-agent
unix 8 [ ] DGRAM 9575 /run/systemd/journal/socket
unix 2 [ ] DGRAM 9592 /run/systemd/journal/syslog
unix 10 [ ] DGRAM 9605 /run/systemd/journal/dev-log
unix 2 [ ] DGRAM 17095 /run/user/1000/systemd/notify
unix 3 [ ] STREAM VERBUNDEN 14549
unix 2 [ ] DGRAM 11210
unix 3 [ ] STREAM VERBUNDEN 12850
unix 3 [ ] STREAM VERBUNDEN 13583 /var/run/cups/cups.sock
unix 3 [ ] STREAM VERBUNDEN 13586
unix 3 [ ] STREAM VERBUNDEN 13412
unix 2 [ ] DGRAM 17060
unix 3 [ ] DGRAM 13886
unix 3 [ ] STREAM VERBUNDEN 10927 /run/systemd/journal/stdout
unix 3 [ ] DGRAM 13887
unix 3 [ ] STREAM VERBUNDEN 13422 /run/systemd/journal/stdout
unix 3 [ ] DGRAM 9562
unix 3 [ ] STREAM VERBUNDEN 11039 /run/systemd/journal/stdout
unix 3 [ ] DGRAM 14775
unix 3 [ ] DGRAM 17098
unix 3 [ ] DGRAM 11408
unix 3 [ ] STREAM VERBUNDEN 11038
unix 3 [ ] DGRAM 14774
unix 3 [ ] DGRAM 9561
unix 2 [ ] DGRAM 14813
unix 3 [ ] STREAM VERBUNDEN 10982
unix 3 [ ] STREAM VERBUNDEN 13723
unix 3 [ ] STREAM VERBUNDEN 10983 /run/systemd/journal/stdout
unix 2 [ ] DGRAM 16381
unix 2 [ ] DGRAM 13873
unix 3 [ ] STREAM VERBUNDEN 10399 /run/systemd/journal/stdout
unix 3 [ ] DGRAM 14772
unix 3 [ ] STREAM VERBUNDEN 11913
unix 3 [ ] STREAM VERBUNDEN 13247 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM VERBUNDEN 11914
unix 3 [ ] STREAM VERBUNDEN 16373
unix 2 [ ] DGRAM 10406
unix 3 [ ] STREAM VERBUNDEN 10926
unix 3 [ ] STREAM VERBUNDEN 16374 /run/systemd/journal/stdout
unix 3 [ ] STREAM VERBUNDEN 17414
unix 3 [ ] STREAM VERBUNDEN 13861 /run/systemd/journal/stdout
unix 3 [ ] STREAM VERBUNDEN 11974
unix 3 [ ] DGRAM 14773
unix 2 [ ] DGRAM 14766
unix 3 [ ] STREAM VERBUNDEN 10870 /run/systemd/journal/stdout
unix 3 [ ] STREAM VERBUNDEN 17415
unix 3 [ ] STREAM VERBUNDEN 13831 /run/systemd/journal/stdout
unix 3 [ ] STREAM VERBUNDEN 10353
unix 2 [ ] DGRAM 9636
unix 2 [ ] DGRAM 17084
unix 3 [ ] STREAM VERBUNDEN 13749 /run/systemd/journal/stdout
unix 3 [ ] STREAM VERBUNDEN 13249 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM VERBUNDEN 11915 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM VERBUNDEN 10741 /run/systemd/journal/stdout
unix 2 [ ] DGRAM 9102
unix 3 [ ] STREAM VERBUNDEN 11844
unix 3 [ ] STREAM VERBUNDEN 11897
unix 3 [ ] STREAM VERBUNDEN 14472
unix 3 [ ] STREAM VERBUNDEN 11340
unix 3 [ ] STREAM VERBUNDEN 13421 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM VERBUNDEN 13582
unix 3 [ ] STREAM VERBUNDEN 13543
unix 3 [ ] STREAM VERBUNDEN 13420
unix 3 [ ] STREAM VERBUNDEN 12231
unix 2 [ ] DGRAM 13402
unix 3 [ ] STREAM VERBUNDEN 14662
unix 3 [ ] STREAM VERBUNDEN 13411
unix 2 [ ] DGRAM 13491
unix 2 [ ] DGRAM 12225
unix 3 [ ] STREAM VERBUNDEN 12232 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM VERBUNDEN 13248 /var/run/dbus/system_bus_socket
unix 3 [ ] DGRAM 11409
unix 2 [ ] DGRAM 11829
unix 3 [ ] STREAM VERBUNDEN 12044
unix 3 [ ] STREAM VERBUNDEN 13584
unix 3 [ ] STREAM VERBUNDEN 11098 /run/systemd/journal/stdout
unix 3 [ ] STREAM VERBUNDEN 13724 /run/systemd/journal/stdout
unix 3 [ ] STREAM VERBUNDEN 13581 /var/run/cups/cups.sock
unix 3 [ ] STREAM VERBUNDEN 13575
unix 2 [ ] DGRAM 14675
unix 3 [ ] STREAM VERBUNDEN 10425 /run/systemd/journal/stdout
unix 2 [ ] DGRAM 17140
unix 3 [ ] DGRAM 17097

DeletedUserReAsG

Re: Apache2 startet nicht

Beitrag von DeletedUserReAsG » 20.04.2018 17:53:25

Wenn du dir mit etwa netstat -pltn das anzeigen lässt, was hier relevant ist, wird’s auch nicht zu lang zum Posten.

flexone2018
Beiträge: 9
Registriert: 19.04.2018 21:14:35

Re: Apache2 startet nicht

Beitrag von flexone2018 » 20.04.2018 20:12:56

ok danke.
das sieht schon übersichtlicher aus.

Code: Alles auswählen

root@debian2virtual:/home/flex# netstat -pltn
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN      444/dnsmasq         
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      465/sshd            
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      388/cupsd           
tcp        0      0 127.0.0.1:4711          0.0.0.0:*               LISTEN      731/pihole-FTL      
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      622/mysqld          
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      243/rpcbind         
tcp        0      0 0.0.0.0:10000           0.0.0.0:*               LISTEN      822/perl            
tcp6       0      0 :::53                   :::*                    LISTEN      444/dnsmasq         
tcp6       0      0 :::22                   :::*                    LISTEN      465/sshd            
tcp6       0      0 ::1:631                 :::*                    LISTEN      388/cupsd           
tcp6       0      0 ::1:4711                :::*                    LISTEN      731/pihole-FTL      
tcp6       0      0 :::111                  :::*                    LISTEN      243/rpcbind         
tcp6       0      0 :::80                   :::*                    LISTEN      688/apache2         
sehr komisch apache2 scheint nun zu funktionieren.
dennoch bekomme ich z.b. bei webmin auf Port 10000 keine gui angezeigt.
mein Browser versucht zwar die Verbindung aufzubauen und zu laden aber es kommt auch keine Fehlermeldung.
woran kann das liegen,

Code: Alles auswählen

root@debian2virtual:/home/flex# systemctl status apache2
● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2018-04-20 20:06:14 CEST; 3min 59s ago
  Process: 462 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
 Main PID: 688 (apache2)
    Tasks: 11 (limit: 4915)
   CGroup: /system.slice/apache2.service
           ├─688 /usr/sbin/apache2 -k start
           ├─739 /usr/sbin/apache2 -k start
           ├─740 /usr/sbin/apache2 -k start
           ├─741 /usr/sbin/apache2 -k start
           ├─889 /usr/sbin/apache2 -k start
           ├─891 /usr/sbin/apache2 -k start
           ├─892 /usr/sbin/apache2 -k start
           ├─893 /usr/sbin/apache2 -k start
           ├─894 /usr/sbin/apache2 -k start
           ├─896 /usr/sbin/apache2 -k start
           └─969 /usr/sbin/apache2 -k start

Apr 20 20:06:09 debian2virtual systemd[1]: Starting The Apache HTTP Server...
Apr 20 20:06:11 debian2virtual apachectl[462]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'Server
Apr 20 20:06:14 debian2virtual systemd[1]: Started The Apache HTTP Server.

DeletedUserReAsG

Re: Apache2 startet nicht

Beitrag von DeletedUserReAsG » 20.04.2018 20:18:58

Sieht doch gut aus. Was Webmin angeht, bin ich an dieser Stelle raus. Sowas sollte man einfach nicht verwenden.

flexone2018
Beiträge: 9
Registriert: 19.04.2018 21:14:35

Re: Apache2 startet nicht

Beitrag von flexone2018 » 20.04.2018 20:35:45

ok kein Problem.
danke trotzdem.

ich verstehe nur nicht ganz wieso es auf einmal funktioniert.
das war ja nur mein Test Server. Auf meinem richtigen Server besteht das Problem weiterhin.

netstat -pltn

Code: Alles auswählen

root@OMV-Server:~# netstat -pltn
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:53871           0.0.0.0:*               LISTEN      624/rpc.mountd      
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      473/rpcbind         
tcp        0      0 0.0.0.0:10000           0.0.0.0:*               LISTEN      27271/perl          
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      739/lighttpd        
tcp        0      0 0.0.0.0:721             0.0.0.0:*               LISTEN      548/rpc.rquotad     
tcp        0      0 0.0.0.0:43443           0.0.0.0:*               LISTEN      624/rpc.mountd      
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN      627/dnsmasq         
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      618/sshd            
tcp        0      0 0.0.0.0:88              0.0.0.0:*               LISTEN      836/nginx: master p 
tcp        0      0 127.0.0.1:2812          0.0.0.0:*               LISTEN      832/monit           
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN      1085/smbd           
tcp        0      0 0.0.0.0:2049            0.0.0.0:*               LISTEN      -                   
tcp        0      0 0.0.0.0:43267           0.0.0.0:*               LISTEN      -                   
tcp        0      0 127.0.0.1:4711          0.0.0.0:*               LISTEN      990/pihole-FTL      
tcp        0      0 0.0.0.0:8200            0.0.0.0:*               LISTEN      1007/minidlnad      
tcp        0      0 0.0.0.0:39561           0.0.0.0:*               LISTEN      624/rpc.mountd      
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      962/mysqld          
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN      1085/smbd           
tcp6       0      0 :::111                  :::*                    LISTEN      473/rpcbind         
tcp6       0      0 :::80                   :::*                    LISTEN      739/lighttpd        
tcp6       0      0 :::53                   :::*                    LISTEN      627/dnsmasq         
tcp6       0      0 :::37589                :::*                    LISTEN      624/rpc.mountd      
tcp6       0      0 :::22                   :::*                    LISTEN      618/sshd            
tcp6       0      0 :::55931                :::*                    LISTEN      624/rpc.mountd      
tcp6       0      0 :::445                  :::*                    LISTEN      1085/smbd           
tcp6       0      0 :::2049                 :::*                    LISTEN      -                   
tcp6       0      0 :::35939                :::*                    LISTEN      -                   
tcp6       0      0 ::1:4711                :::*                    LISTEN      990/pihole-FTL      
tcp6       0      0 :::139                  :::*                    LISTEN      1085/smbd           
tcp6       0      0 :::58765                :::*                    LISTEN      624/rpc.mountd 
hierbei ist mir aber aufgefallen das auf Port 80 eine andere Anwendung läuft. lighttpd
wie gesagt ich habe verschiedene GUIs auf unterschiedlichen Ports
z.b. auf Port 80 ist die Blockseite von Pi-Hole
Port 88 ist die GUI von Openmediavault
Port 8200 ist die GUI Statusanzeige von minidlna

kann ich das vielleicht einfach deinstallieren damit apache2 dann alles übernimmt
denn ich weiß das wenn ich die Volkszähler.org software drauf machen will diese Apache2 benötigt

oder wie gehe ich damit am besten vor

systemctl status apache2.service

Code: Alles auswählen

root@OMV-Server:~# 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 Fri 2018-04-20 20:19:09 CEST; 14min ago

Apr 20 20:19:09 OMV-Server systemd[1]: Starting The Apache HTTP Server...
Apr 20 20:19:09 OMV-Server apachectl[24233]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Apr 20 20:19:09 OMV-Server apachectl[24233]: no listening sockets available, shutting down
Apr 20 20:19:09 OMV-Server apachectl[24233]: AH00015: Unable to open logs
Apr 20 20:19:09 OMV-Server apachectl[24233]: Action 'start' failed.
Apr 20 20:19:09 OMV-Server apachectl[24233]: The Apache error log may have more information.
Apr 20 20:19:09 OMV-Server systemd[1]: apache2.service: Control process exited, code=exited status=1
Apr 20 20:19:09 OMV-Server systemd[1]: Failed to start The Apache HTTP Server.
Apr 20 20:19:09 OMV-Server systemd[1]: apache2.service: Unit entered failed state.
Apr 20 20:19:09 OMV-Server systemd[1]: apache2.service: Failed with result 'exit-code'.

DeletedUserReAsG

Re: Apache2 startet nicht

Beitrag von DeletedUserReAsG » 20.04.2018 20:37:53

Wenn auf 80 ein lighttpd lauscht, kann der Apache natürlich nicht auf den Port binden. Abhilfe: lighttpd stoppen.

flexone2018
Beiträge: 9
Registriert: 19.04.2018 21:14:35

Re: Apache2 startet nicht

Beitrag von flexone2018 » 20.04.2018 20:43:52

wow ok das ist ja super. das hat funktioniert. scheint auch logisch zu sein.
die frage ist nun wieso wurde und mit welcher Software, dieses lighttpd mit installiert und passiert nun irgendwas wenn lighttpd nicht mehr läuft. momentan scheint noch alles zu gehen.

danke danke danke :D

DeletedUserReAsG

Re: Apache2 startet nicht

Beitrag von DeletedUserReAsG » 20.04.2018 20:45:52

aptitude why Paketname sagt dir, warum etwas als Abhängigkeit installiert wurde.

Edit: ich hoffe mal, die Kiste hängt nicht so am Internetz. Falls doch, ist’s wohl nur eine Frage der Zeit, bis jemand kommt und sie aufmacht.

flexone2018
Beiträge: 9
Registriert: 19.04.2018 21:14:35

Re: Apache2 startet nicht

Beitrag von flexone2018 » 20.04.2018 20:55:10

ah ok danke

der Server ist nur lokal hinter einer fritzbox ohne Weiterleitung ins internet.
wenn ich was vom Server brauche gehe ich per VPN auf die Fritzbox in das Lokalenetzt und habe dann auch alles so zur Verfügung.



habe aptitude why lighttpd mal ausgeführt

Code: Alles auswählen

root@OMV-Server:~# aptitude why lighttpd
i   openmediavault Hängt ab von collectd            
i A collectd       Hängt ab von collectd-core (< 6~)
i A collectd-core  Schlägt vor  httpd-cgi           
i   lighttpd       Liefert      httpd-cgi 
scheint so als würde openmediavault das benötigen. aber da ich es gestoppt habe und die Webgui noch geht denke ich das das schon so ok ist oder?

flexone2018
Beiträge: 9
Registriert: 19.04.2018 21:14:35

Re: Apache2 startet nicht

Beitrag von flexone2018 » 22.04.2018 00:50:38

hallo @niemand und @all

was sagst du dazu wäre das sicherheitstechnisch ok.
der Server ist nur lokal hinter einer fritzbox ohne Weiterleitung ins Internet.
wenn ich was vom Server brauche gehe ich per VPN auf die Fritzbox in das Lokalenetzt und habe dann auch alles so zur Verfügung.
ich wollte jetzt aber wechseln auf openvpn dann müsste ich ja einen Port in der fritzbox forwarden.

wäre das auch ok?
wie würdest du oder ihr es machen

Antworten