Skip to content

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

Open
@bathomas

Description

@bathomas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions