Page 1 of 1
HILFE: Nach Update von Ubuntu 16 auf 18 apachectl: not found
Posted: Sun 25. Apr 2021, 21:06
by Tobi
Hi Zusammen,
habe gerade eine 16er Ubuntu Version auf 18 geupdatet.
Eigentlich hat auch alles funktioniert, nur beim letzten Schritt der Installation kam:
> Update KeyHelps apache configuration...
sh: 1: a2dismod: not found
sh: 1: a2enmod: not found
Failed to update apache service file
Dementsprechend kam am Ende der Installation:
[25-Apr-2021 20:48:11] INFO --> Apache: subdomain catch-all updated
[25-Apr-2021 20:48:11] INFO --> Apache: reloadApache()
[25-Apr-2021 20:48:11] ERROR --> Apache: syntax error: sh: 1: apachectl: not found
[25-Apr-2021 20:48:11] ERROR --> Apache: no reload due syntax error
[25-Apr-2021 20:48:11] ERROR --> Apache: failed to reload
Auch das AusfĂĽhren der Toolbox mit Neuschreiben der User etc Configs endet mit:
[25-Apr-2021 21:00:29] INFO --> Apache: subdomain catch-all updated
[25-Apr-2021 21:00:29] INFO --> Apache: reloadApache()
[25-Apr-2021 21:00:29] ERROR --> Apache: syntax error: sh: 1: apachectl: not found
[25-Apr-2021 21:00:29] ERROR --> Apache: no reload due syntax error
[25-Apr-2021 21:00:29] ERROR --> Apache: failed to reload
Hat jemand ein Idee warum das passiert ist?
Und noch wichtiger: Wie geht das wieder weg

