---
title: Plugin - Sandbox Creation (Part 1) - MultiSite Wordpress
date: 2025-02-14T10:44:29Z
modified: 2025-02-14T10:44:33Z
permalink: "https://techarticles.co.uk/plugin-sandbox-creation-part-1-multisite-wordpress/"
type: post
status: publish
excerpt: ""
wpid: 4505
categories:
  - Automation
  - Cloudflare
  - Coding
  - GridPane
  - Hosting
  - Plugins
  - Wordpress
timestamp: 2025-02-14T10:44:33Z
tags:
  - Automation
  - Cloudflare
  - Coding
  - GridPane
  - Hosting
  - Plugins
  - Wordpress
---

**This will be a multi-part series of blog posts and videos covering the creation of a multisite, the setting up of the code base for creation and deletion and then the automation of the process of creation, deletion and notifications.**

I already have some integrations for creating sandboxes; in fact, I have a perfectly working sandbox generator on Reallyusefulplugins using [InstaWP](https://ta0.uk/InstaWP), but my account isn’t large enough for potentially dozens of users testing dozens of plugins at the same time as my offerings expand I need a more robust solution.

I had plans to use [GridPane](https://ta0.uk/gridpane) and its API for generating cloned sites, but it’s just not possible given the current state of their API it’s just not up to the job, which is a pity as this would have been my goto solution for this and after checking the other cloud panels I have access too (Server Avatar, BunnyShell, Flashpanel, cloudstick and Xcloud none seemed to fit the bill either having poor cloning or poor APIs

So I was back at the drawing board, and then I remembered that how this used to be done was multisite, I also remembered Gridpane has some multisite capabilities. I am a developer account user, so I don’t have access to Multitenancy and other than this single project, I do not need this, It’s not business-critical if a server goes down a single backup could be made and recreate what I am creating, here, so I went and did some reading of the knowledge base.

**So first, I needed to establish my goals, and they were as follows:**

- Multi-site WordPress Installation
- Dedicated VPS
- Subdomain Multi-site \[one subdomain per plugin with a second level per site\]
- Automatic SSL and DNS for that installation (Wildcard)
- No email notifications to me on the creation
- Being able to remotely create and delete sites (API)
- Discord Notification on creation
- Additional security precautions around uploading and editing
- 

So given what I already thought I knew and finding this [article ](https://gridpane.com/kb/how-to-enable-wordpress-multisite-on-gridpane/)confirmed that what I thought GridPane could do about multisite was indeed true, so I set about doing some testing, and with the settings below, I had a fully working subdomain-based multisite

**Gridpane Site Settings**

![GridPane site settings panel with options for AutoSSL, Single Sign On, and Clickjacking Protection.](https://techarticles.co.uk/wp-content/uploads/2025/02/multisite-gridpane-site-settings.png)

**Gridpane Multisite Settings**

![Multisite settings page with sub-directory, subdomain options, and WP Ultimo integration toggles set to off.](https://techarticles.co.uk/wp-content/uploads/2025/02/multisite-gridpane-site-settings-multi-site-options.png)

**Selected and Activating Subdomain Multisite**

![Multisite settings page showing options for Sub-directory, Subdomain Multisite, and WP Ultimo Integration. Subdomain is enabled.](https://techarticles.co.uk/wp-content/uploads/2025/02/multisite-gridpane-site-settings-multi-site-options-subdomain.png)

Next, we needed to work on wildcard DNS and SSL, so we were off to the domains tab in Gridpane

![GridPane settings with SSL enabled, wildcard disabled, and routing set to none.](https://techarticles.co.uk/wp-content/uploads/2025/02/gridpane-multisite-wildcard-disabled.png)

We need to enable wildcard DNS for our domain/subdomain

![GridPane settings showing enabled API integration, SSL, and wildcard options.](https://techarticles.co.uk/wp-content/uploads/2025/02/gridpane-multisite-wildcard-enabled.png)

Now that’s all setup once it has finished processing the DNS, we should get a wildcard entry added to Cloudflare, and now Gridpane will take care of the DNS and the SSL for us, and we now have our base multisite

So, in this case, hooksure.wpdemo.uk and subdomains would be subdomain.hooksure.wpdemo._uk_.

We now have our WordPress installation setup and working. In the next article, we will handle setting up plugins, how we can remotely create the subdomains and how we stop the pesky emails on creation, as we will be using Discord.