• Home
  • About
  • Ways to Contact: 480-463-4062

A Griffith Listing

Real Estate Services by Jon Griffith

You are here: Home / Archives for unpack

How to Reinstall WordPress Safely

November 28, 2008 by admin

There may be a time when you need to re-install WordPress on your server due to some sort of compatibility error, or server change…you name it.  It’s a good idea to practice this process if you’re running multiple blogs and/or managing blogs for other people.  If you have one blog, and you don’t use the self-hosted version of WordPress, then you might just want to stick to using WordPress.com to host your blog.  There are advantages and disadvantages to using the hosted vs. self-hosted versions.  For this tutorial, you’ll need to be one of the self-hosted adventuresome bloggers.

When WordPress releases new versions, sometimes things go wrong with older plugins.  Prior to upgrading, just to be safe, I backup everything. How you backup is up to you, but the basics of backing up WordPress involve saving a copy of your wp-config.php file in the root of your blog, and the wp-content folder (and all sub-folders) which contains your plug-ins, themes, uploads, and any other special files that are specific to your blog.  In addition to backing up your WordPress files, you also need to backup the database that WordPress is reading and writing to and from.

If you don’t backup your data, you are at risk of screwing everything up.  I’ve done this many times, unfortunately, but will never have this problem again.

Basic Steps to Reinstallation

Stage 1: Backup and Deactivate

  • Backup your WordPress files, themes, plugins…basically everything in the wp-content folder AND the wp-config.php file in the blog root.
  • Backup your Data.  I use SQLyog to export my data in a long SQL statement to a text file on my desktop.
  • If you don’t have the original version of your blog stored on your computer, download your entire blog root and sub-folders and keep them safe just in case you need to revert to the old version.
  • Deactivate all of your plug-ins just to be safe.

Stage 2:  Delete The old Crap

  • Delete the entire blog root, except for wp-config.php (yes, you backed it up, but why add a step later?)
  • Delete the entire wp-admin folder and the entire wp-includes folder.
  • Rename wp-content to wp-content_old (for extra redundancy)

You now have a dead blog, but you’ve preserved your important configuration and data.

Stage 3:  Upload WordPress

You’ve already “installed” wordpress (which involves creating a new database) so all you’re doing at this point is uploading the newest files in place of where your old blog was.  Upload everything you unpack from either version 2.6RC1 or the latest version to your blog root.  Overwrite everything.

Stage 4:  Restore Your Theme and Plugins

  • From the folder you renamed to wp-content_old, using your favorite FTP client if you’re remote, or windows exploder (explorer) if you’re on the server itself, drag all of the folders under wp-content_old to the new wp-content folder that you just uploaded to your blog’s root.
  • Your wp-config.php file should have remained where it was in the blog root through this entire process.

Stage 5:  Run the Upgrade Script

  • This is easy and always will be.  Point your browser to www.yourblog.com/wp-admin/upgrade.php and follow the instructions.  This is why you backed up your data.  If this process fails, you have a backup.

That’s it.  You should now have a completely backed up prior version, a completely backed up data set as of the date of your upgrade, and a brand new installation, ensuring all new files are uploaded and no overwrite errors occurred.  It’s always possible for there to be a problem when you upload a new version over an old version which is why I always do a fresh upload of the entire structure.

Filed Under: Tips and Tricks Tagged With: configuration, Deactivate, Delete, download, overwrite, php, server, unpack, Upgrade, Wordpress

Archives

  • September 2023
  • April 2022
  • March 2016
  • January 2016
  • December 2015
  • October 2015
  • June 2015
  • May 2015
  • April 2015
  • February 2015
  • January 2015
  • July 2014
  • April 2014
  • March 2014
  • November 2013
  • October 2013
  • September 2013
  • August 2013
  • May 2013
  • March 2013
  • February 2013
  • July 2012
  • March 2012
  • December 2011
  • December 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • September 2009
  • August 2009
  • June 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • April 2007
  • March 2007
  • November 2006
  • August 2006
  • June 2006
  • September 2005
  • August 2005