?
Re: HILFE: Nach Update von Ubuntu 16 auf 18 apachectl: not found
Posted: Sun 25. Apr 2021, 21:33
by Tobi
Na super...
Ein "whereis apache2" bringt nur "apache2: /etc/apache2".
Hier fehlt doch was..
Re: HILFE: Nach Update von Ubuntu 16 auf 18 apachectl: not found
Posted: Sun 25. Apr 2021, 21:46
by Tobi
Code: Select all
apt install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.2-0
Suggested packages:
www-browser apache2-doc apache2-suexec-pristine | apache2-suexec-custom ufw
The following NEW packages will be installed:
apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.2-0
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,712 kB of archives.
After this operation, 6,920 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Apache ist gar nicht installiert?
Auf der anderen Seite kommt aber auch
Code: Select all
/etc/init.d/apache2 status
â—Ź apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; generated)
Active: active (exited) since Sun 2021-04-25 21:40:24 CEST; 53s ago
Docs: man:systemd-sysv-generator(8)
Process: 2598 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
Apr 25 21:40:23 server.domain.de systemd[1]: Starting LSB: Apache2 web server...
Apr 25 21:40:24 server.domain.de systemd[1]: Started LSB: Apache2 web server.
Was nun?
Ist Apache installiert oder nicht?
Re: HILFE: Nach Update von Ubuntu 16 auf 18 apachectl: not found
Posted: Mon 26. Apr 2021, 08:15
by Tobi
Also anscheinend ist der Apache nach dem Update nicht mehr installiert?
Code: Select all
# netstat -tulpen
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
tcp 0 0 0.0.0.0:4190 0.0.0.0:* LISTEN 0 19605 2594/dovecot
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 0 19655 2594/dovecot
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 0 19626 2594/dovecot
tcp 0 0 127.0.0.1:10023 0.0.0.0:* LISTEN 0 17944 2625/postgrey --pid
tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN 120 20291 3164/amavisd-new (m
tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 0 20970 3844/master
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 111 17322 2843/mysqld
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 0 20871 3844/master
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 122 17022 2632/redis-server 1
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 0 19624 2594/dovecot
tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN 0 18118 2804/perl
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 0 19653 2594/dovecot
tcp 0 0 141.0.XXX.XXX:53 0.0.0.0:* LISTEN 110 17058 2587/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 110 17056 2587/named
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 102 17464 2473/systemd-resolv
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 17005 2607/sshd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 0 20868 3844/master
tcp 0 0 127.0.0.1:12345 0.0.0.0:* LISTEN 124 18075 2651/opendkim
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 110 17168 2587/named
tcp6 0 0 :::4190 :::* LISTEN 0 19606 2594/dovecot
tcp6 0 0 :::993 :::* LISTEN 0 19656 2594/dovecot
tcp6 0 0 :::995 :::* LISTEN 0 19627 2594/dovecot
tcp6 0 0 ::1:10023 :::* LISTEN 0 17943 2625/postgrey --pid
tcp6 0 0 ::1:10024 :::* LISTEN 120 20292 3164/amavisd-new (m
tcp6 0 0 ::1:6379 :::* LISTEN 122 17023 2632/redis-server 1
tcp6 0 0 :::110 :::* LISTEN 0 19625 2594/dovecot
tcp6 0 0 ::1:783 :::* LISTEN 0 18116 2804/perl
tcp6 0 0 :::143 :::* LISTEN 0 19654 2594/dovecot
tcp6 0 0 :::21 :::* LISTEN 112 232736 18718/proftpd: (acc
tcp6 0 0 :::53 :::* LISTEN 110 17052 2587/named
tcp6 0 0 :::22 :::* LISTEN 0 17007 2607/sshd
tcp6 0 0 ::1:953 :::* LISTEN 110 17169 2587/named
tcp6 0 0 :::36602 :::* LISTEN 0 19838 2673/xinetd
udp 0 0 141.0.XX.XXX:53 0.0.0.0:* 110 17057 2587/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 110 17055 2587/named
udp 0 0 127.0.0.53:53 0.0.0.0:* 102 17463 2473/systemd-resolv
udp 0 0 0.0.0.0:68 0.0.0.0:* 0 15078 2489/dhclient
udp 0 0 0.0.0.0:161 0.0.0.0:* 0 17189 2611/snmpd
udp 0 0 0.0.0.0:45790 0.0.0.0:* 120 890164 24699/amavisd-new (
udp 0 0 0.0.0.0:42745 0.0.0.0:* 120 884335 23746/amavisd-new (
udp6 0 0 :::53 :::* 110 17046 2587/named
Re: HILFE: Nach Update von Ubuntu 16 auf 18 apachectl: not found
Posted: Mon 26. Apr 2021, 11:52
by Florian
Hallo,
was sagt denn dpkg?
dpkg --list | grep apache
Re: HILFE: Nach Update von Ubuntu 16 auf 18 apachectl: not found
Posted: Mon 26. Apr 2021, 12:15
by Tobi
Hallo Florian,
hier die Ausgabe:
Code: Select all
~# dpkg --list | grep apache
rc apache2 2.4.46-2+ubuntu16.04.1+deb.sury.org+3 amd64 Apache HTTP Server
rc apache2-suexec-custom 2.4.46-4+deb.sury.org+1+ubuntu16.04.1+deb.sury.org+5 amd64 Apache HTTP Server configurable suexec program for mod_suexec
rc libapache2-mod-fastcgi 2.4.7~0910052141-1.2 amd64 Apache 2 FastCGI module for long-running CGI scripts
Hat das eventuell etwas damit zu tun, dass bisher anscheinend eine angepasste Apache Version lief?
Ich hatte gestern vor dem Update die Datei /etc/apt/sources.list.d/ondrej-ubuntu-apache2-xenial.list gefunden und deaktiviert.
Code: Select all
# deb http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial main
Ich habe dem aber keine wirkliche Bedeutung beigemessen sondern war der Meinung, dass das wohl Standard ist. Ich hatte das nicht (wissentlich) hinzugefĂĽgt...
Re: HILFE: Nach Update von Ubuntu 16 auf 18 apachectl: not found
Posted: Mon 26. Apr 2021, 12:37
by Florian
Hallo,
ja das hängt höchstwahrscheinlich mit der Drittanbieterquelle zusammen.
Versuche die Apache-Pakete aus den normalen Quellen zu installieren, dann sollte es normalerweise wieder funktionieren, da die Konfiguration nicht gelöscht wird.
So sieht die dpkg-Ausgabe auf einem normalen Ubuntu 18 aus:
Code: Select all
dpkg --list | grep apache
ii apache2 2.4.29-1ubuntu4.14 amd64 Apache HTTP Server
ii apache2-bin 2.4.29-1ubuntu4.14 amd64 Apache HTTP Server (modules and other binary files)
ii apache2-data 2.4.29-1ubuntu4.14 all Apache HTTP Server (common files)
ii apache2-suexec-custom 2.4.29-1ubuntu4.14 amd64 Apache HTTP Server configurable suexec program for mod_suexec
ii apache2-utils 2.4.29-1ubuntu4.14 amd64 Apache HTTP Server (utility programs for web servers)
ii libapache2-mod-fcgid 1:2.3.9-1 amd64 FastCGI interface module for Apache 2
ii libapache2-mod-php7.2 7.2.24-0ubuntu0.18.04.7 amd64 server-side, HTML-embedded scripting language (Apache 2 module)
Re: HILFE: Nach Update von Ubuntu 16 auf 18 apachectl: not found
Posted: Mon 26. Apr 2021, 13:02
by Tobi
Hallo Florian,
danke fĂĽr deine UnterstĂĽtzung.
Alexander hatte mir parallel noch ein paar Tipps per PN geschickt.
Jetzt läuft zumindest der Apache wieder.
Allerdings sieht bei mir die Ausgabe noch etwas anders aus.
Code: Select all
dpkg --list | grep apache
ii apache2 2.4.29-1ubuntu4.14 amd64 Apache HTTP Server
ii apache2-bin 2.4.29-1ubuntu4.14 amd64 Apache HTTP Server (modules and other binary files)
ii apache2-data 2.4.29-1ubuntu4.14 all Apache HTTP Server (common files)
ii apache2-suexec-custom 2.4.29-1ubuntu4.14 amd64 Apache HTTP Server configurable suexec program for mod_suexec
ii apache2-utils 2.4.29-1ubuntu4.14 amd64 Apache HTTP Server (utility programs for web servers)
rc libapache2-mod-fastcgi 2.4.7~0910052141-1.2 amd64 Apache 2 FastCGI module for long-running CGI scripts
ii libapache2-mod-fcgid 1:2.3.9-1 amd64 FastCGI interface module for Apache 2
Das hier fehlt bei mir
Re: HILFE: Nach Update von Ubuntu 16 auf 18 apachectl: not found
Posted: Mon 26. Apr 2021, 13:08
by Florian
Hallo,
das sollte keine Auswirkungen haben da Keyhelp ja kein mod_php nutzt
Re: HILFE: Nach Update von Ubuntu 16 auf 18 apachectl: not found
Posted: Mon 26. Apr 2021, 13:14
by Tobi
Die Config Dateien habe ich jetzt mit der toolbox neu geschrieben.
Das hat auch geklappt.
Aber es gibt wohl noch ein Problem mit der IP Adresse.
Der Server ist fĂĽr IPV4 und IPV6 konfiguriert.
KeyHelp zeigt unter Einstellungen => Konfiguration => IP Adressen aber nur die IPV4 Adresse an.
Apache scheint aber nicht auf IPV4 zu lauschen...
Was muss ich noch konfigurieren?
Hat das eventuell etwas mit netplan zu tun?
Gab es da nicht eine Änderung?
Code: Select all
# netstat -tulpen
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
tcp 0 0 0.0.0.0:4190 0.0.0.0:* LISTEN 0 19605 2594/dovecot
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 0 19655 2594/dovecot
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 0 19626 2594/dovecot
tcp 0 0 127.0.0.1:10023 0.0.0.0:* LISTEN 0 17944 2625/postgrey --pid
tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN 120 20291 3164/amavisd-new (m
tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 0 20970 3844/master
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 111 17322 2843/mysqld
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 0 20871 3844/master
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 122 17022 2632/redis-server 1
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 0 19624 2594/dovecot
tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN 0 18118 2804/perl
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 0 19653 2594/dovecot
tcp 0 0 141.0.XX:XXX:53 0.0.0.0:* LISTEN 110 17058 2587/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 110 17056 2587/named
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 102 17464 2473/systemd-resolv
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 17005 2607/sshd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 0 20868 3844/master
tcp 0 0 127.0.0.1:12345 0.0.0.0:* LISTEN 124 18075 2651/opendkim
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 110 17168 2587/named
tcp6 0 0 :::4190 :::* LISTEN 0 19606 2594/dovecot
tcp6 0 0 :::993 :::* LISTEN 0 19656 2594/dovecot
tcp6 0 0 :::995 :::* LISTEN 0 19627 2594/dovecot
tcp6 0 0 ::1:10023 :::* LISTEN 0 17943 2625/postgrey --pid
tcp6 0 0 ::1:10024 :::* LISTEN 120 20292 3164/amavisd-new (m
tcp6 0 0 ::1:6379 :::* LISTEN 122 17023 2632/redis-server 1
tcp6 0 0 :::110 :::* LISTEN 0 19625 2594/dovecot
tcp6 0 0 ::1:783 :::* LISTEN 0 18116 2804/perl
tcp6 0 0 :::143 :::* LISTEN 0 19654 2594/dovecot
tcp6 0 0 :::80 :::* LISTEN 0 1443171 27850/apache2
tcp6 0 0 :::21 :::* LISTEN 112 232736 18718/proftpd: (acc
tcp6 0 0 :::53 :::* LISTEN 110 17052 2587/named
tcp6 0 0 :::22 :::* LISTEN 0 17007 2607/sshd
tcp6 0 0 ::1:953 :::* LISTEN 110 17169 2587/named
tcp6 0 0 :::36602 :::* LISTEN 0 19838 2673/xinetd
tcp6 0 0 :::443 :::* LISTEN 0 1443175 27850/apache2
udp 0 0 0.0.0.0:39017 0.0.0.0:* 120 1398623 22367/amavisd-new (
udp 0 0 141.0.XX.XXX:53 0.0.0.0:* 110 17057 2587/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 110 17055 2587/named
udp 0 0 127.0.0.53:53 0.0.0.0:* 102 17463 2473/systemd-resolv
udp 0 0 0.0.0.0:68 0.0.0.0:* 0 15078 2489/dhclient
udp 0 0 0.0.0.0:49223 0.0.0.0:* 120 1381088 17309/amavisd-new (
udp 0 0 0.0.0.0:161 0.0.0.0:* 0 17189 2611/snmpd
udp6 0 0 :::53 :::* 110 17046 2587/named
Re: HILFE: Nach Update von Ubuntu 16 auf 18 apachectl: not found
Posted: Mon 26. Apr 2021, 13:16
by Tobi
Florian wrote: ↑Mon 26. Apr 2021, 13:08
Hallo,
das sollte keine Auswirkungen haben da Keyhelp ja kein mod_php nutzt
Danke, ja KeyHelp läuft. Dann passt zumindest das.
Re: HILFE: Nach Update von Ubuntu 16 auf 18 apachectl: not found
Posted: Mon 26. Apr 2021, 13:21
by Tobi
Das Verzeichnis /etc/netplan ist leer.
in /etc/network/interfaces steht nur
Code: Select all
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
Re: HILFE: Nach Update von Ubuntu 16 auf 18 apachectl: not found
Posted: Mon 26. Apr 2021, 14:00
by Florian
Hallo,
eine Änderung auf netplan findet bei einem Dist Upgrade nicht statt. Es wird weiter die klassische Methode ifupdown verwendet.
Wen die interfaces nun auf dhcp steht musst du die Konfig wieder eintragen.