Your SlideShare is downloading. ×
0
Creating Local WordPress Installs
Creating Local WordPress Installs
Creating Local WordPress Installs
Creating Local WordPress Installs
Creating Local WordPress Installs
Creating Local WordPress Installs
Creating Local WordPress Installs
Creating Local WordPress Installs
Creating Local WordPress Installs
Creating Local WordPress Installs
Creating Local WordPress Installs
Creating Local WordPress Installs
Creating Local WordPress Installs
Creating Local WordPress Installs
Creating Local WordPress Installs
Creating Local WordPress Installs
Creating Local WordPress Installs
Creating Local WordPress Installs
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Creating Local WordPress Installs

1,181

Published on

My presentation from WordCamp Dallas 2009

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,181
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
0
Comments
1
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Creating Local WordPress Installs Matthew "Spamboy" McGarity WordCamp Dallas 2009 PowerPoint template by Lester Chan http://lesterchan.net/
  • 2. Overview <ul><li>Introduction &amp; 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&amp;A </li></ul></ul>Creating Local WordPress Installs [ ]
  • 3. PRE-INSTALLATION [ ] Creating Local WordPress Installs
  • 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. 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. 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 &amp; easy to install  </li></ul></ul><ul><ul><li>Other methods exist (ex: virtual machines) </li></ul></ul>Creating Local WordPress Installs [ ]
  • 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. INSTALLATION [ ] Creating Local WordPress Installs
  • 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. Basic Steps <ul><li>Download &amp; install XAMPP/WAMP/MAMP </li></ul><ul><li>Start MySQL &amp; Apache servers </li></ul><ul><li>Create blank database </li></ul><ul><li>Standard WordPress install </li></ul><ul><ul><li>Download &amp; extract WordPress core files </li></ul></ul><ul><ul><li>Rename &amp; modify wp-config-sample.php </li></ul></ul><ul><ul><li>Run install.php </li></ul></ul><ul><ul><li>Change admin user&apos;s password </li></ul></ul><ul><ul><li>Test installation </li></ul></ul>Creating Local WordPress Installs [ ]
  • 11. DEMONSTRATION [ ] Creating Local WordPress Installs
  • 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,&apos;www.spamboy.com&apos;,&apos;localhost/wordpress&apos;); UPDATE wp_posts SET    post_content = Replace(post_content,&apos;spamboy.com&apos;,&apos;localhost/wordpress&apos;); </li></ul>Creating Local WordPress Installs [ ]
  • 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 = &apos;http://localhost/&apos; WHERE  option_name = &apos;siteurl&apos;; UPDATE wp_options SET    option_value = Concat(option_value,&apos; LOCAL&apos;) WHERE  option_name = &apos;blogname&apos;; UPDATE wp_options SET    option_value = 0 WHERE  option_name = &apos;blog_public&apos;; </li></ul>Creating Local WordPress Installs [ ]
  • 14. CONCLUSION [ ] Creating Local WordPress Installs
  • 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. 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. Q&amp;A [ ] Creating Local WordPress Installs
  • 18. THANK YOU! [ ] Creating Local WordPress Installs

×