Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Ubuntu, Drupal, Drush & SQLite

Ubuntu, Drupal, Drush & SQLite


sudo apt update
sudo apt install sqlite3 libsqlite3-dev

For PHP add:

sudo apt install php5-sqlite
sudo service apache2 restart

Add Drush user to www-data group

sudo adduser [user] www-data

Log out than log in back.

Locate SQLite database

cd to/your/drupal/root
drush sql-connect

Make SQLite database writable for group

sudo chmod g+w your/sqlite/db

Check if everything is OK

drush en -d


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment