Skip to content

Commit 74ef630

Browse files
committed
add sample local config file + note to README
1 parent c40a1e4 commit 74ef630

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,9 @@ checkout, it primarily sets up the python environment. It should "just
2727
work", but if it doesn't then give it a read. It requires some basic
2828
Python utilities like <code>virtualenv</code> and <code>pip</code>.
2929

30+
To configure WordPress, there is a sample config file at
31+
<code>docroot/wp-config-local.php.sample</code>, copy it to
32+
<code>docroot/wp-config-local.php</code> and fill in the information
33+
as needed by the WP install.
34+
3035
Happy hacking!

docroot/wp-config-local.php.sample

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
/**
3+
* DB config & secrets. DO NOT place under version control!
4+
*/
5+
6+
define('DB_NAME', 'database');
7+
define('DB_USER', 'database');
8+
define('DB_PASSWORD', 'password');
9+
define('DB_HOST', 'localhost');
10+
define('DB_CHARSET', 'utf8');
11+
define('DB_COLLATE', '');
12+
13+
define('AUTH_KEY', 'replace with random, secret phrases / strings');
14+
define('SECURE_AUTH_KEY', 'replace with random, secret phrases / strings');
15+
define('LOGGED_IN_KEY', 'replace with random, secret phrases / strings');
16+
define('NONCE_KEY', 'replace with random, secret phrases / strings');
17+
define('AUTH_SALT', 'replace with random, secret phrases / strings');
18+
define('SECURE_AUTH_SALT', 'replace with random, secret phrases / strings');
19+
define('LOGGED_IN_SALT', 'replace with random, secret phrases / strings');
20+
define('NONCE_SALT', 'replace with random, secret phrases / strings');
21+
22+
define('WP_DEBUG', true);
23+
if (WP_DEBUG) {
24+
@ini_set('display_errors', true);
25+
@ini_set('error_reporting', E_ALL | E_STRICT);
26+
@ini_set('error_log', $_SERVER['DOCUMENT_ROOT'] . '/php_error.log');
27+
define('WP_DEBUG_LOG', true);
28+
define('WP_DEBUG_DISPLAY', false);
29+
define('SCRIPT_DEBUG', true);
30+
}

0 commit comments

Comments
 (0)