title: Connect to MS SQL on (Linux)Centos with Codeigniter
body: <p>I like to connect an MS SQL database on (Linux)Centos with Codeigniter. Just installed the Centos Linux. Apache/ftp works.</p>
  
  <p>But know i want to connect to an internal SQL server in my Linux machine trough Codeigniter.
  I already installed with Yum mssql-php but when i trying to connect in Codeigniter it says "Unable to connect to your database server using the provided settings.". </p>
  
  <p>My question is what i need to do on my Centos machine to connect my Codeigniter PHP with an internal SQL 2008 database?</p>
  
  <p>My Codeigniter setting are:</p>
  
  <pre><code>$db['default']['hostname'] = '***\***,1433';
  $db['default']['username'] = '***';
  $db['default']['password'] = '***';
  $db['default']['database'] = '**';
  $db['default']['dbdriver'] = 'mssql'; 
  $db['default']['dbprefix'] = '';
  $db['default']['pconnect'] = TRUE;
  $db['default']['db_debug'] = TRUE;
  $db['default']['cache_on'] = FALSE;
  $db['default']['cachedir'] = '';
  $db['default']['char_set'] = 'utf8';
  $db['default']['dbcollat'] = 'utf8_general_ci';
  $db['default']['swap_pre'] = '';
  $db['default']['autoinit'] = TRUE;
  $db['default']['stricton'] = FALSE;
  </code></pre>
  
  <p>On an XAMPP Windows machine this setup works well bu using sqlsrv. But that is only
  supported on a Windows machine..</p>
  
  <p>-- Edit --</p>
  
  <p>Screen of my PHPinfo shows this:
  <img src="https://i.stack.imgur.com/qdRgR.png" alt="enter image description here"></p>