wordpress: installing wordpress locally on your pc

as i write the title of this tutorial, i can tell it might get long and/or complicated… i’ll try my best… here we go

FIRST, you’ll need the tools — download virtual pc (especially if you run windows vista) and then grab an image here — i would suggest getting the IE6 image, since that version of IE is the “worst” of them all

great — now you can run virtual pc (check out my settings below, i give it 1GB of memory)

my settings for an IE6 image

now you can download your favorite text editor, firefox and all the necessary plugins (like firebug)… and then download xampp (xampp is like setting up IIS on your machine so you can view server-based code locally (like asp and .net — wordpress is php)

after installing xampp, run it and it’ll look like this:

xampp up and running
xampp up and running

you can make sure you set it up correctly by going to http://localhost/xampp/ — it’ll look like below:

w00t... it's set up!
w00t... it's set up!

noooowwww… grab a copy of wordpress and unzip it to C:\xampp\htdocs — if you intend on having multiple projects, unzip the files into a unique folder, like so

magi, skimonkey, wordpress, and snuggib are four different projects
magi, skimonkey, wordpress, and snuggib are four different projects

from here, it’s just like setting up wordpress (without having to ftp the files, of course), but with some minor changes

database setup

go to http://localhost/xampp/ and click the phpMyAdmin link in the left column

set up the database
set up the database

in the “create new database” field, type in the name of the database and click the “create” button

name your database
name your database

update wp-config.php file

jump over to C:\xampp\htdocs\folder_name and rename the wp-config-sample.php file to wp-config.php. update the code block below:

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'putyourdbnamehere');

/** MySQL database username */
define('DB_USER', 'usernamehere');

/** MySQL database password */
define('DB_PASSWORD', 'yourpasswordhere');

1 – define(‘DB_NAME’, ‘putyourdbnamehere’); – rename ‘putyourdbnamehere’ with whatever your database name is

2 – define(‘DB_USER’, ‘usernamehere’); – rename ‘usernamehere’ with ‘root’

3 – define(‘DB_PASSWORD’, ‘yourpasswordhere’); – replace ‘yourpasswordhere’ with ” (2 single quotes)

install wordpress

save the file and then head over to http://localhost/folder_name/wp-admin/install.php, where you’ll be greeted with the wordpress setup screen

after typing in your blog name and email address, MAKE NOTE of the username and password it provides for you — otherwise, you’ll have to reset that information in the database (ooh another tutorial idea)

ta-da! that should do it, you’ll be able to get into the admin through http://localhost/folder_name/wp-admin/ and view the site through http://localhost/folder_name/

questions or comments?

Leave a Reply