How to Create a Subdomain for RunCloud Web Application

Subdomain is an easy and free way to categorize your website content and separate them from the main website. In this tutorial, you will learn what is a subdomain, the use cases, and how to host a web application at subdomain using RunCloud.

What is a Subdomain?

A subdomain is a domain that is a part of a root domain, separated by a dot (“.”). For example, is a subdomain of the root domain .
Subdomain is used as an easy way to create a memorable website address to organize your website content. For example, for the photo galleries of your website.
Uses of subdomain includes:

  • Organizing website content according to category, i.e:,,
  • Serve sub website for other users, i.e:,,
  • Make long link easy to remember. For example, shorten the long link to a subdomain
  • Create a copy of your main website for testing. You can clone your main website into subdomain for testing and development, i.e:
  • Mobile website:
  • Location specified website:

Create a subdomain for RunCloud Web Application

It is easy to use a subdomain for your web application using RunCloud panel.
Firstly, you will create a web application as usual but at the “Domain Name” field, you enter the subdomain instead of the root domain. Choose the PHP version and server stack, then click “Add Web Application” button to create the web application at subdomain.
Now you need to add a DNS record for the subdomain to your domain name’s DNS zone.
In this article, I use CloudFlare DNS for example. If you are not sure how to do it, please refer to your DNS hosting provider (usually also your domain registrar) for support.
Here are the steps to add a subdomain DNS record for your RunCloud web application:

  1. Get your server IP address. You can view and copy the server IP address at the RunCloud servers overview or server summary page. Simply click on the IP address (numeric string) below server name to copy it. Write down the IP address because we will need it later.
  2. Login your DNS hosting control panel to add a new DNS record into your domain name’s DNS zone.
  3. Add a new “A” type DNS record, with the subdomain name and point to the server IP address. For example, sub is the subdomain and is the server IP address (refer screenshot below)

Now you can visit and RunCloud will serve your web application at the subdomain as usual.

Categories: Server Management, Tutorials

Simplifying Server Management

RunCloud is a cloud server management tool that allows you to maintain full control of your server and host multiple WordPress, WooCommerce, Laravel, and PHP applications with fast and easy configuration.

Start Your Free Trial

5 days free trial no credit card required cancel anytime

7 thoughts on “How to Create a Subdomain for RunCloud Web Application

  1. If i add sub domain through web application and install the Wordpress, do i need to add Database Name and Database User?

  2. how i Connect the domain to web Application
    i did the same steps in the article but when access the site message display “This site can’t be reached”

  3. I installed WordPress site using my domain. I want to install another WordPress site on my subdomain. Can I use the same database or need to create others? If can, is it recommended? Thanks.

    1. It is always recommended to create different database for different WordPress installation.

      It is possible, but it is NOT RECOMMENDED to have same database for multiple WordPress installations, using different database prefix for each WordPress installation.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.