Creating Local WordPress Installs Matthew "Spamboy" McGarity WordCamp Dallas 2009 PowerPoint template by Lester ...
Overview <ul><li>Introduction & Agenda Review </li></ul><ul><li>Disclaimer </li></ul><ul><li>Pre-Installation </li></ul><u...
PRE-INSTALLATION [   ]  Creating Local WordPress Installs
Why Local Installations? <ul><li>Test new versions before upgrading your live blog  </li></ul><ul><li>Preview future WordP...
Requirements [1/2] <ul><li>WordPress Requirements (http://wordpress.org/about/requirements/) </li></ul><ul><ul><li>PHP 4.3...
Requirements [2/2] <ul><li>What accomplishes this? </li></ul><ul><ul><li>XAMPP (http://apachefriends.org) </li></ul></ul><...
Where to Install? Creating Local WordPress Installs [   ]  Location Benefits Drawbacks Local Hard Disk <ul><li>Disk space ...
INSTALLATION [   ]  Creating Local WordPress Installs
Three Levels of Complexity <ul><li>Basic </li></ul><ul><ul><li>Create simple, default installation </li></ul></ul><ul><li>...
Basic Steps <ul><li>Download & install XAMPP/WAMP/MAMP </li></ul><ul><li>Start MySQL & Apache servers </li></ul><ul><li>Cr...
DEMONSTRATION [   ]  Creating Local WordPress Installs
Intermediate Steps <ul><li>Import posts from live blog </li></ul><ul><li>Change Permalink Structure to match live blog </l...
Advanced Steps <ul><li>Create new database user </li></ul><ul><li>Copy custom .htaccess settings </li></ul><ul><li>Copy da...
CONCLUSION [   ]  Creating Local WordPress Installs
Additional Ideas <ul><li>Local installs of other related projects: </li></ul><ul><ul><li>WordPress MU </li></ul></ul><ul><...
Contact Information <ul><li>Matthew “Spamboy” McGarity </li></ul><ul><li>Web  http://spamboy.com/ </li></ul><ul><li>Email ...
Q&A [   ]  Creating Local WordPress Installs
THANK YOU! [   ]  Creating Local WordPress Installs
Upcoming SlideShare
Loading in …5
×

Creating Local WordPress Installs

1,555 views

Published on

My presentation from WordCamp Dallas 2009

Published in: Technology
1 Comment
0 Likes
Statistics
Notes
  • Be the first to like this

No Downloads
Views
Total views
1,555
On SlideShare
0
From Embeds
0
Number of Embeds
22
Actions
Shares
0
Downloads
0
Comments
1
Likes
0
Embeds 0
No embeds

No notes for slide

Creating Local WordPress Installs

  1. 1. Creating Local WordPress Installs Matthew &quot;Spamboy&quot; McGarity WordCamp Dallas 2009 PowerPoint template by Lester Chan http://lesterchan.net/
  2. 2. Overview <ul><li>Introduction & Agenda Review </li></ul><ul><li>Disclaimer </li></ul><ul><li>Pre-Installation </li></ul><ul><ul><li>Reasons for Local Installs </li></ul></ul><ul><ul><li>Requirements </li></ul></ul><ul><li>Installation </li></ul><ul><ul><li>Basic </li></ul></ul><ul><ul><li>Intermediate </li></ul></ul><ul><ul><li>Advanced </li></ul></ul><ul><li>Conclusion  </li></ul><ul><ul><li>Extensions </li></ul></ul><ul><ul><li>Q&A </li></ul></ul>Creating Local WordPress Installs [ ]
  3. 3. PRE-INSTALLATION [ ] Creating Local WordPress Installs
  4. 4. Why Local Installations? <ul><li>Test new versions before upgrading your live blog </li></ul><ul><li>Preview future WordPress functionality </li></ul><ul><ul><li>Nightly builds, bleeding-edge releases </li></ul></ul><ul><li>Maintain client-specific environments </li></ul><ul><li>Use multiple environments for project lifecycle </li></ul><ul><ul><li>Dev, QAT, UAT, Prod, Demo </li></ul></ul><ul><li>Work anywhere, anytime </li></ul><ul><ul><li>Planes, libraries, bathrooms – anywhere without needing an internet connection! </li></ul></ul>Creating Local WordPress Installs [ ]
  5. 5. Requirements [1/2] <ul><li>WordPress Requirements (http://wordpress.org/about/requirements/) </li></ul><ul><ul><li>PHP 4.3 </li></ul></ul><ul><ul><li>MySQL 4.0 </li></ul></ul><ul><ul><li>Apache w/ mod_rewrite module </li></ul></ul>Creating Local WordPress Installs [ ]
  6. 6. Requirements [2/2] <ul><li>What accomplishes this? </li></ul><ul><ul><li>XAMPP (http://apachefriends.org) </li></ul></ul><ul><ul><li>WAMP Server (http://wampserver.com) </li></ul></ul><ul><ul><li>MAMP (http://mamp.info) </li></ul></ul><ul><li>There is no one true way </li></ul><ul><ul><li>Packages above are free & easy to install  </li></ul></ul><ul><ul><li>Other methods exist (ex: virtual machines) </li></ul></ul>Creating Local WordPress Installs [ ]
  7. 7. Where to Install? Creating Local WordPress Installs [ ] Location Benefits Drawbacks Local Hard Disk <ul><li>Disk space rarely an issue </li></ul><ul><li>Faster disk access </li></ul><ul><li>Can depend on same machine each time </li></ul><ul><li>Binds you to working on one machine only </li></ul><ul><li>Effort to keep multiple environments separate </li></ul>Removable Media <ul><li>Portable </li></ul><ul><li>Self-Contained </li></ul><ul><li>Slower disk access </li></ul><ul><li>Disk space issues </li></ul><ul><li>Cannot count on different machines </li></ul><ul><li>Easier to lose </li></ul><ul><li>Easier to corrupt </li></ul>
  8. 8. INSTALLATION [ ] Creating Local WordPress Installs
  9. 9. Three Levels of Complexity <ul><li>Basic </li></ul><ul><ul><li>Create simple, default installation </li></ul></ul><ul><li>Intermediate </li></ul><ul><ul><li>Import content from your live blog </li></ul></ul><ul><ul><ul><li>Themes, Plugins, Uploads </li></ul></ul></ul><ul><ul><li>Scrub internal links </li></ul></ul><ul><li>Advanced </li></ul><ul><ul><li>Import non-WordPress database objects </li></ul></ul><ul><ul><li>Custom settings </li></ul></ul>Creating Local WordPress Installs [ ]
  10. 10. Basic Steps <ul><li>Download & install XAMPP/WAMP/MAMP </li></ul><ul><li>Start MySQL & Apache servers </li></ul><ul><li>Create blank database </li></ul><ul><li>Standard WordPress install </li></ul><ul><ul><li>Download & extract WordPress core files </li></ul></ul><ul><ul><li>Rename & modify wp-config-sample.php </li></ul></ul><ul><ul><li>Run install.php </li></ul></ul><ul><ul><li>Change admin user's password </li></ul></ul><ul><ul><li>Test installation </li></ul></ul>Creating Local WordPress Installs [ ]
  11. 11. DEMONSTRATION [ ] Creating Local WordPress Installs
  12. 12. Intermediate Steps <ul><li>Import posts from live blog </li></ul><ul><li>Change Permalink Structure to match live blog </li></ul><ul><li>Copy wp-content folders from live blog </li></ul><ul><ul><li>Themes, Plugins, Uploads </li></ul></ul><ul><li>Reactivate plugins (except for those which ping/post) </li></ul><ul><li>Remove default installed items: </li></ul><ul><ul><li>Posts, Links, Categories, Plugins </li></ul></ul><ul><li>Scrub links in wp_posts table: </li></ul><ul><li>  UPDATE wp_posts SET    post_content = Replace(post_content,'www.spamboy.com','localhost/wordpress'); UPDATE wp_posts SET    post_content = Replace(post_content,'spamboy.com','localhost/wordpress'); </li></ul>Creating Local WordPress Installs [ ]
  13. 13. Advanced Steps <ul><li>Create new database user </li></ul><ul><li>Copy custom .htaccess settings </li></ul><ul><li>Copy database from live blog </li></ul><ul><ul><li>Export/Import using phpMyAdmin </li></ul></ul><ul><ul><li>Scrub links in wp_posts table (see previous slide) </li></ul></ul><ul><ul><li>Scrub options in wp_options table: </li></ul></ul><ul><li>UPDATE wp_options SET    option_value = 'http://localhost/' WHERE  option_name = 'siteurl'; UPDATE wp_options SET    option_value = Concat(option_value,' LOCAL') WHERE  option_name = 'blogname'; UPDATE wp_options SET    option_value = 0 WHERE  option_name = 'blog_public'; </li></ul>Creating Local WordPress Installs [ ]
  14. 14. CONCLUSION [ ] Creating Local WordPress Installs
  15. 15. Additional Ideas <ul><li>Local installs of other related projects: </li></ul><ul><ul><li>WordPress MU </li></ul></ul><ul><ul><li>BuddyPress </li></ul></ul><ul><li>Automated downloads of nightly builds (http://boren.nu/archives/2009/06/19/auto-upgrading-to-nightly-builds/) </li></ul><ul><li>WP beta testing (http://westi.wordpress.com/?p=100) </li></ul><ul><li>Install on other devices enabled for disk usage </li></ul>Creating Local WordPress Installs [ ]
  16. 16. Contact Information <ul><li>Matthew “Spamboy” McGarity </li></ul><ul><li>Web http://spamboy.com/ </li></ul><ul><li>Email ninodespam@gmail.com </li></ul><ul><li>Twitter @spamboy </li></ul><ul><li>Skype ninodespam </li></ul><ul><li>Chat: </li></ul><ul><ul><li>AIM ninodespam </li></ul></ul><ul><ul><li>GTalk ninodespam@gmail.com </li></ul></ul>Creating Local WordPress Installs
  17. 17. Q&A [ ] Creating Local WordPress Installs
  18. 18. THANK YOU! [ ] Creating Local WordPress Installs

×