Skip to main content

Command Palette

Search for a command to run...

Creating Portable WordPress with Sqlite Database

Published
1 min read
M

Mohamad's interest is in Programming (Mobile, Web, Database and Machine Learning). He is studying at the Center For Artificial Intelligence Technology (CAIT), Universiti Kebangsaan Malaysia (UKM).

[1] Download WordPress

https://wordpress.org/latest.zip

extract to your target path

e.g. c:\laragon\www\wp\

[2] Create sqlite database

create a file e.g. wpdb.sqlite and put it into the folder wp-content

[3] Edit the WordPress config file

(wp-config.php)

<?php
define('DB_DIR', __DIR__);
define('DB_FILE', 'wordpress.db');

Then, append remaining codes from wp-config-sample.php .

[4] Install

Run your web server and navigate to WordPress installation page.

Reference:

https://github.com/mfyz/wp-sqlite-installer/tree/master

7 views