Uncategorized

Xampp WordPress install

Today I’ve got a reader-requested tutorial about how you can install WordPress on your Windows 7computer (same applies for Windows XP & Vista). This is such an important part of my WordPress working life, and if you don’t know how to do it, now’s your chance to learn. But first…..

Why Would I Want to Install WordPress on my Computer?

different local WordPress installation foldersInstalling WordPress locally gives you a fantastictest environment. You can install as many WordPresses as you want on your computer. On mine I’ve got:

  • Single-site
  • Multisite
  • Beta
  • Plugins
  • WordPress

This gives me all sorts of scope for testing stuff out, playing around – a WordPress playground right on my computer.

Let’s get started:

1. Download Xampp

Xampp is an Apache distribution containing MySQL, PHP and Perl. This makes it awesome for WordPress.You can download it from here. 

There are a number of different distributions so make sure you select the distribution that’s correct for your operating system. For the purposes of this tutorial we want the Windows distribution.

Click on the distribution.

Click on the windows distributionClick on the installer.

click on the installer and select save

2. Install Xampp

Double click on the installer and choose your language.

Featured Plugin – Easily integrate your WordPress site with Facebook

Would you like to add Facebook comments, registration, ‘Like’ buttons and autoposting to your WP site? Well, The Ultimate Facebook plugin has got that all covered!

FIND OUT MORE

choose your installation language

Decide where you want to install xampp.

choose the location for your installation

Click install.

click install

Sit back, relax, wait for it to install.

it might take a few minutes!

3. Fire up Xampp

Start Xampp. Start Apache and MySQL.

Click on the "Start" buttons beside Apache and MySQL

You may get a warning from Windows. You want to make sure that Windows allows access.

prevent windows firewall from blocking access

You can check to see if your new local server is installed by visiting http://localhost

xampp splash screen

Nice!

4. Set up MySQL Database

On your Xampp control panel click the admin button beside MySQL.

Featured Plugin – Start your own Quora / StackOverflow / Yahoo Q&A site

It’s now incredibly easy to start your own Q&A site using nothing more than WordPress – The Q&A plugin simply and brilliantly transforms any site, or page, into a perfect support or Q&A environment.

FIND OUT MORE

click the MySQL admin button on xampp

In your browser you’ll be taken to the MySQL dashboard. You need to fill in the details for your new database:

Insert the name of your database and choose utf_unicode_8 for collation

  • Set your MySQL connection collation: to utf8_unicode_ci
  • Choose the name for your database. I’m naming this one singlesite – you can call it whatever you want.

Note: if you are doing a live installation on a server you must add a username and password. Do not use “root” ever on a live site. This isn’t necessary on a local installation.

5. Download and unzip WordPress

Download WordPress.

You need to unzip it to the correct folder on your computer. Find the Xampp folder and navigate to xampp>htdocs

location at c > xampp > htdocs

Unzip WordPress there and rename the WordPress folder to whatever name you want. I usually match mine to my database name.

6. Configure WordPress

Open up wp-config-sample.php and find the MySQL settings.

find wp-config-sample in the wordpress folderHere is what you need to update the settings to:

/** The name of the database for WordPress */

define(‘DB_NAME’, ‘singlesite’);

/** MySQL database username */

define(‘DB_USER’, ‘root’);

/** MySQL database password */

define(‘DB_PASSWORD’, ”);

/** MySQL hostname */

define(‘DB_HOST’, ‘localhost’);

Remember to replace singlesite with whatever you called your database.

Save the file in your root WordPress folder as wp-config.php

save your file as wp-config.php

7. Install WordPress

Open up your browser and navigate to http://localhost/singlesite/

Featured Plugin – Open an Online Store with MarketPress

Out of all the WordPress ecommerce plugins available, this has got to be the winner – easy to configure, powerful functionality, multiple gateways and more. A simply brilliant plugin!

FIND OUT MORE

The familiar WordPress installation screen will appear.

wordpress five minute install screen

Fill in your details and click “Install WordPress.”

There you go – WordPress is installed locally on your computer.

WordPress installed to localhost

Have fun!

Related posts:

  1. Introducing Instant WordPress: A Free Portable Development Environment Instant WordPress is an entirely self contained, portable development environment. Find out how quick it is to get up and…
  2. How to Install WordPress in Under 90 Seconds You thought the famous 5-minute install for WordPress was zippy fast. Now there’s an even faster way to get a…
  3. WordPress, meet iPad: How to Install WordPress from Your iPad WordPress and iPad are two pretty significant things in my life right now. Recently I bought my very first iPad…
  4. WordPress runs well on Windows. Full Stop. Period. WordPress runs well on Windows. Full Stop. Period. Those are the words uttered by Microsoft’s Andy Robb at WordCamp UK…
  5. Integrating bbPress as a Site Wide forum for your WPMU site Taken from: The WordPress MU Manual bbPress is forum software created by WordPress.org that easily integrates with your WMPU site….

Author: Siobhan McKeown

Siobhan McKeown is a big fan of words, and of WordPress, which works out pretty well since she runs Words for WP, the only copywriting service dedicated to WordPress service providers. You can find her on her personal blog,twitter and occasionally hanging out on G+.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s