Skip to content

Instantly share code, notes, and snippets.

@ItangSanjana
Last active April 26, 2016 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ItangSanjana/e50b7862e9ee8f86dccd to your computer and use it in GitHub Desktop.
Save ItangSanjana/e50b7862e9ee8f86dccd to your computer and use it in GitHub Desktop.
Ubuntu, Drupal, Drush & SQLite

Ubuntu, Drupal, Drush & SQLite

Install

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

EOF

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