Apache2 will not start with php 8.3.x

Drepal 11 requires php > 8.3. So I tried to upgrade it at openSUSE Software
But now Apache2 will not start.
Nov 12 04:49:37 jarfx start_apache2[12932]: httpd-event: Syntax error in -C/-c directive: Syntax error on line 29 of /etc/apache2/sysconfig.d/loadmodule.conf: Cannot load /usr/lib64/apache2/mod_php8.so into server: /usr/lib64/apache2/mod_php8.so: undefined symbol: xmlFreeEntity

ls -l /usr/lib64/apache2/mod_php8.so

-rwxr-xr-x 1 root root 5633560 Oct 24 14:44 /usr/lib64/apache2/mod_php8.so
version 8.3.13 is installed.

mod_perl and mod_php8.so are not installed in /etc/alternatives like the other modules are

https://bugzilla.opensuse.org/show_bug.cgi?id=1233284

Hoping someone here could solve it.

Most of the time people come here to see if other users have the same and may have a solution or bypass. Or a confirmation with maybe more information.

Then, when the problem seems to be worth a bug report, one is produced.

You did it the other way around, which is not incorrect as such, but you could have shown the link to the report in your first post to inform everybody what the situation is.

Disclaimer: Using Leap 15.6 with php 8.2.

You should add the following repo for php 8.3: https://download.opensuse.org/repositories/devel:/languages:/php:/php83/openSUSE_Leap_15.6/
In you bug report and here you don’t tell/show which repository you added from openSUSE Software.
Nobody knows what you did install.

And that is exactly a main reason to post here first. Fellow users will be able to point to forgotten information before a bug-report is started.

1 Like

I used the first two in the link I posted. Currently
zypper addrepo https://download.opensuse.org/repositories/home:ecsos:server/15.6/home:ecsos:server.repo
zypper refresh
Install package home:ecsos:server / php8

so I removed the ecos repository. Uninstalled php 8. Added your repository. reinstalled php8, and mow I get a different message:

Nov 12 15:47:56 jarfx start_apache2[2521]: [Tue Nov 12 15:47:56.065718 2024] [php:crit] [pid 2521:tid 139969820661824] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP.
Nov 12 15:47:56 jarfx start_apache2[2521]: AH00013: Pre-configuration failed

How does one know which of the different solutions offered on the php8 page is the correct one?

I fixed that and apache is running, so put this on hold for now.

@jarome: Would you please be so kind to communicate your solution. It could be helpful for other users who use Leap 15.6 with php 8.3. Thank you.

Use this reposditory:
https://download.opensuse.org/repositories/devel:/languages:/php:/php83/openSUSE_Leap_15.6/

You have to install all the needed modules too