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 756725

Summary: php-zts + php-mysql in apache worker mode is not working.
Product: Red Hat Enterprise Linux 6 Reporter: Petr Ruzicka <pruzicka>
Component: phpAssignee: Joe Orton <jorton>
Status: CLOSED NOTABUG QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: mhomolov
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-16 13:53:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Ruzicka 2011-11-24 11:37:21 UTC
*** Description of problem:

Customer wants to install php-zts + php-mysql and use httpd worker mode.
It looks like --with-config-file-scan-dir=/etc/php-zts.d is missing.


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

php-zts-5.3.3-3.el6_1.3.x86_64
php-mysql-5.3.3-3.el6_1.3.x86_64
httpd-2.2.15-9.el6.x86_64


*** How reproducible:
See details below


*** Steps to Reproduce:

Install RHEL6 with httpd and follow the steps:

yum install php-zts php-mysql
mkdir /var/www/html/tmp/
cat > /var/www/html/tmp/index.php << EOF
<?php

// Show all information, defaults to INFO_ALL
phpinfo();

// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);

?>
EOF

echo "HTTPD=/usr/sbin/httpd.worker" >> /etc/sysconfig/httpd

service httpd restart


*** Actual results:

# elinks http://127.0.0.1/tmp/index.php --dump | grep zts
                     '--disable-sysvsem' '--enable-maintainer-zts'
                     '--with-config-file-scan-dir=/etc/php-zts.d'
   additional .ini   /etc/php-zts.d
extension_dir                  /usr/lib64/php/modules-zts       /usr/lib64/php/modules-zts
extension_dir                  /usr/lib64/php/modules-zts       /usr/lib64/php/modules-zts

-> See the "--with-config-file-scan-dir=/etc/php-zts.d" which doesn't exists.

# elinks http://127.0.0.1/tmp/index.php --dump | grep sql
                     '--enable-shmop' '--enable-calendar' '--without-sqlite'
                     '--without-mysql' '--without-gd' '--disable-dom'
                     '--without-sqlite3' '--disable-phar'
sql.safe_mode                  Off                              Off
sql.safe_mode                  Off                              Off

-> mysql is not loaded at all...

Expected results:
Directory "/etc/php-zts.d" should be exist after php-zts package installation and the modules (like mysql) copied into it should be working.


*** Additional info:

I tried to create the directory manually and copy the modules (*mysql*.ini) files, but no luck as well:

cp -v /etc/php.d/*mysql*.ini /etc/php-zts.d/
service httpd restart
elinks http://127.0.0.1/tmp/index.php --dump | grep sql
-> give me the same result as it is above...