Title: PLX Multi-Environments
Author: Webmaster
Published: <strong>2016 年 8 月 5 日</strong>
Last modified: 2017 年 11 月 22 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/plx-multi-environments/assets/icon-256x256.png?rev=1468347)

# PLX Multi-Environments

 作者：[Webmaster](https://profiles.wordpress.org/mattstone-plx/)

[下载](https://downloads.wordpress.org/plugin/plx-multi-environments.1.0.1.zip)

 * [详情](https://cn.wordpress.org/plugins/plx-multi-environments/#description)
 * [评价](https://cn.wordpress.org/plugins/plx-multi-environments/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/plx-multi-environments/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/plx-multi-environments/#developers)

 [支持](https://wordpress.org/support/plugin/plx-multi-environments/)

## 描述

PLX Multi-Environments manages separate Development, Staging, and Production environments
directly from within the WordPress Admin screen.

Once the separate configuration files have been installed and your existing wp-config.
php settings have been backed up
 you\’re then free to enter each of your environments
database settings. When you push your files between servers you no longer need to
edit the configuration.

Important: Although the plugin will automatically backup your current settings to
wp-config.backup.php, we strongly recommend backing up
 your wp-config.php file 
before completing the plugin installation.

## 屏幕截图

[⌊Initial setup of the environment files⌉⌊Initial setup of the environment files⌉[

Initial setup of the environment files

[⌊Quickly and easily edit your environments⌉⌊Quickly and easily edit your environments⌉[

Quickly and easily edit your environments

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/plx-multienv` directory, or
    install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the \’Plugins\’ screen in WordPress.
 3. After successful activation go to the Settings->Environments screen or click on
    the Install button that appears at the top of the Admin screen.
 4. Follow the on-screen instructions to install the environment files.
 5. After a successful installation you can enter your Development, Staging, and Production
    credentials on each tab and then Save Changes.
 6. Copy all of the wp-config.*.php files in the root of your WordPress site to your
    other environments.

## 常见问题

  Installation Instructions

 1. Upload the plugin files to the `/wp-content/plugins/plx-multienv` directory, or
    install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the \’Plugins\’ screen in WordPress.
 3. After successful activation go to the Settings->Environments screen or click on
    the Install button that appears at the top of the Admin screen.
 4. Follow the on-screen instructions to install the environment files.
 5. After a successful installation you can enter your Development, Staging, and Production
    credentials on each tab and then Save Changes.
 6. Copy all of the wp-config.*.php files in the root of your WordPress site to your
    other environments.

  I only use a development and production environment, can I still use this plugin?

Yes, the plugin loads the relevant environment based on the current hostname so 
if you don\’t wish to use all the environments just leave those sections blank.

  How can I add custom code to my database configuration without the plugin overwriting
it?

There are several ways you can do this:
 * Add your code directly in the wp-config.
php file, this file is created during the initial installation of the environments
and can be safely edited without affecting the plugin, these settings apply globally
to all environments. * Un-install the plugin and directly edit each environment 
file (`wp-config.development.php`, `wp-config.staging.php`, `wp-config.production.
php`). Once the environment files have been created the plugin is only used to edit
the files and is not needed for the environments to function correctly. * Modify
the template files found in `/wp-content/plugins/plx-multienv/templates`, you will
also need to edit the version number in `/wp-content/plugins/plx-multienv/plx-multienv.
php` to 999.9.9, this will prevent updates to the plugin that would otherwise overwrite
your changes. Please note this method is not recommended as it disables future updates
that may fix security vulnerabilities and provide compatibility with future versions
of WordPress.

## 评价

此插件暂无评价。

## 贡献者及开发者

「PLX Multi-Environments」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Webmaster ](https://profiles.wordpress.org/mattstone-plx/)

[帮助将「PLX Multi-Environments」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/plx-multi-environments)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/plx-multi-environments/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/plx-multi-environments/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/plx-multi-environments/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/plx-multi-environments/)。

## 更新日志

#### 1.0.0

 * Initial release

#### 1.0.1

 * Tested for compatibility with WordPress 4.9
 * Fixed CSS layout issues with tabs in admin screen

## 额外信息

 *  版本 **1.0.1**
 *  最后更新：**9 年前**
 *  活跃安装数量 **30+**
 *  WordPress 版本 ** 3.5 或更高版本 **
 *  已测试的最高版本为 **4.9.29**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/plx-multi-environments/)
 * 标签
 * [dev](https://cn.wordpress.org/plugins/tags/dev/)[developer](https://cn.wordpress.org/plugins/tags/developer/)
   [environment](https://cn.wordpress.org/plugins/tags/environment/)[production](https://cn.wordpress.org/plugins/tags/production/)
   [staging](https://cn.wordpress.org/plugins/tags/staging/)
 *  [高级视图](https://cn.wordpress.org/plugins/plx-multi-environments/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/plx-multi-environments/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/plx-multi-environments/reviews/)

## 贡献者

 *   [ Webmaster ](https://profiles.wordpress.org/mattstone-plx/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/plx-multi-environments/)