Jared Heinrichs

  • Technology Blog
  • Winnipeg Computer Repair
  • Winnipeg Photographer
  • Cooking With Jared
You are here: Home / Web Applications / Wordpress / How to make a copy of an online Wordpress website and use it offline

Feb 25, 2010 By Jared Heinrichs Leave a Comment

How to make a copy of an online WordPress website and use it offline

As I find myself working more and more with WordPress I find myself needing to use it in different ways. I have been doing more work on other companies WordPress installs. This post will dive into converting an online WordPress install into and offline sandbox.

Why does making an offline version make sense? What happens when some developers develop their themes in undocumented ways, customize plug-ins by directly editing the files, or make changes to the base code of WordPress instead of using the functions.php file?

You might also want to do upgrade testing. Does your theme support automatic updates? If the update get’s applied does it effect the look of the website? Does it break it? Want to work early on that Christmas theme with posts from your website?

You might think all you would have to do is to copy the files to the new offline server, Export the MySQL data and then import. Unfortunately this normally doesn’t work due to WordPress hard coding several things in the database. You could also go through the database, edit it directly and so everything points to the write place and I have seen it work. Then again I have seen when people missed something and it either killed the blog right away or and upgrade later get botched and website turns into one big white screen of death.

The ideal way of doing it

The best way of creating an offline version is to make sure that you have downloaded the same version you are running on the website. If you can’t download the same version upgrade your online version first to the latest and greatest. Then install WordPress on the machine you want as the offline development server. For me it is my laptop because I take it around everywhere I go. on

Install the offline version of WordPress

I am assuming going to assume as few things from you:

  1. You have setup the hosting server
  2. You have copied the WordPress install files to the same server
  3. You have already setup a user/database for the WordPress blog in MySQL
  4. You have installed WordPress a few times before and don’t need a really in depth overview.

Go to the web folder where you installed WordPress. You should be walked through a wizard style setup. Click “Creat a configuration file”.

image

Click “Let’s go”.

image

Enter your information. Keep in mind even though your machine is offline you should take security into consideration. You Database and Username should NOT be the same. Your password should contain Upper/lowercase letters and a few numbers to mix things up.

image

You should get something like this if you entered everything correctly and setup the MySQL user properly.

image

Enter the blog info and then hit “Install WordPress”.

image

You will be shown a username and a temporary password. Make note of BOTH of them!

image

Log in with the user info:

image

Now is a good time as any if you want to reset the password that you were given at install.

image

You should make sure that it is easy to remember but it also should be a strong password.

image

Good work! You are half way there!

Exporting from the live WordPress

Go to the Live WordPress site and log in:

image

Go to the Tools menu on the left hand side and click on “Export”.

image

Make sure “All Authors” is selected then click “Download Export File”.

image

Click Save. I would recommend just save it to your desktop. It shouldn’t be that big of a file.

image

Going back to the “Offline” site click on “Import” from the Tools menu. Then click on “Wordpress” import.

image

Click on the Browse button and select the XML file that you saved to your desktop. Before click on the “Upload file and import” make sure that you have a good connection. I do recommend that you do the upload on a LAN line especially if the wireless signal you are using is weak.

image

Make sure just to tell WordPress to leave all the users alone which is the default setting for the users.

image 

Make sure to check off “Downlaod and import file attachments and hit submits.

image

This will take a bunch of time if there was a lot of files. You will see each file listed on a line and numbered.

You’re now required to copy the theme folder from the Live server to the “Offline” server.

Any Plugins will needed to be downloaded and setup.

You are done!

Filed Under: Wordpress Tagged With: How To

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Board Game Rules
  • Camera
  • Computer Hardware
    • Blackberry
    • drivers
    • iPad
    • Magic Jack
    • USB
  • Damn Small Linux
  • Exam Notes
  • Facebook
  • FREE Flashcards
  • Games
    • PC
      • League of Legends
    • Wii
    • xbox 360
  • Music
  • Networking
    • Cisco Certification
    • Mitel
    • Palo Alto Firewall
  • News
    • Google
    • Microsoft
  • Operating System
    • Active Directory (2003)
    • Android
    • Command Prompt
    • Damn Small Linux
    • Group Policy
    • Hyper-V
    • IIS
    • ISA 2006
    • Mac OS X
    • Microsoft Exchange Server
    • Powershell
    • Security
    • SME Server
    • Terminal Server 2003
    • Ubuntu Linux
      • Adito Web SSL VPN
      • OpenVpn-als
      • Webmin
    • Virtual Machine Manager
    • Windows 2003 SBS
    • Windows 2003 Server
    • Windows 2008
    • Windows 2008 R2
    • Windows 2012R2
    • Windows 7
    • Windows 8
    • Windows Command Line
    • Windows Deployment Services
    • Windows Server Backup
    • Windows Vista
    • Windows XP
  • Phones
  • Photography
  • Photos
    • Animals
    • Misc
    • Nature
    • Portraits
  • Portfolio
  • Programming
    • CSS
    • HTML
    • jQuery
    • MySQL
    • PHP
    • Script
  • Programs
    • Acrobat
    • Acrobat Reader
    • Adobe Dreamweaver
    • Adobe Illustrator
    • Adobe Photoshop
    • Anti-virus Software
    • Antivirus
    • Backup Exec
    • Bittorent
    • Blackberry BESADMIN
    • Internet Explorer 9
    • Lightroom
    • Microsoft Office
    • Netbeans
    • Onenote
    • Outlook
    • Shelby
    • Sysprep
    • Trend
    • Video Editing
    • Visual Studio
    • Windows Live Writer
    • WireShark
    • XP Mode
    • Zarafa
  • Recipe
  • Review
  • Software Links
  • Troubleshooting
  • Uncategorized
  • Videos
  • Web Applications
    • Brage
    • Google
    • Spiceworks
    • Wordpress
  • Web Browsers
    • Internet Explorer
  • Web Server
    • XAMPP
  • Winnipeg
    • ISP

Try searching this site!

Copyright © 2021 Winnipeg Web Design