title: PDO Informix ODBC Driver work with PHP CLI but not in browser
body: <p>I just try to create a connection to a database using the Informix Driver.</p>
  
  <p>The server is running on CentOS 6.4, with PDO_INFORMIX-1.3.1 and clientsdk.4.10.FC2DE.LINUX.</p>
  
  <p>I set env var in /etc/sysconfig/httpd, and run this command :</p>
  
  <ul>
  <li>chcon -t lib_t /opt/informix/lib/cli/*.so</li>
  <li>chcon -t lib_t /opt/informix/lib/*.so</li>
  <li>chcon -t lib_t/opt/informix/lib/esql/*.so</li>
  <li>chcon -t lib_t /opt/informix/lib/c++/*.so </li>
  <li>chcon -t lib_t /opt/informix/lib/dim/*.so</li>
  <li>chcon -t lib_t /opt/informix/lib/client/cms/*.so</li>
  <li>chcon -t lib_t /opt/informix/OAT/Apache_2.4.2/modules/*.so</li>
  <li>chcon -t lib_t /opt/informix/OAT/PHP_5.4.4/*.so</li>
  <li>chcon -t lib_t /opt/informix/OAT/PHP_5.4.4/lib/php/extensions/*.so</li>
  <li>/sbin/ldconfig</li>
  <li>setenforce 0</li>
  </ul>
  
  <p>When i run "php /var/www/html/informix.php" the connection is succesful, but when i call the same script on a browser, i get this error :</p>
  
  <pre><code>Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE=08004, SQLDriverConnect: -908 [Informix][Informix ODBC Driver][Informix]Attempt to connect to database server (cms_net) failed.' in /var/www/html/informix.php:30 Stack trace: #0 /var/www/html/informix.php(30): PDO-&gt;__construct('informix:host=1...', 'user', 'xxxxx') #1 {main} thrown in /var/www/html/informix.php on line 30
  </code></pre>
  
  <p>I try to set a host in /etc/hosts, no success.</p>
  
  <p>I don't know what to do to solve this problem. Anyone can help me ?</p>