Update to 20210203 -- PHP7 to PHP8 problems

During an update session taking a Tumbleweed system to 20210203, there were several errors that popped up presenting options to take that involved updates that would take several PHP-related packages from PHP7 to PHP8. I opted for whatever option would take the system to PHP8. This all worked except for the update to “apache2-mod_php7-7.4.14-2.1.x86_64”. Any and all attempts to remove that package failed with an error message stating that the scriptlet had failed with a pretty generic exit status of “1”.

Afterwards, I could go into YaST and see that most everything had been updated to PHP8 except, of course, that apach2-mod-php7" package. I tried shutting down Apache, removing mod_php from the modules configuration – thinking that it was tied to the running Apache – before another attempt to remove the “apache2-mod_php7” but that did not help—same error with that scriptlet.

Ultimately, I’d prefer to remove PHP from that system altogether as anything web related will be Python/Django anyway. But for the moment, I’ve removed all the PHP8 packages and reinstalled the PHP7 packages that were supposed to have been updated (so as to avoid strange errors in the next update if a combination of PHP7 and PHP8 were to be found. I fully expect, though, that I’ll still have problems when zypper sees the PHP7 packages that were supposed to have been removed with the change to 20210203.

Any idea why apache2-mod_php7" is resisting attempts to remove it?

TIA…

You’re using a UNIX® derivative known as Linux – running processes are, usually, only in memory – the system file which was used to launch the process can be changed (deletion is also a change) without the executing process being affected …

  • Which is why, executing processes have to be restarted after a patch or update is applied to the system file …

No idea if, that was a good idea or, not …

Take a look at “rpm --query --whatrecommends apache2-mod_php7” – on this Leap 15.2 system it indicates that, the package “patterns-server-lamp_server” recommends apache2-mod_php7 – “zypper info --recommends patterns-server-lamp_server” indicates the same from another direction …

You may have to raise a Tumbleweed Bug Report to get that changed.