Sunday, December 10, 2017

MAMP mysql not starting

https://stackoverflow.com/questions/16021564/mamp-mysql-server-wont-start-no-mysql-processes-are-running

The easiest solution: quit MAMP and remove the log files from MAMP/db/mysql directory [ib_logfile0, ib_logfile1] and restart MAMP. For more visit http://juanfra.me/2013/01/mysql-not-starting-mamp-fix/

Tuesday, December 5, 2017

Install wordpress

http://webdesignerwall.com/tutorials/installing-wordpress-locally

create directory
copy files (zip it and upload to folder)


change config file to match above: wp-config.php
1. db name
2. login in credential
  db user root
  db password root
  use port 3306

create database use MAMP

run install
http://localhost/mysite/wp-admin/install.php

launch site
localhost/dbname
select language

after wp installed
change settings
general - title, tag line, time zone
reading - sample page as front page
Media - change to one folder
Permalinks - use post
user profile - turn off admin bar


in wp-config.php
generate Authentication Unique Keys and Salts

https://api.wordpress.org/secret-key/1.1/salt/

define('AUTH_KEY',         '13F|9&|f^(D@SFth!:o$^4|nanoz=p=)hI`dSKc,3:t+F|f7;y+H:TwUm]y+l6w5');
define('SECURE_AUTH_KEY',  'H[+3IJ&|c{`M?$Z$TbmN]CWhe-WFM-O^$(On-p0`L7}hlR;n#H<r< J_/)u%|f!2');
define('LOGGED_IN_KEY',    'PQzdiJkKoImMzfNhYVCSo$HeV0<U`,}@owN-c[3wQH-LVR#]5eiWTTIc9F=uZ3c@');
define('NONCE_KEY',        ':~V+Tx1n|.R(TVYTNE}K}a_na<x.u:=H#0QiuEM^PXs|%VtRM?5m8yP`)$A.P-j>');
define('AUTH_SALT',        'uPDej2jx6Z_3Y.fu[9=%a-|Z68^hli)7+l0L`kx-!S|/<?o@u^/(u+KQO<z3ro+h');
define('SECURE_AUTH_SALT', 'Atl_J^1@gLbl.A^Ji6qc+!dZwKL-Old7;1mukCE3| !x]wASTU]&fs5>VcEqHO5G');
define('LOGGED_IN_SALT',   '.faG[K9JXPum52i,H.Zk|,t8vin:e9AI2+;27e`fLc? .|{a!:n dNtJ2]5):VX+');
define('NONCE_SALT',       'AW,OoXK5g-@NW9xPvqK~$>@>1%Ik+%lp-ZGEk1XjH{-9s5JejOhEP+?CDe-])|OC');