openshift/drupal-example — Issue #2: Variables do not resolve
Author: hferentschik
Created: 2011-12-07 16:00:51+00:00
State: open

Following the instructions and trying to access the app results in:

The website encountered an unexpected error. Please try again later.
Error message

Notice: Undefined index: OPENSHIFT_DB_USERNAME in include_once() (line 186 of /var/lib/libra//runtime/repo/php/sites/default/settings.php).
Notice: Undefined index: OPENSHIFT_DB_PASSWORD in include_once() (line 187 of /var/lib/libra//runtime/repo/php/sites/default/settings.php).
Notice: Undefined index: OPENSHIFT_DB_HOST in include_once() (line 188 of /var/lib/libra//runtime/repo/php/sites/default/settings.php).
Notice: Undefined index: OPENSHIFT_DB_PORT in include_once() (line 189 of /var/lib/libra//runtime/repo/php/sites/default/settings.php).
PDOException: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in lock_may_be_available() (line 164 of /var/lib//runtime/repo/php/includes/lock.inc).