This is a purely Bluemix question!
I've got code running smoothly on a localhost but when I migrated it to Bluemix my DB connection failed me. Checking the logs I found the issue "Call to undefined function mysqli_init()" HTTP response 500. I have found out that extension have been disabled to make it smaller and have found some details about it: Buildpack options.
Unfortunately I have tried that and failed. Maybe I have misunderstood the solution.
Any Help would be greatly appreciated.
EDIT:
bgconfig --> bp-config solved the "undefined function error"
It seems that some extension have been added but not all. "Fatal error:Class 'PDO' not found in /home/vcap/app/htdocs/db_config.php on line 15"
I have however added the PDO extension in options.json.
I tried adding a php.ini overwrite
But still get the same error...
For info: line 15 on db_config.php is simply:
$db = new PDO('mysql:host=us-cdbr-iron-east-02.cleardb.net;dbname=ad_dae231843a962ca', $username, $password);}
within try & catch of course.
Any Clues?