title: yii CDbException: CDbConnection failed to open the DB connection: could not find driver
body: <p>I am trying to use the <code>yii</code> framework for a while. I have been referring - <a href="http://www.yiiframework.com/doc/guide/1.1/en/quickstart.first-app" rel="nofollow">first-app-doc</a> and <a href="http://www.yiiframework.com/doc/guide/1.1/en/quickstart.first-app-yiic" rel="nofollow">yiic-doc</a>. </p>
  
  <p>I have read all the posts related to mine on "stackoverflow" but couldn't get any luck resolving my problem. Mostly because I am stuck on the <code>.ini</code> files and the <code>pdo</code>.  </p>
  
  <p>I have modified the config file-<code>protected/config/main.php</code> according to my database configuration. I am using the command line tool - <code>yiic</code> to create the <code>model</code>. It gives me 'http://hostname/path/to/index.php?r=user' to hit.</p>
  
  <p>When I hit <code>http://localhost/index.php?r=user</code>; it gives <code>CDbException</code> - <code>CDbConnection failed to open the DB connection: could not find driver</code> in the browser itself. It seems like it can't find the <code>pdo_mysql</code>.<br>
  Also, I don't have the <code>php.ini</code> file in <code>/etc/php5/</code>, but I have different <code>php.ini</code> files in <code>/etc/php5/cgi/</code>, <code>/etc/php5/apache2/</code> and <code>/etc/php5/cli/</code>.  </p>
  
  <p>Also, the <code>php5-mysql</code> package, I have it installed on my computer.  </p>
  
  <p>I have been trying and trying. This is like impossible to do.</p>