How to Create a Subdomain on cPanel and Install WordPress in 2022
3 min read
1 year ago
Published on Aug 08, 2024
This response is partially generated with the help of AI. It may contain inaccuracies.
Table of Contents
Introduction
This tutorial will guide you through the process of creating a subdomain in cPanel and installing WordPress on that subdomain. Whether you're looking to set up a blog, a portfolio, or any other type of website, this step-by-step guide will help you get started quickly and efficiently.
Step 1: Access cPanel
- Log in to your cPanel account using your credentials.
- Locate the "Domains" section on the cPanel dashboard.
Step 2: Create a Subdomain
- Click on the "Subdomains" icon within the "Domains" section.
- Fill in the required fields:
- Subdomain: Enter the desired name for your subdomain (e.g., "blog").
- Domain: Select the primary domain from the dropdown menu.
- Document Root: This is usually auto-filled. It specifies the directory where your subdomain files will be stored.
- Click on the "Create" button.
- You should see a confirmation message indicating that your subdomain has been created.
Step 3: Install WordPress on the Subdomain
- Return to the cPanel dashboard.
- Locate the "Softaculous Apps Installer" or "WordPress Installer" section.
- Click on the WordPress icon to start the installation process.
- Fill in the installation details:
- Choose Protocol: Select whether you want to use "http://" or "https://".
- Choose Domain: Select your newly created subdomain from the dropdown list.
- In Directory: Leave this blank to install WordPress in the root of the subdomain.
- Set your site settings:
- Site Name: Enter a name for your website.
- Site Description: Provide a brief description of your site.
- Create your admin account:
- Admin Username: Choose a username for your WordPress admin panel.
- Admin Password: Set a strong password.
- Admin Email: Enter a valid email address for password recovery.
- Select plugins and themes (optional):
- You can choose to install some default plugins or select a theme at this stage.
- Click on the "Install" button to begin the installation process.
Step 4: Access Your WordPress Dashboard
- Once the installation is complete, you will see a confirmation message with a link to your WordPress dashboard.
- Click on the link or go to
http://your-subdomain.com/wp-adminto log in. - Use the admin username and password you set up earlier to access your dashboard.
Conclusion
You have successfully created a subdomain and installed WordPress on it. This setup allows you to manage a separate website under your main domain. Next, consider customizing your WordPress site by selecting a theme, adding plugins, and creating content. If you encounter any issues, the cPanel documentation and WordPress forums are excellent resources for troubleshooting.