How to Create a Subdomain in cPanel (Step-by-Step Guide for Beginners)

Creating a subdomain in cPanel is a quick and useful way to organize different sections of your website — such as blog pages, support portals, or online stores — under the same domain.

In this step-by-step tutorial, we’ll walk you through how to create a subdomain in cPanel, and explain its benefits, real-world use cases, and how to access it once created.

What is a Subdomain?

A subdomain is a part of your main domain but works like a separate website. It appears before your primary domain name.

For example:

  • blog.example.com

  • store.example.com

  • support.example.com

Each of these can be hosted in a separate folder and can run independently — even using different CMS or web apps.

Why Use Subdomains?

Here are a few practical reasons to use subdomains:

✅ Organize Content: You can run a blog, eCommerce store, or help center on separate subdomains.
✅ Better Management: Keep projects isolated from your main website.
✅ Multiple Applications: Run WordPress on the main domain, Laravel on the subdomain.
✅ SEO Advantages: In some cases, it helps target different keywords or regional content.

If you’re also setting up professional email addresses for your domain, check out our guide on how to create email accounts in cPanel.

How to Create a Subdomain in cPanel – Step-by-Step

Let’s dive into the actual steps to create a subdomain.

Step 1: Log In to Your cPanel

You’ll need to access your hosting account’s cPanel.

Usually, it can be accessed by going to:

yourdomain.com/cpanel

Use the credentials provided by your hosting provider.

Step 2: Find the “Subdomains” Option

Once logged into cPanel:

  1. Scroll down to the Domains section.

  2. Click on “Subdomains”.

Step 3: Enter Subdomain Details

You’ll now see a form to create your subdomain.

  • Subdomain: Enter the prefix you want, like blog, shop, help etc.

  • Domain: If you have multiple domains, select the one you want to use.

  • Document Root: This is the folder where files for this subdomain will be stored. cPanel automatically suggests a folder like:

public_html/blog

You can change it, but the default is usually fine.

Step 4: Click “Create”

After filling the details, simply click the “Create” button.

You should see a success message like:

Subdomain blog.example.com has been created.

How to Access Your Subdomain

After creation, your subdomain is immediately accessible in the browser:
https://blog.example.com

If the folder is empty, you might see a default “Index of /” or “404 not found” page.

You can upload files directly into the subdomain folder through:

  • File Manager (from cPanel)

  • FTP/SFTP client like FileZilla

  • Website Builder or CMS Installer

How to Delete a Subdomain (If Needed)

To remove a subdomain:

  1. Go back to the Subdomains section in cPanel.

  2. Scroll down to the Modify a Subdomain section.

  3. Click “Remove” next to the subdomain you want to delete.

Note: Deleting a subdomain doesn’t delete its files/folder. You can manually remove them from File Manager if needed.

Common Subdomain Troubleshooting Tips

  • DNS Propagation: If you just pointed your domain to a new host, subdomain might take some time (up to 24 hours) to become active.

  • SSL Error: You may need to issue an SSL certificate for your subdomain using AutoSSL or Let’s Encrypt in cPanel.

  • 404 Error: Make sure there’s an index file or CMS installed in the subdomain’s root directory.

Real-Life Subdomain Ideas for Your Website

Subdomain Purpose
blog.example.com Blog or news section
shop.example.com Online store
help.example.com Support/help center
members.example.com Membership or login area
test.example.com Development or testing site

If you’re new to hosting management in general, our guide on WHM vs cPanel explains the bigger picture of how server administration works alongside cPanel.

Final Thoughts

Creating a subdomain in cPanel is not only easy but a powerful way to organize your website’s content, test new features, or expand your services without buying a new domain.

With just a few clicks, you can create blog.yourdomain.com or store.yourdomain.com and give your audience a more structured experience.

🔚 Stay Connected with Tutorials Ocean

Thank you for exploring our tutorials and tech insights at TutorialsOcean.com.pk your trusted source for learning programmingAIweb development, and IT solutions. Whether you’re a beginner or a pro, we’re here to help you grow your skills and stay ahead in the world of technology.

💬 Got feedback or a topic request? We’d love to hear from you!

🔗 Follow us on Social Media for Updates, Tips & More:

📧 For inquiries, collaborations, or guest posting: info@tutorialsocean.com.pk

👉 Keep learning. Keep building. Keep growing.
— Team Tutorials Ocean 🌊

About Author

Arshad Sultan

Arshad Sultan is the Founder of Tutorials Ocean and a Technical Architect & Full-Stack Developer with 15+ years of experience in PHP, Laravel, CRM development, API integrations, and AI-powered automation. He also runs Rapid Code, a software and AI automation agency, and has trained hundreds of students across Karachi's IT institutes since 2010.

Leave a Reply

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