### Description of problem: We installed php package on RHEL9, but we could not find conf and library files. ~~~ # ls /etc/httpd/conf.modules.d/*php* ls: cannot access '/etc/httpd/conf.modules.d/*php*': No such file or directory # ls /etc/httpd/modules/*php* ls: cannot access '/etc/httpd/modules/*php*': No such file or directory ~~~ I checked at the RHEL9 release notes, but there was no mention of 20-php.conf and libphp.so. And we check php.spec file in php source package. The spec file contains conf file and library definitions. ...snip... 1394 %files 1395 %if %{with modphp} 1396 %{_httpd_moddir}/libphp.so 1397 %config(noreplace) %{_httpd_modconfdir}/20-php.conf 1398 %attr(0770,root,apache) %dir %{_sharedstatedir}/php/session 1399 %attr(0770,root,apache) %dir %{_sharedstatedir}/php/wsdlcache 1400 %attr(0770,root,apache) %dir %{_sharedstatedir}/php/opcache 1401 %config(noreplace) %{_httpd_confdir}/php.conf 1402 %endif ...snip... ### Version-Release number of selected component (if applicable): php-8.1.14-1.module+el9.2.0+17911+b059dfc2 php-8.0.27-1.el9_1 ### How reproducible: Anytime ### Steps to Reproduce: #dnf Install php or # dnf module disable php # dnf module enable php:8.1 # dnf update php ### Actual results: We can not installed 20-php.conf and libphp.so. ### Expected results: If 20-php.conf and libphp.so are available, please make them installable. If them are not available please make an announcement in the documentation or knowledge.
Since RHEL-8 httpd runs in event mode which is not supported by mod_php (threaded mode) As explain in https://www.php.net/manual/en/faq.installation.php#faq.installation.apache2 So httpd uses mod_proxy to php-fpm to execute PHP script This works out of the box with the default provided configuration In RHEL-8 mod_php is still available but not used, and imply to switch back httpd to "prefork" mode In RHEL-9 mod_php is no more available mod_php removal improves performance (http in thread mode + http2 support), and security (different process)
The note about mod_php removal is now available in: * the Notable changes to infrastructure services section in the Considerations in adopting RHEL 9 title: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html-single/considerations_in_adopting_rhel_9/index#ref_changes-to-infrastructure_assembly_infrastructure-services * the section describing changes in Apache modules in Deploying web servers and reverse proxies in RHEL 9: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/deploying_web_servers_and_reverse_proxies/setting-apache-http-server_deploying-web-servers-and-reverse-proxies#apache-changes-rhel9_setting-apache-http-server * the Deprecated Functionality section in RHEL 8.x Release Notes (will be repeated in the remaining RHEL 8 minor versions): https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/8.8_release_notes/index#BZ-2225332 https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/8.7_release_notes/index#BZ-2225332 https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/8.6_release_notes/index#BZ-2225332