Zabbix 5.4 > 6.0 und php7.4 > 8.1 Probleme

hpxw

Lieutenant
Registriert
Mai 2008
Beiträge
784
Hallo,

bei mir läuft zabbix 5.4 auf ubuntu 20.x lts.
Ich habe zabbix auf 6.0 lts hochgezogen. Soweit alles gut.

Wenn ich ubuntu von 20 auf 22 hochziehe, komme ich nicht mehr in frontend vom zabbix rein.
Ubuntu 22 installiert php 8.1. Ubuntu 20 läuft aber noch mit php 7.4

Als Fehlermeldung kriege ich folgendes:

Oct 14 12:20:20 zabbix systemd[1]: Starting The Apache HTTP Server...
Oct 14 12:20:20 zabbix apachectl[1914]: apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php7.4.load: Cannot load /usr/lib/apache2/modules/libphp7.4.so into server: /usr>
Oct 14 12:20:20 zabbix apachectl[1911]: Action 'start' failed.
Oct 14 12:20:20 zabbix apachectl[1911]: The Apache error log may have more information.
Oct 14 12:20:20 zabbix systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Oct 14 12:20:20 zabbix systemd[1]: apache2.service: Failed with result 'exit-code'.
Oct 14 12:20:20 zabbix systemd[1]: Failed to start The Apache HTTP Server.

lines 1-13/13 (END)

line 146 of /etc/apache2/apache2.conf

IncludeOptional mods-enabled/*.load


Hat jemand einen Tipp wie und wo ich die Config anpassen kann?


Vielen Dank
 
apt install libapache2-mod-php8.1
sudo a2dismod php7.4 sudo a2enmod php8.1
Und ggf config anpassen.
Nicht vergessen alles php7.4 Zeug runter zu werfen
 
  • Gefällt mir
Reaktionen: hpxw und Teckler
sudo a2dismod php7.4
sudo a2enmod php8.1

hat geholfen! Danke!

#closed
 
  • Gefällt mir
Reaktionen: Teckler und madmax2010
Zurück
Oben