How To Setup A WordPress Multisite on Cloudways without ERRORS!

Table of Contents

So you want to setup a WordPress Multisite? Well, the good news is I just did that very thing, had a few problems along the way and am going to make your life easier!

What is WordPress Multisite?

A WordPress Multisite is like a tree of websites branching out. You have the trunk which is the main site, then the branches that stem from the main site are smaller sites. Read more here.

1. Getting Started

Login to your Cloudways account and add a new application.

https://a.cl.ly/4gujOqNX

Select your server and then WordPress Multisite option and let that run for a few minutes

2. Setup Your Domain

Either you multisite will have a root domain or a subdomain, whatever you want to do. In my case, I want my multisite to be a sub-domain of my main website.

Go to your DNS Management tool, in this case we’re using CloudFlare

Add an ‘A Record’, enter your desired subdomain then the destination of the server for your website.

Image 2020-06-21 at 9.03.08 AM

Then go back to Cloudways when your WordPress multisite has installed and find the Domain Management section.

Image 2020-06-21 at 9.05.25 AM

3. Setup Multisite in WordPress

Now you can log in to your new Multisite, you’ll notice at the moment, it looks like any regular installation of WordPress, and that’s because it is. We just need to edit two files in order to access WordPress’ Multisite capabilities.

Deactivate all plugins on the new site, they may cause conflictions so better just get them out of the way.

Image 2020-06-21 at 9.11.12 AM

Then go to Tools > Network Setup

Here we need to choose how we want our multisite to display and function. There are differences for both and benefits, do some research if you’re unsure. For me, I don’t want my subdomain changing, I want that static, so I’m selecting the ‘Sub-directories’ option.

Image 2020-06-21 at 9.12.49 AM

Then hit install down the bottom

4. Editing Files via SFTP & VS Code

Now we need to copy & paste some code into two separate files via the Secure File Transfer Protocol. If you’re familiar with this process then great! You may already be using FileZilla or another program. If you’re not, let me walk you through it using Visual Studio Code, it’s easy and makes changing code a breeze!

Download Visual Studio Code & install it on your machine

Then go to Extensions > Search Bar > FTP-Simple & install this extension

Image 2020-06-21 at 9.20.52 AM

Then press F1 > and type ‘ftp-simple: Config – FTP connection setting’

Image 2020-06-21 at 9.26.08 AM

Use the follow code to assist you with inputting your SFTP credentials

	{
		"name": "Name Server Here",
		"host": "Server IP Address Here",
		"port": 22,
		"type": "sftp",
		"username": "Username Goes Here",
		"password": "Password Goes Here",
		"path": "/",
		"autosave": true,
		"confirm": false
	}

Now if you have those details already, great! Put them in. If not, lets go back to Cloudways and grab them.

Go to Server > Select Server > Master Credentials

Image 2020-06-21 at 9.29.25 AM

Cloudways makes it super easy to just click and copy, so use each detail here and put them back into Visual Studio Code to now enable STFP to your server.

Once you’ve done that, close the config file and we’re going to connect! Press F1 > and type ‘ftp-simple: Remote directory open to workspace’

Now you can select your server and destination. Select Server > Applications > Name Of Your App > public_html > Current Directory

Now we want to select and make backups of our two files. The .htaccess file & wp-config.php file. SImply select, right click, copy and then CTRL + V to paste it.

Make sure you open your terminal by going to the top bar > Terminal > New Terminal & in the Output tab, change the dropdown to ftp-simple.

Now copy over your code from your WordPress site to your wp-config.php file

Then copy your .htaccess code in between the <IfModule> tags.

Image 2020-06-21 at 9.41.01 AM

After that, go back to WordPress resresh page and log back in. It all SHOULD be fine, but it wasn’t for me.

5. Permissions Errors via SFTP

Now if it’s all working for you, great! But this is where I had problems, took me a bit to figure out, but there terminal in Visual Studio Code is a lifesaver!

I was receiving permission denied errors, so I didn’t have the correct access to upload back to my server. So if you have this issue, let’s fix it!

First, you need your Public Ip Address. So go to What’s My Ip and copy it from there.

Then we’re going to add it to the server whitelist so you have permission

Lastly, you want to reset your file permission to make sure it’s working. If you have any troubles, see the Cloudways Support article here.

Go to Your Application > Application Settings > Reset File / Folder Permissions and hit the refresh icon

If you need any help with this, see Cloudways Support

6. Finishing Up

Now you can upload files at will, edit code or whatever on your new WordPress multisite, congrats! If you need any more assistance, see Cloudways Support article on WordPress multisites.

If you found this article helpful please consider supporting me by purchasing via my affiliate link here.

About The Author
Ashley Ball

Ashley Ball

ICT Teacher | Business Owner | Web Designer | Self-Learner for all things tech-related. I'm committed to my professional development as an educator. I love writing, creating content and teaching self-learners.
Share on facebook
Share on Facebook
Share on twitter
Share on Twitter
Share on linkedin
LinkedIn
Share on pinterest
Share on pinterest
Leave A Comment
More Content

Getting Started Guide

Want to work together? Download my guide to find out the process.

Getting Started Guide

Want to work together? Download my guide to find out the process.

This site uses cookies and other tracking technologies to assist with navigation, monitor site usage and web traffic, assist with our promotional and marketing efforts, and customize and improve our services, as set out in our privacy policy

💌 Letters For Friends

Weekly letters for my friends about freelance entrepreneurship and to stay connected.