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:

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...