4,461
edits
add update the wp-config file section |
|||
Line 8: | Line 8: | ||
<div class="cli"> | <div class="cli"> | ||
<span style="color:#00ff00;">mhan</span><span style="color:#444444;">@</span><span style="color:#00cccc;">brahms</span><span style="color:#999999">:</span> | <span style="color:#00ff00;">mhan</span><span style="color:#444444;">@</span><span style="color:#00cccc;">brahms</span><span style="color:#999999">:</span><span style="color:blue;">/srv/www/blog</span><span style="color:#cccccc;"> | ||
<span style="color:blue;">/srv/www/blog</span><span style="color:#cccccc;"> | |||
$ <b class="color:white;">git clone <nowiki>https://github.com/WordPress/WordPress.git</nowiki> .</b> | $ <b class="color:white;">git clone <nowiki>https://github.com/WordPress/WordPress.git</nowiki> .</b> | ||
</span><pre class="output">Cloning into '.'... | </span><pre class="output">Cloning into '.'... | ||
Line 26: | Line 25: | ||
<div class="cli"> | <div class="cli"> | ||
<span style="color:#00ff00;">mhan</span><span style="color:#444444;">@</span><span style="color:#00cccc;">brahms</span><span style="color:#999999">:</span> | <span style="color:#00ff00;">mhan</span><span style="color:#444444;">@</span><span style="color:#00cccc;">brahms</span><span style="color:#999999">:</span><span style="color:blue;">/srv/www/blog</span><span style="color:#cccccc;"> | ||
<span style="color:blue;">/srv/www/blog</span><span style="color:#cccccc;"> | |||
$ <b class="color:white;">mysql -uroot -p</b> | $ <b class="color:white;">mysql -uroot -p</b> | ||
</span> | </span> | ||
Line 52: | Line 50: | ||
Bye</pre> | Bye</pre> | ||
</div> | </div> | ||
== Update the wp-config.php file == | |||
We'll use the default as a starting point. Let's first make a copy of the sample config file. | |||
<div class="cli"> | |||
<span style="color:#00ff00;">mhan</span><span style="color:#444444;">@</span><span style="color:#00cccc;">brahms</span><span style="color:#999999">:</span><span style="color:blue;">/srv/www/blog</span><span style="color:#cccccc;"> | |||
$ <b class="color:white;">cp -p wp-config-sample.php wp-config.php</b> | |||
</span></div> | |||
This doesn't add to the security, but I usually keep original files with an extension of .dist (short for distribution). | |||
<div class="cli"> | |||
<span style="color:#00ff00;">mhan</span><span style="color:#444444;">@</span><span style="color:#00cccc;">brahms</span><span style="color:#999999">:</span><span style="color:blue;">/srv/www/blog</span><span style="color:#cccccc;"> | |||
$ <b class="color:white;">mv wp-config-sample.php wp-config-sample.php.dist</b> | |||
</span></div> | |||
Make updates to the config file. The lines for salts can be obtained at https://api.wordpress.org/secret-key/1.1/salt/. The following diff shows you the changes I've made. | |||
<source lang="diff"> | |||
19c19 | |||
< define('DB_NAME', 'database_name_here'); | |||
--- | |||
> define('DB_NAME', 'wp_michael'); | |||
22c22 | |||
< define('DB_USER', 'username_here'); | |||
--- | |||
> define('DB_USER', 'webacc'); | |||
25c25 | |||
< define('DB_PASSWORD', 'password_here'); | |||
--- | |||
> define('DB_PASSWORD', 'password'); | |||
45,53c45,52 | |||
< define('AUTH_KEY', 'put your unique phrase here'); | |||
< define('SECURE_AUTH_KEY', 'put your unique phrase here'); | |||
< define('LOGGED_IN_KEY', 'put your unique phrase here'); | |||
< define('NONCE_KEY', 'put your unique phrase here'); | |||
< define('AUTH_SALT', 'put your unique phrase here'); | |||
< define('SECURE_AUTH_SALT', 'put your unique phrase here'); | |||
< define('LOGGED_IN_SALT', 'put your unique phrase here'); | |||
< define('NONCE_SALT', 'put your unique phrase here'); | |||
< | |||
--- | |||
> define('AUTH_KEY', 'xSiS5fsJx&c6x-1Xd^xv8<IK|Fp2#]jjyxfH7|XRr -sRrH2O]&gS=U7jp:ikj$j'); | |||
> define('SECURE_AUTH_KEY', ';)[9IiH)=]^ca[sYbSrSX!-8Ou?3_B7TN#47^tI#R/l8MaSnc^>|C]Yb9pJBoW/d'); | |||
> define('LOGGED_IN_KEY', '9]&k)u#m;n#40-j4<~X*!}E`RjE]Se[nxa,D}+]b~zu`1+$*L7H4}&C]=4dr]+H8'); | |||
> define('NONCE_KEY', 'k3i|O O4 ls_lcaamI-aza)zp|/h4G-KAnOGlQD.Z1k0Pgjc!a fcOXs+B^?6Jus'); | |||
> define('AUTH_SALT', ':SrSJn+FH2.K>udlBa+)a8|wt#l%P*#gQ{bv;{S*Sn+>-GUA~]re`BqL043j7Hlp'); | |||
> define('SECURE_AUTH_SALT', 'GpRr[xCm:ECIo$z+-<S{)>W*[QnWagNyD.z|1(6)-+v{5z4GiK7}4Co03,W]Htr~'); | |||
> define('LOGGED_IN_SALT', '_jbNqHC(GT=i|!T?+KFRL>4|S|d:-<..#@NnCb9@m e_nKZomo>W-Da&UEnr)w`j'); | |||
> define('NONCE_SALT', 'Sq+|7M++P>BFh6]-aw ja/aRlf(v0!<Q#7DIiun|)G0yJ$0&LknmTVAAY?~-tDon'); | |||
62c61 | |||
< $table_prefix = 'wp_'; | |||
--- | |||
> $table_prefix = ''; | |||
</source> |