Bug 1108017 - Fail to create magento quickstart with php due to "ERROR: PHP Extensions "pdo_mysql" must be loaded"
Summary: Fail to create magento quickstart with php due to "ERROR: PHP Extensions "pdo...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Image
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Vojtech Vitek
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks: 1082963 1106349 1109763
TreeView+ depends on / blocked
 
Reported: 2014-06-11 10:07 UTC by XiuJuan Wang
Modified: 2015-05-15 00:42 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-15 10:30:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1106349 0 medium CLOSED Fail to create drupal7 due to "Call to undefined function json_encode()" 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1109763 0 medium CLOSED [origin_cartridge_139] Fail to create cake quickstart due to lack of the composer.lock file 2021-02-22 00:41:40 UTC

Internal Links: 1106349 1109763

Description XiuJuan Wang 2014-06-11 10:07:02 UTC
Description of problem:
Try to create magento quickstart with php-5.3/php-5.4,but it failed.
It will show 'ERROR: PHP Extensions "pdo_mysql" must be loaded.'

It works for zend-6.1.
https://bugzilla.redhat.com/show_bug.cgi?id=1082471 is a same situation for zend-6.1, now it is fixed.


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

How reproducible:
always

Steps to Reproduce:
1.rhc app create magento1 php-5.4 mysql-5.5 --from-code=https://github.com/openshift/magento-example
2.
3.

Actual results:

Creating application 'magento1' ... 
The initial build for the application failed: Shell command '/sbin/runuser -s /bin/sh 53984f08ed6f1fbe3e0005e2
-c "exec /usr/bin/runcon 'unconfined_u:system_r:openshift_t:s0:c0,c1003' /bin/sh -c \"gear postreceive --init >>
/tmp/initial-build.log 2>&1\""' returned an error. rc=255

.Last 10 kB of build output:
Stopping MySQL 5.5 cartridge
Stopping PHP 5.4 cartridge (Apache+mod_php)
Repairing links for 1 deployments
Building git ref 'master', commit e5d7f89
Checking .openshift/pear.txt for PEAR dependency...
Preparing build for deployment
Deployment id is 040dc949
Activating deployment
Starting MySQL 5.5 cartridge
Extracting sample data
Poulating database
Magento admin password: OpenShiftAdmin123
Configuring Magento for first use

FAILED
ERROR: PHP Extensions "pdo_mysql" must be loaded.
-------------------------
Git Post-Receive Result: failure
Activation status: failure
Activation failed for the following gears:
53984f08ed6f1fbe3e0005e2 (Error activating gear: CLIENT_ERROR: Failed to execute action hook 'deploy' for
53984f08ed6f1fbe3e0005e2 application magento1)
Deployment completed with status: failure
postreceive failed

Expected results:
Could create magento quickstart with php cartridge.

Additional info:

Comment 1 Ben Parees 2014-06-11 13:39:36 UTC
Jakub, I expect you can apply the same fix as was used for Zend in https://bugzilla.redhat.com/show_bug.cgi?id=1082471

Comment 2 Jakub Hadvig 2014-06-11 14:02:01 UTC
Ben, thanks for info. Will do it.

Comment 3 Vojtech Vitek 2014-06-16 13:51:02 UTC
*** Bug 1109763 has been marked as a duplicate of this bug. ***

Comment 4 openshift-github-bot 2014-06-18 09:08:24 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/08cf01e21081b5c892e8b0cba166e727cef8feca
Bug 1108017: Load .ini modules on php setup

Comment 5 XiuJuan Wang 2014-06-19 03:36:25 UTC
Check in devenv_4890.

Can't reproduce this bug for magento quickstart of php-5.3/php-5.4 with mysql-5.1/mysql-5.5.

Move bug to verified status.


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