Your Blog Tools

Maximise Your Blog

Host Your WordPress Blog Locally

If you regularly tweek your blog’s design, layout or test plugins – I would recommend having a local version of your blog.


Hosting locally means running a duplicate copy of your live blog on your local machine. In other words, your PC becomes your web and database server.
Having your own development area is a bit like having your own playground, with freedom to test and tweek as you please without affecting the live system. Web developers generally adopt this approach before deploying.

Hosting your blog locally is a very straight forward process, and would require the following;

  • Installing a web server on your computer.
  • Creating a database.
  • Downloading the latest version of wordpress.
  • Tweeking one wordpress file.

There are several ways to achieve this, but one the easiest ways is using a tool called XAMPP, which happens to work across most operating systems.

Step 1

Install a local web server

PC

This is quite straight forward on a PC, simply visit http://www.apachefriends.org/en/xampp-windows.html to download and install XAMMP Lite executable file.

Linux

For Linux users, applying a few commands in your terminal should get you up and running. Simply visit http://www.apachefriends.org/en/xampp-linux.html for download and install instructions.

MAC

MAC users, download and extract XAMPP file from here http://www.apachefriends.org/en/xampp-macosx.html

Step 2

Create and active your database
Using the downloaded XAMPP tool, you can create a new database for your local blog. Simply open XAMPP control panel and select the Admin button next to MySQL. This should then take you phpMyAdmin page.

On this page, under MySQL Localhost section, you can create a new database name.

At this stage, to make sure everything is working fine, start the Apache and MySQL services, it will notify you once it starts.
You should also see the XAMPP splash screen when you type “localhost” into your browser.

Step 3

Download and Extract WordPress
You can download the latest version of WordPress by visiting wordpress.com Once downloaded, extract the zipped file and move it inside the htdoc folder. On a windows machine, this can be located under c:\xampp\htdoc

Step 4

Update your wp-config.php file
In this file, you will have to define your database parameters to enable connection.
In your wordpress folder, c:\xampp\htdoc\wordpress\

  1. Rename the file wp-config-sample.php to wp-config.php
  2. Define your database name – (‘DB_NAME’, ‘test‘);
  3. Define your database username – (‘DB_USER’, ‘root‘);
  4. Define your database password – (‘DB_PASSWORD’, ‘test‘);

You can find your database information from the phpMyAdmin page, located under the MySQL section

Step 5 and final step

Configure and Install
Run install.php file by pointing your browser to http://localhost/wordpress/wp-admin/install.php and hit enter.

  1. At this stage, you then see the configuration file, complete the fields with the same information as your wp-config.php file.
  2. Complete your blog title along with your email address and hit Run install
  3. ALL DONE – You now have a copy locally.

To transfer files from server to local machine, I would recommend using a an FTP client such as FileZilla.

What are your thoughts on testing locally?

  • http://www.cheap-nikeshox.com/nike-shox-TL3.html shox monstor women

    Here elaborates the matter not only extensively but also detailly .I support the write's unique point.It bravecursing.com is useful and benefit to your daily life.You can go those sits to know more relate things.They are strongly recommended by friends.Personally

  • Riley H

    The open source code on WP among many others is what makes it the ultimate blogging platform. Although it does seem to be becoming a bit dated, i still use it with the multiple sites i host. Even so, the Web 2.0 approach makes it easy for me to find relevant things like technical staffing agency which has a WP topic page where technical professionals can discuss the industry in which they work. Everything is indexed and can be search-able. 

SERVICES WE USE