I have no idea what your script is doing. For some reliable upgrading see The command line is by far the easiest way to update Tumbleweed
Upgrading resulted in the following:
erlangen:~ # zypper se -is apache
Loading repository data...
Reading installed packages...
S | Name | Type | Version | Arch | Repository
---+------------------------+---------+------------+--------+-----------------------
i | apache-commons-logging | package | 1.2-11.5 | noarch | Haupt-Repository (OSS)
i+ | apache2 | package | 2.4.54-6.1 | x86_64 | Haupt-Repository (OSS)
i+ | apache2-mod_php8 | package | 8.1.13-2.1 | x86_64 | Haupt-Repository (OSS)
i+ | apache2-prefork | package | 2.4.54-6.1 | x86_64 | Haupt-Repository (OSS)
i+ | apache2-utils | package | 2.4.54-6.1 | x86_64 | Haupt-Repository (OSS)
erlangen:~ #
erlangen:~ # systemctl status apache
● apache2.service - The Apache Webserver
Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; preset: disabled)
Active: active (running) since Mon 2022-12-19 18:29:52 CET; 4s ago
Main PID: 19688 (httpd-prefork)
Status: "Processing requests..."
Tasks: 6
CPU: 27ms
CGroup: /system.slice/apache2.service
├─19688 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.conf" -f /etc/apache2/httpd.conf -c "Include />
├─19704 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.conf" -f /etc/apache2/httpd.conf -c "Include />
├─19705 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.conf" -f /etc/apache2/httpd.conf -c "Include />
├─19706 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.conf" -f /etc/apache2/httpd.conf -c "Include />
├─19707 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.conf" -f /etc/apache2/httpd.conf -c "Include />
└─19708 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.conf" -f /etc/apache2/httpd.conf -c "Include />
Dec 19 18:29:52 erlangen systemd[1]: Starting The Apache Webserver...
Dec 19 18:29:52 erlangen systemd[1]: Started The Apache Webserver.
erlangen:~ #