This question seems to be asked quite a bit and the answer seems to change with time. I\'ve spent the weekend getting the IBM Client SDK for Informix working on Debian (because
I'm receiving this error: SQLSTATE=HY000, SQLDriverConnect: -23101 [Informix][Informix ODBC Driver][Informix]Unspecified System Error = -23101
I've tryed to setenv INFORMIXDIR, DB_LOCALE and CLIENT_LOCALE on apache config, but does not work.
Apache Environment
Here is my connection string:
$instance = new PDO("informix:host=$host;service=$port;database=$db;server=ol_standard;protocol=onsoctcp;client_locale=en_US.819;db_locale=en_US.819;EnableScrollableCursors=1;OPTIMIZEAUTOCOMMIT=1", "informix", "");