The thought of running a second or even a third instance of WordPress to compliment your current website might seem complicated and confusing. However, there are times when making a small portion of your site perform in a certain way might alter it too much for your liking.
That’s where subdomains come in. Simply put, subdomains are nested hierarchically inside your site’s primary domain. When you choose to install WordPress in a subdomain, you create the opportunity to build a separate and unique website that can still be tied to your main site in a meaningful way.
In this article, we’ll go over how to install WordPress on a subdomain. Please follow the steps carefully as this is simple and should not take more than 10 mins.
What Is Subdomain
A subdomain is the portion of a URL that comes before the “main” domain name and the domain extension. For example, docs.benjaminolaw.com, another example is client.harmonweb.com (The Harmonweb.com billing system was installed on a subdomain). Subdomains can help you divide your website into logical parts or create separate sites, for example, a separate blog for each sports team.
How To Create A Subdomain
Depending on which web host you use, creating a subdomain can be quite easy. Since subdomains use the existing domain name you’ve already registered, they are usually free to create.
If you are using Harmonweb.com, you can easily log in to your cPanel and under the Domains bar, you will see subdomains, click on it and it will direct you to the page where you will create your subdomain.
Now You will have to input your sub directory in the subdomain box when filling the details, for instance I want to create a docs subdomain for benjaminolaw.com, I will just input docs in the subdomain box and select benjaminolaw.com as the domain I am installing for if there are multiple domains in my cPanel.
Once you have done that, the document root will generate automatically, you can now click on Create.
You will receive a success message once it its created, then you can go back to your cPanel homepage to start installing WordPress.
Install WordPress using Softaculous
After you create the subdomain, you’re ready to install WordPress. To do this, follow these steps:
Under the software bar, click on Softaculus App Installer
Now ypu have select WordPress as the software you want to install in your softaculus.
Now click the Insttall Now Button
You will be directed to the page where you are to fill your WordPress information, while filling the information, you will need to Choose the installation URL, by default the URL will be your primary domain, to change this, click on the domain (there is a drop-down at the front which means you can change the domain by clicking on it) and select the subdomain that you just created.
NOTE: leave the In Directory box empty.
Under this section, first you need to provide a title and description for your WordPress site. Don’t worry you can easily change them from your WordPress admin area after installation.
Next, you need to choose an admin username, password, and email address. Softaculous will automatically fill in the username and password fields for you. It will use a non-dictionary word for username and a strong password.
You can change them if you want so that they are easy to remember for you. However, we strongly urge you to always use a strong password.
Make sure that you enter correct email address in the admin email field. This is where WordPress will send notifications and password reset link if you ever forgot your password.
Rest of the options on the screen are optional. You can now click on the install button to run the installer.
Softaculous will run the installer using the settings you provided. You will see a progress bar with installation status. It will take a couple of minutes. Do not close the window until the progress bar reaches 100% otherwise, this may affect your WordPress installation.
You will see a success message after the installation is finished. It will also show you links to your website and to your WordPress admin area.
That is all, is it as easy as that.