sirin k

Nintriva Wireless

2 notes

Solution for the Usual Issue #CDbConnection failed to open the DB connection: could not find driver in Ubuntu(LAMP)

Hi guys,

       i was getting this error message in my LAMP environment for one of my Yii app running @apache in Ubuntu platform.The reason behind this was that  i was missing my sqlite php5-sqlite driver extension.My Yii app was trying to find the sqlite php5-sqlite driver extension so i got this problem.

Solution:

         step1:open your terminal

         step2:

          >sudo apt-get install sqlite php5-sqlite
>sudo
/etc/init.d/apache2 restart


Sample screen shot of this issue: