WordPress and MAMP

1,137 views

Published on

A presentation about running a WordPress installation on a local Mac with MAMP. Presented for the Milwaukee WordPress Meetup group.

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,137
On SlideShare
0
From Embeds
0
Number of Embeds
120
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

WordPress and MAMP

  1. 1. Wordpress and Mamp<br />Jim Raffel<br />CEO ColorMetrix<br />and <br />Inspirational Small Business Story Teller <br />at Jim Raffel.com<br />
  2. 2. A functional WordPress development environment on your local machine.<br />The Goal<br />
  3. 3. The Method<br />Install MAMP<br />Install an empty WordPress blog<br />Copy and edit your live database<br />Copy your live wp-content folder<br />Fix all the little things that are broke<br />
  4. 4. Installing MAMP<br />http://www.mamp.info/en/index.html<br />Free is fine probably no need for PRO<br />
  5. 5. Installing WordPress<br />Recommend svncd /applications/MAMP/htdocsmkdir blogcd blogsvn co http://core.svn.wordpress.org/tags/3.2.1 .<br />Detailed info here:http://codex.wordpress.org/Installing/Updating_WordPress_with_Subversion<br />
  6. 6. Installing WordPress (cont)<br />Create a blank MySQL database http://localhost/MAMPUtilize phpMyAdmin – it makes life easier<br />Navigate to new bloghttp://localhost/blog<br />Complete WordPress configuration page<br />
  7. 7. Copy and Edit Live Database<br />mysqldump to copy$ mysqldump –u [database user name] –p[database user’s password] [database name] > [dump file name].sql<br /> Move dump file to local machine and editreplace //blogname.com with //localhost/blog<br />Create blank MySQL database<br />Import edited dump file /applications/mamp/Library/bin/mysql -u root -proot[database name] < [edited dump file].sql<br />
  8. 8. Copy and Edit Live wp-content<br />There is where all your plugins, images and other customizations should be.<br />I use tarfrom the blog foldertar cvf wp-content.tar wp-content/<br />Copy that file to local machine<br />Expand the tar file and replace the local wp-content foldertar xvf wp-content.tar<br />
  9. 9. Fix all the little things<br />Edit wp-config.phpDatabase name and double check table prefix<br />Blog should at least now loadhttp://localhost/blog<br />Themes can be a mess hereActivate a different theme and then reactivate your premium theme<br />Also, I lost most of my widgets<br />
  10. 10. An Alternative<br />In the past (but it seems broken at the moment) BackupBuddy almost completely automated this process.<br />Premium plugin so make sure the feature is working again before paying.<br />Probably only makes sense if you are doing this frequently<br />
  11. 11. Finding Jim Raffel<br />http://JimRaffel.com<br />Twitter: @raffel<br />jim@jimraffel.com<br />http://ColorMetrix.com<br />Twitter @ColorMetrix<br />raffelj@colormetrix.com<br />Cell Phone: 414-732-6954<br />

×