leapp-repository icon indicating copy to clipboard operation
leapp-repository copied to clipboard

Upgrading CentOS 7 to 8 with default Apache config breaks prefork PHP applications

Open bathomas opened this issue 11 months ago • 0 comments

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

  1. Install Apache, MySQL and PHP on CentOS 7.
  2. Create basic PHP application operating with prefork (the default).
  3. ELevate to 8
  4. 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 with mpm_event and sites relying on prefork 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

bathomas avatar Mar 16 '24 16:03 bathomas