Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2225332

Summary: 20-php.conf and libphp.so do not exist on RHEL9
Product: Red Hat Enterprise Linux 9 Reporter: kazuhiro kawana <kkawana>
Component: DocumentationAssignee: Lucie Vařáková <lmanasko>
Documentation sub component: default QA Contact:
Status: CLOSED CURRENTRELEASE Docs Contact: Lenka Špačková <lkuprova>
Severity: high    
Priority: high CC: jorton, rcollet, rhel-docs
Version: 9.2Keywords: Documentation
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 9.2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Deprecated Functionality
Doc Text:
.The `mod_php` module provided with PHP for use with the Apache HTTP Server has been deprecated The `mod_php` module provided with PHP for use with the Apache HTTP Server in RHEL 8 is available but not enabled in the default configuration. The module is no longer available in RHEL 9. Since RHEL 8, PHP scripts are run using the FastCGI Process Manager (`php-fpm`) by default. For more information, see https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_basic_system_settings/installing-and-using-dynamic-programming-languages_configuring-basic-system-settings#using-php-with-the-apache-http-server_using-the-php-scripting-language-with-a-web-server[Using PHP with the Apache HTTP Server].
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-01 14:30:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description kazuhiro kawana 2023-07-25 01:06:36 UTC
### 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.

Comment 2 Remi Collet 2023-07-25 08:04:45 UTC
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)

Comment 10 Red Hat Bugzilla 2023-12-26 04:25:03 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days