-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
sqlite-wp-config.php
57 lines (42 loc) · 1.33 KB
/
sqlite-wp-config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
/*
wp-config.php file for SQLite Integration.
Convert MySQL - mysql2sqlite.sh: https://gist.github.com/esperlu/943776
Administer: https://bitbucket.org/phpliteadmin/public
Installation steps
------------------
wget -nv -O- https://wordpress.org/latest.tar.gz | tar -xz
cd wordpress/wp-content/plugins/
wget -nv https://downloads.wordpress.org/plugin/sqlite-integration.zip
unzip sqlite-integration.zip
cp sqlite-integration/db.php ../
*/
define( 'USE_MYSQL', false );
define( 'DB_NAME', 'sqlite' );
define( 'DB_CHARSET', 'utf8' );
$table_prefix = 'sql3_';
//define( 'USE_MYSQL', true );
//define( 'DB_DIR', '/ABS/PATH/wp-content/database/' );
//define( 'DB_FILE', '.ht.sqlite' );
// Dummy data for plugins
define( 'DB_USER', 'sqlite' );
define( 'DB_PASSWORD', 'sqlite' );
define( 'DB_HOST', 'sqlite' );
define( 'DB_COLLATE', '' );
/*
Salts
Alt + U (mcedit/Paste output of...)
wget -qO- https://api.wordpress.org/secret-key/1.1/salt/
*/
/*
Webserver
apt-get install -y php5-cli
php -S
*/
/* That's all, stop editing! Happy blogging. */
/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', dirname( __FILE__ ) . '/wordpress/' );
}
/** Sets up WordPress vars and included files. */
require_once ABSPATH . 'wp-settings.php';