Set up a WordPress staging environment
- Copy the code
- Copy the database
- Update some values in the database:
UPDATE wp_options SET option_value='http://staging.example.com' WHERE option_name IN ('siteurl', 'home');
UPDATE wp_options SET option_value = 0 WHERE option_name = 'blog_public';
- Edit wp-config.php to point to the new database
