Create a completely independent test site using existing hosting that is only available to administrators.
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:
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:
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 from zip:
Installation from WordPress Plugin Directory
Installation from zip:
Installation from WordPress Plugin Directory
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.
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.
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.
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.
A small Paypal donation at Think Bowl.