Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bathomas opened this issue Mar 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@bathomas
Copy link

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 bathomas added the bug Something isn't working label Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant