Title: Setting up a development / testing environment
Last modified: August 19, 2016

---

# Setting up a development / testing environment

 *  [Brian](https://wordpress.org/support/users/summae/)
 * (@summae)
 * [18 years ago](https://wordpress.org/support/topic/setting-up-a-development-testing-environment/)
 * I’m trying to set up a local development site to test changes to the live remote
   site using the same database. I’ve found an interesting article in the codex 
   [Running_a_Development_Copy_of_WordPress](http://codex.wordpress.org/Running_a_Development_Copy_of_WordPress)
   with instructions on how to use it for 2.5. However this involves inserting the
   hack in wp-includes/options.php which in my clean 2.5.1 build, does not seem 
   to exist as of yet.
    Does anyone know of how to currently use this hack or some
   other way of running a local testing site off of the same DB as the live site?

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [18 years ago](https://wordpress.org/support/topic/setting-up-a-development-testing-environment/#post-764748)
 * Why not install WordPress locally, then just make a backup of your ‘live’ database
   and restore it to your test site?
 * See:
    [Install WordPress Locally](http://codex.wordpress.org/Installing_WordPress#Installing_WordPress_Locally)
 *  Thread Starter [Brian](https://wordpress.org/support/users/summae/)
 * (@summae)
 * [18 years ago](https://wordpress.org/support/topic/setting-up-a-development-testing-environment/#post-764957)
 * Ok, I’m still a novice, but I did attempt this, actually before I posted. I installed
   Apache, PHP, MySQL and phpMyAdmin, and then installed a clean version of wordpress
   2.5.1. I then backed up my live db, and imported it into my local DB. Now, I’m
   thinking because of links recorded in the DB, when I try to bring up my local
   site, running as a virtualhost, “[http://test-awwa/&#8221](http://test-awwa/&#8221);
   I am being redirected to the remote site in my browser, “[http://aw&#8230](http://aw&#8230);.
   org”, and I’m clueless as to what to do about this. As far as know, Apache is
   working fine, as well as the rest, because I viewed test pages in my virtualhosts
   before I installed wordpress, and I used phpMyAdmin to create the DB for wordpress;
   wordpress seemed to be running fine before I updated the DB.
 *  Thread Starter [Brian](https://wordpress.org/support/users/summae/)
 * (@summae)
 * [18 years ago](https://wordpress.org/support/topic/setting-up-a-development-testing-environment/#post-765000)
 * Well I guess for now I’m just going to run an unrelated sandbox locally, but 
   I really would like to know either:
    -  How to implement the codex article listed above, “Running a Development Copy
      of WordPress”, in 2.5.1
       How to mirror the DB locally and still be able to
      get to my local test site.
 * Just haven’t gotten a response yet regarding either of these possibilites.
    Thanks
   for your time in advance.
 *  [benkepes](https://wordpress.org/support/users/benkepes/)
 * (@benkepes)
 * [18 years ago](https://wordpress.org/support/topic/setting-up-a-development-testing-environment/#post-765007)
 * 2.5.1 doesn’t seem to have wpincludes/options so it seems the hack is broken 
   for 2.5.1
 * any other ideas???????????
 *  Thread Starter [Brian](https://wordpress.org/support/users/summae/)
 * (@summae)
 * [18 years ago](https://wordpress.org/support/topic/setting-up-a-development-testing-environment/#post-765012)
 * None at all, that’s why I’m asking 🙂 .
 *  [benkepes](https://wordpress.org/support/users/benkepes/)
 * (@benkepes)
 * [18 years ago](https://wordpress.org/support/topic/setting-up-a-development-testing-environment/#post-765015)
 * ok – sorted – go to wp_options in phpmyadmin/wordpress change site url and home
   to [http://localhost/wordpress](http://localhost/wordpress)
 * that should work
 *  Thread Starter [Brian](https://wordpress.org/support/users/summae/)
 * (@summae)
 * [18 years ago](https://wordpress.org/support/topic/setting-up-a-development-testing-environment/#post-765021)
 * Thanks, will try it tomorrow.
 *  Thread Starter [Brian](https://wordpress.org/support/users/summae/)
 * (@summae)
 * [18 years ago](https://wordpress.org/support/topic/setting-up-a-development-testing-environment/#post-765024)
 * Hi, that seems to have worked. The one niggling problem I had was the ‘secret
   key’ inserted in wp-conf.php Before the wordpress site is created. Since I’d 
   already tried to set my local site up, I had to drop the tables in my DB and 
   reinstall wordpress using the same key, which I got from the live site’s DB on
   line 61 of wp-options, “secret”. Now I’m in the midst of moving the live site’s
   extra plugins and themes and such over, as well as doing a new restore of the
   DB, but seems to be going fine.
 *  Thread Starter [Brian](https://wordpress.org/support/users/summae/)
 * (@summae)
 * [18 years ago](https://wordpress.org/support/topic/setting-up-a-development-testing-environment/#post-765025)
 * Ok, wordpress is now up and running locally, but somehow the permalinks are not
   working. I can get to the homepage, but no local links from there, just get 404
   url not found error. Yet, wp-admin is working, and all posts and pages are listed
   under manage; I can even edit and view them through the admin panel, but again,
   the links to these pages posts are not working on the local site.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Setting up a development / testing environment’ is closed to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [development](https://wordpress.org/support/topic-tag/development/)
 * [testing](https://wordpress.org/support/topic-tag/testing/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 3 participants
 * Last reply from: [Brian](https://wordpress.org/support/users/summae/)
 * Last activity: [18 years ago](https://wordpress.org/support/topic/setting-up-a-development-testing-environment/#post-765025)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
