Portable Wordpress with SQLite instead of MySQL
When working with WordPress, there are many occasions you may need a quick spin WordPress environment without dealing with database setup and a web server.
Making WordPress use a SQLite database and run on a native PHP server is surprisingly easy and simple.
I’ve been using this setup for testing plugins, and themes and trash the setup without worrying about it much.
The magic here is mostly automating the installation and configuration of the WordPress instance using wp-cli. It’s very easy to install and run wp-cli from a phar package.
You can get the full installer and configuration script here: https://github.com/mfyz/wp-sqlite-installer
This article was first published on my personal blog: https://mfyz.com/portable-wordpress-with-sqlite-instead-of-mysql/