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 845508 - httpd fails to start in worker mode with php installed but without php-zts installed
Summary: httpd fails to start in worker mode with php installed but without php-zts in...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: php
Version: 6.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Joe Orton
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-03 09:26 UTC by David Kutálek
Modified: 2012-08-16 15:06 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-16 15:06:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description David Kutálek 2012-08-03 09:26:58 UTC
Description of problem:

When user switch httpd to worker MPM mode while having installed php, php config tries to load php-zts module. Since php-zts subpackage is not required and it is even located in optional channel, it may easily happen that httpd won't start because of php:

# service httpd start
Starting httpd: httpd.worker: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 9 of /etc/httpd/conf.d/php.conf: Cannot load /etc/httpd/modules/libphp5-zts.so into server: /etc/httpd/modules/libphp5-zts.so: cannot open shared object file: No such file or directory
                                                           [FAILED]

I know that threaded variant of php is without modules and not recommended, but imho we should either always install php-zts with php or arrange configuration in a way which do not broke httpd in this case.

Version-Release number of selected component (if applicable):

php-5.3.3-3.el6_2.8.x86_64
php-zts-5.3.3-3.el6_2.8.x86_64
httpd-2.2.15-15.el6_2.1.x86_64

How reproducible:

Always

Steps to Reproduce:
1. install httpd, php, uninstall php-zts if installed
2. stop httpd, switch to worker in /etc/sysconfig/httpd, start httpd
3.
  
Actual results:

httpd fails to start in worker mode, with php installed but php-zts not installed.

Expected results:

httpd starts, either with php-zts, or without php when php-zts not installed.

Additional info:

Comment 1 Joe Orton 2012-08-16 15:06:56 UTC
Installing -zts by default is not really desirable.

The described behaviour here is actually the desired behaviour; the server should fail to start up with a configuration error because it *is* a configuration error to try to run php + worker without php-zts installed.  It can't work.


Note You need to log in before you can comment on or make changes to this bug.