Setting up Additional Local WordPress Sites for Testing and Development

Jan 14, 2013 by

This entry was written by , one of the OxonDigital members. The author's views below are entirely their own and may not reflect the views of OxonDigital.
Setting up Additional Local WordPress Sites for Testing and Development

Setting up Additional Local WordPress Sites for Testing and Development

As a follow on from my previous posts Setting up a local WordPress Development Environment and Moving a WordPress site from local to live – the next thing I wanted to do was start experimenting with additional WordPress sites and editing themes. I want to be able to experiment locally for speed of access, and knew that I would need one or more WordPress sites installed locally under my MAMP setup.

This proved to be quite a straightforward process, and I thought for the record I would share it here for those of you about to head down the same path.

Step 1 – Download and Extract WordPress

Download and install the latest version of WordPress from here. Unzip your file and and place the extracted file in your local host folder.

MAMP / htdocs / yoursitename

This may vary depending on your local server setup and preferred location for sites.

Step 2 – Create a database

Go to your local PHPMyadmin panel (in my case via MAMP Pro Application then WebStart button). Create a new database for your website by filling in the text field, and clicking create. A new database will be created which is currently has no tables in it (these will be added when we run the install script later).

Note: If you wish to edit your username and password in PHPMyAdmin details are here.

Step 3 – Edit your config PHP file

Find you wp-config-sample.php in the top level of your WordPress site folder, and make a copy called wp-config.php. Edit the details in this file with a text editor to match your database user name and password.

DB_NAME – The name of the database you created for WordPress in Step 2
DB_USER – root (or the username you created for WordPress in Step 2)
DB_PASSWORD – root (or the password you chose for the WordPress username in Step 2.)
DB_HOST- Your hostname (usually localhost:8888)

Save the file.

Step 4 – Run the WordPress install script

Point your browser to you local host.

eg. http://localhost:8888/yoursite/wp-admin/install.php

Complete the on screen prompts.

All done, you now have another WordPress install running on your local server.

When you visit:

http://localhost:8888/yoursite – your new site will be up and running.

When you visit:

http://localhost:8888/yoursite/wp-admin – you will have access to the WordPress dashboard.

If you revisit your database now in phpMyAdmin you will see that it is populated by the WordPress database tables.

A simple process but satisfying to know that its possible to experiment and test content to many different sites locally.

Does anyone else have any tips for setting up multiple sites, either locally or live ?

Define Media - Creative web and graphic design services. Follow Maria on Google Plus.

Leave a Reply

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

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.