title: Php does not recognize PDO_DBLIB driver
body: <p>So I am writting some code so I can access a Microsft SQL Server. The code I am writting is in a Centos 7 machine. I've installed the php mysql and mssql packages but when I run </p>
  
  <pre><code>echo "&lt;pre&gt;", print_r(PDO::getAvailableDrivers()), "&lt;/pre&gt;";
  </code></pre>
  
  <p>I get the following output:</p>
  
  <pre><code>Array
  (
     [0] =&gt; mysql
     [1] =&gt; pgsql
     [2] =&gt; sqlite
  )
  </code></pre>
  
  <p>I've restarted the lampp and still got the same result. </p>
  
  <p>I've also edited <code>php.ini</code> to include <code>extension=php_mssql.so</code>, and restarted lampp and still got the same output.</p>
  
  <p>When I run the pdo script:</p>
  
  <pre><code>try
  {
      $con = new PDO("dblib:host=".$db_addr.";dbname=".$db_name.";charset=utf8", '".$db_usr."', '".$db_pass."');
      $con-&gt;setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
  }
  catch(PDOException $e)
  {
      echo "ERROR: ". $e-&gt;getMessage();
      die(); 
  }
  </code></pre>
  
  <p>I always get:</p>
  
  <pre><code>ERROR: could not find driver
  </code></pre>
  
  <p>I relalise that this needs to be configured in the <code>php.ini</code>, but the the drivers that are output are commented out of <code>php.ini</code>, hence I am quite confused.</p>
  
  <p>Can someone guide me in the proper direction?</p>
  
  <p>EDIT: I've followed @jap1968 answer in <a href="https://stackoverflow.com/questions/21315354/pdo-dblib-on-centos-6-x">here</a>, but I got stuck at where I am now.</p>