Enable sqlite3 PDO extension

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

Enable sqlite3 PDO extension

Post by panic! »

Does anyone know how to enable the SQLite3 extension for PDO?

Ubuntu Server 8.04
Apache2
php5

I've tried sudo apt-get install php5-sqlite and a quick look in /etc/php5/apache2/php.ini and /etc/php5/apache2/conf.d/pdo.ini and a lot of googling, to no avail!

Code: Select all

 
Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' in /var/www/vhosts/wren/system/wren/classes/database.php:10 Stack trace: #0 /var/www/vhosts/wren/system/wren/classes/database.php(10): PDO->__construct('sqlite3:host=sy...') #1 /var/www/vhosts/wren/system/wren/classes/application.php(28): database->__construct() #2 /var/www/vhosts/wren/system/start.php(9): application->go() #3 /var/www/vhosts/wren/index.php(40): include('/var/www/vhosts...') #4 {main} thrown in /var/www/vhosts/wren/system/wren/classes/database.php on line 10
 
Thanks in advance
User avatar
maliskoleather
Forum Contributor
Posts: 155
Joined: Tue May 15, 2007 2:19 am
Contact:

Re: Enable sqlite3 PDO extension

Post by maliskoleather »

sudo apt-get install php5-sqlite3

also, apt-cache search is nice
Post Reply