title: Connecting PHP with DB2 on linux
body: <p>I get a connection failed message when trying to connect to db2 database in php, the code is run on a linux server..</p>
  
  <p><strong>I have added the instance and extension lines in php.ini</strong></p>
  
  <hr>
  
  <p>ibm_db2.instance_name=db2inst1</p>
  
  <p>[ibm_db2]</p>
  
  <h2>extension=ibm_db2.so</h2>
  
  <p>I am I missing something in the php.ini file or any other file?</p>
  
  <p><strong>Note I am following the following steps:</strong></p>
  
  <p><a href="http://www.php.net/manual/en/ibm-db2.installation.php" rel="nofollow">http://www.php.net/manual/en/ibm-db2.installation.php</a></p>
  
  <p><a href="http://www.php.net/manual/en/ibm-db2.requirements.php" rel="nofollow">http://www.php.net/manual/en/ibm-db2.requirements.php</a></p>
  
  <h2><strong>I get the following error messages in the httpd/error_log</strong></h2>
  
  <p>[Mon Jun 30 15:35:16 2014] [notice] Digest: done
  PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/idb_db2.so' - /usr/lib64/php/modules/idb_db2.so: cannot open shared object file: No such file or directory in Unknown on line 0
  [Mon Jun 30 15:35:16 2014] [warn] ./mod_dnssd.c: No services found to register
  [Mon Jun 30 15:35:16 2014] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
  [Mon Jun 30 16:06:05 2014] [error] [client 192.168.48.121] PHP Fatal error:  Call to undefined function db2_connect() in /var/www/html/PhpProject1/index.php on line 14
  [Mon Jun 30 16:06:18 2014] [error] [client 192.168.48.121] PHP Fatal error:  Call to undefined function db2_connect() in /var/www/html/PhpProject1/index.php on line 14</p>
  
  <hr>