leapp-repository
leapp-repository copied to clipboard
Upgrading CentOS 7 to 8 with default Apache config breaks prefork PHP applications
Actual behavior
By default, Apache on CentOS 7 uses mpm_prefork
. When upgrading to 8, the default Apache settings were changed to the 'new' default for Apache which included changing MPM to event. This requires php-fpm
to be installed for PHP to operate correctly. As php-fpm
is a weak dependency for PHP, it was not installed by Elevate when upgrading. This resulted in a non-functioning PHP application when running through Apache.
To Reproduce Steps to reproduce the behavior
- Install Apache, MySQL and PHP on CentOS 7.
- Create basic PHP application operating with prefork (the default).
- ELevate to 8
- Application is no longer functional.
Expected behavior
-
Application should continue to function post-upgrade.
-
If
rpm -V httpd
shows no changes to config files, the user should be warned that Apache defaults to using FPM withmpm_event
and sites relying onprefork
will be affected.
System information (please complete the following information):
- OS and version: (e.g. Fedora 29 or
$ cat /etc/system-release
) - CentOS 7.9 to AlmaLinux 8.9