Test

  • About
  • Affordability Calculator
  • Arizona Department of Real Estate Buyer Advisory
    • Additional Information
    • Common Documents a Buyer Should Review
      • Affidavit of Disclosure
      • County Assessors/Tax Records
      • Covenants, Conditions and Restrictions (“CC&R’s”)
      • HOA Disclosures
      • Home Warranty Policy
      • Homeowner’s Association (“HOA”) Governing Documents
      • Lead Based Paint Addendum
      • Loan Documents
      • MLS Printout
      • Professional Home Inspection Report
      • Purchase Contract
      • Seller’s Property Disclosure Statement (“SPDS”)
      • Termites and Other Wood Destroying Insects and Organisms
      • The Subdivision Public Report
      • Title Report or Title Commitment
    • Common Physical Conditions in the Property a Buyer Should Investigate
      • #206 (no title)
      • Deaths and Felonies on the Property
      • Endangered and Threatened Species
      • Flood Plain Status
      • Indoor Environmental Concerns
      • Insurance (Claims History)
      • Other Property Conditions
      • Pests
      • Previous Fire/Flood
      • Property Boundaries
      • Repairs and New Construction
      • Roof
      • Septic and Other On-Site Wastewater Treatment Facilities
      • Sewer
      • Square Footage
      • Swimming Pools and Spas
      • Water/Well Issues
    • Conditions Affecting the Area Surrounding the Property the Buyer Should Investigate
      • City Profile Report
      • Crime Statistics
      • Electromagnetic Fields
      • Environmental Concerns
      • Forested Areas
      • Freeway Construction and Traffic Conditions
      • Military and Public Airports
      • Schools
      • Sex Offenders
      • Superfund Sites
      • Zoning/Planning/Neighborhood Services
    • Other Methods to Obtain Information About a Property
  • Blog
  • Days Inventory
  • Downloads
  • Downloads
  • Frequently Asked Questions
  • Greater Coronado Historic
  • Hiring the Right Agent
  • Home
  • Homepage
  • Homes We’ve Sold
  • How do Real Estate Agents get Paid?
  • jongriffith
  • Link Sharing
  • LOST on ABC Season 4 Finale Poetry Party
  • LOST Season 5 Premiere Poems
  • Market Statistics
    • Market Data for All of ARMLS
  • Mashup
  • MLS Search
  • Mortgage Calculator
  • My Account
  • My Account
  • My Listings
  • My Listings
  • NextDoor Neighborhood Report
  • No Access
  • Obtaining a New Loan
  • On Fitness
  • On Money
  • On Music
  • On Nutrition
  • On Real Estate
  • On Real Estate
  • On Triathlons
  • Online Store
  • Outdoor Living
    • Phoenix Area Hiking and Cycling Trails
  • Page Full of Miscellaneous Things
  • Products Page
    • Transaction Results
    • Verify your Order
    • Your Account
  • Properties
  • Purchase Contract
  • Questions
  • Questions
  • Rates
  • Request a Showing
  • Sample Documents
  • School Matters
  • Schools
    • Arizona AIMS Testing
  • Scottsdale Listings
  • Scottsdale Listings
  • Search Results
  • Sell A Home
    • Marketing Strategy
  • Sell Our House
  • Seller’s Market
  • Selling Short
  • Services
  • Setting the Right Price
  • Shop
  • Shop Product List
  • Short Sale Seller Advisory
    • Before Proceeding With A Short Sale
    • What is a Short Sale?
  • Site Introduction
  • Social Stream
  • Supply and Demand: X Marks the Spot
  • Test
  • Testimonial
  • Testimonials
  • TEsting
  • Testing Full Page
  • Thank You!
  • Thanks!
  • The Creativity of LOST Addicts
  • The Dry Rub
  • The Purchase Contract
  • The Volleygirls Shenanigans
  • Thoughts on Postmate Tips
  • Title
  • Understanding Pool Barrier Laws
  • Videos
  • Ways to Contact
  • Website Consulting
  • Website Hosting Sign-Up
  • Websites for REALTORS
  • What is a Buyer’s Agent?
  • What is a Listing Agent?
  • What is a Real Estate Agent?
  • What is a REALTOR?
  • What Is Entrecard?
  • What’s YOUR Home Worth?
  • Why Use a REALTOR?
  • Work
  • Worship Songs
  • Your Home’s Value

Copyright © 2025 · AgentPress Pro Theme on Genesis Framework · WordPress · Log in