开发者

Wordpress: How to copy your productive environment to create a test-environment?

What are the steps, which are needed to create a copy of a productive 开发者_运维知识库wordpress environment for testing purposes, respectively to create a staging environment?


This was discussed extensively on WordPress.Stackexchange.com @Mike Schinkel is developing a migration plugin that handles the database and url issues. The download link is in the above referenced answer.


  1. Create a folder for the test-environment
  2. Password-protect this folder (e.g. with htaccess/htpasswd), so that no one (user, search-engine) accesses this test-environment by accident
  3. Copy content of the folder in which wordpress is installed into the test-folder
  4. Copy the database
  5. Change the following in the wp-config.php:
    1. Database-Connection settings
    2. change define('WP_SITEURL', 'myUrlToTestInstallation');
  6. Login into the Wordpress-Backend of the test-environment and go to
    1. Options -> General and change "Blog-Address (URL)"
    2. Options -> Media and change "Upload path"

You're finished. Now you should have a staging environment set up.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