Search this site
Embedded Files
Skip to main content
Skip to navigation
NFMC - internal
Commands
Development
CSS
Bootstrap
Javascript
Laravel
Controllers
How-To
Highlighting fields with validation errors
Installing Gulp
Laravel CSRF token
Managing migrations
Route Aliases
SQLite driver on Ubuntu
Model
Routing
Tip & Tricks
Form Validation
Validation
nginx
Node.js
PHP
Composer
How-To
PHP max upload size
Setup Java
Vagrant
Hardware
Disks
Replace one of the physical volumes in an LVM volume group
Marketing
Production
Install
Tips
Update
Technologies
Linux
Font rendering
PHP
Enabling cache
Php 5.6.x on CentOS 7
PHP magical constants
PHPUnit
reCaptcha with proxy
Using composer
VMWare
Testing
Karma
Tools
Phing
Fixing Phing build
NFMC - internal
SQLite driver on Ubuntu
Post date: Apr 16, 2015 4:12:50 AM
When running my tests, I use an in memory sqlite database. This works on my local Mac, but on my Ubuntu server it doesn't seem to find the "sqlite" driver.
<?php //app/config/testing/database.php return [ 'default' => 'sqlite', 'connections' => [ 'sqlite' => [ 'driver' => 'sqlite', 'database' => ':memory:', 'prefix' => '' ] ],];
Gives me when running
phpunit
:
PDOException: could not find driver
adaptivemedia
30 Apr 2014
ANSWER
Needed to install sqlite on the server:
sudo apt-get install sqlite php5-sqlite
Google Sites
Report abuse
Page details
Page updated
Google Sites
Report abuse