This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Sandbox

Description

Have you ever stared at the upgrade button of your favorite plugin with a deep foreboding feeling of what lies ahead? Will this bring your live site to its knees? Or have you wanted to test your new exciting theme without prematurely showing it to the world?

Enter the Sandbox plugin. With two simple clicks an entire testing site is created using your existing hosting provider. No more copying down to a complex local test setup or living dangerously on a live site. A complete independent sandbox, unavailable to the general public and search engines, can be created quickly and simply. You can even create multiple sandboxes to test different iterations of your site.

There is not that much more to say, it’s that easy!

What can I test with this?

Pretty much anything, but here are some examples:

  • Plugin upgrades
  • Theme changes
  • Setting changes
  • Even full, WordPress upgrades
  • Plugin conflicts? Create a sandbox and disable one at a time.

Ok, but how does it work?

When you add a new sandbox, a couple simple parameters are required to differentiate it from other sandboxes. A status is displayed as the sandbox is being created. This can take some time depending on the size of your WordPress install.

Basic steps to creating the sandbox:

  1. Copy the tables
    Database tables are copied to new tables with a different prefix and various data within the tables is updated to reflect the sandbox prefix.
  2. Copy the files
    All files are copied to a new folder under the sandbox folder.
  3. Update the configuration
    The configuration file within the sandbox is updated to support the unique sandbox database prefix.

Once activated, only your browser can get to the sandbox installation. You can return the live site at anytime by clicking the link in the notice at the top of the admin interface.

Can I use my existing developer tools to edit the sandbox?

Sure. Tools such as Dreamweaver can update the files located in the sandbox directory. A full path is available on the edit screen of the sandbox. Database files can be modified as well. All sandbox tables will have the prefix displayed on the edit screen of the sandbox.

Another beer and coffee fueled creation of Think Bowl

Installation

Installation from zip:

  1. From wp-admin interface, select Plugins -> Add New
  2. Click Upload
  3. Click “Choose File” and select zip
  4. Click “Install Now”
  5. Activate the plugin through the ‘Plugins’ menu in WordPress

Installation from WordPress Plugin Directory

  1. From wp-admin interface, go to Plugins -> Add New
  2. Search for “Sandbox”
  3. Click Install Now under the plugin name
  4. Click Ok to install the plugin
  5. Click Activate Plugin once installed

FAQ

Installation Instructions

Installation from zip:

  1. From wp-admin interface, select Plugins -> Add New
  2. Click Upload
  3. Click “Choose File” and select zip
  4. Click “Install Now”
  5. Activate the plugin through the ‘Plugins’ menu in WordPress

Installation from WordPress Plugin Directory

  1. From wp-admin interface, go to Plugins -> Add New
  2. Search for “Sandbox”
  3. Click Install Now under the plugin name
  4. Click Ok to install the plugin
  5. Click Activate Plugin once installed
Will sandbox files and tables be removed on deactivation/uninstall?

No. To err on the side of caution, sandboxes are left intact when the plugin is deactivate and/or uninstalled. If you no longer need your sandboxes, delete them before removing the plugin.

How do I disable the sandbox and return to the live site?

Login to the admin interface, there should be a banner at the top which says “Currently in sandbox. To deactivate sandbox, click here.”

If you cannot get into the admin interface, there is a cookie in the browser called “sandbox”. Delete this and you will be returned to the live site. This cookie is used to tell the plugin if you want to use a sandbox and which one. So for example if you activate the sandbox in one browser, you can start up a different browser and view the live site.

How do I use the export capability?

The export capability provides a way to download a sandbox and install it somewhere. To download an export, go to Sandbox option on the sidebar of the Admin interface. Place your mouse over the row of the sandbox you would like to export and the select the export option. Once prompted, click the download link. Depending on the size of the sandbox and speed of your web server, it may take some time for the link to appear.

The download file is a zip of all the files for the sandbox. Within the zip there is a SQL dump (dump.sql) of all the database tables related to the sandbox. The files need to be copied into the desired directory of the new server and the SQL file needs to be imported into the database.

Why are my backups are now huge?

Backup plugins will backup not only your existing site but also the directory containing your sandboxes. Most backup plugins will have an exclusion setting which you can add the ./sandbox directory to.

This plug-in helped me a lot. How can I ever repay you?

A small Paypal donation at Think Bowl.

Reviews

ເດືອນກັນຍາ 3, 2016
When I activate the Testing Environment, my page layout came to a complete mess, lots of things going on, and it does not shows a thing that it’s just the test env. After a while, I’ve had to come to my hosting account, trough the file manager to discover how to force leave this sh*ty test thing. To leave it, clear the cache on your browser that has the informations of your website, then you will be able to login again and uninstall this plugin for good.
ເດືອນກັນຍາ 3, 2016
When I installed it and activated the plugin it said it was successful. Then I was unable to access the admin area after I logged in. I didnt have permission. Now I am stuck…
Read all 11 reviews

Contributors & Developers

“Sandbox” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Sandbox” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

0.1

  • First release with simple functionality.

0.2

  • Fixed two PHP warnings
  • Added capability to handled wordpress sites that are not in the root directory

0.3

  • Minor bug fix that could cause sandbox_edit() error on some servers

0.4

  • Add capability to export sandbox for installation elsewhere.