Red Hat Bugzilla – Bug 1011129
The OPENSHIFT_MYSQL_* vars are not available in PHP apps
Last modified: 2015-05-14 19:28:56 EDT
Description of problem:
The OPENSHIFT_MYSQL* var are not available in PHP applications, because the passenv is not being updated when the mysql cartridge is added to the gear. This would most probably happen for other Apache based cartridges.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. rhc app create php01 php-5.3
2. rhc add-cartridge mysql --app php01
3. rhc ssh --app php01
4. cat php/configuration/etc/conf.d/passenv.conf | grep MYSQL
There are no OPENSHIFT_MYSQL_* vars.
OPENSHIFT_MYSQL_* variables should be available for the PHP applications.
You need to restart the application between step #2 and #3.