Differences between revisions 1 and 2
| Deletions are marked like this. | Additions are marked like this. |
| Line 13: | Line 13: |
| CategoryLinux | CategoryWordpress |
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
