Knowledge Base

How to install WordPress on a subdomain

This article describes how to install WordPress on a subdomain using cPanel and Softaculous.

Step #1: Create a subdomain using cPanel

Before you can install WordPress, you must create the subdomain in cPanel. To do this, follow these steps:

  1. Log in to cPanel.
    If you do not know how to log in to your cPanel account, please see this article.
  2. In the Domains section of the cPanel home screen, click Subdomains.
  3. Under Create a Subdomain, type the name of the subdomain that you want to add in the Subdomain text box.
    cPanel automatically fills in the document root path by using the subdomain name that you provide. This path is where the subdomain's files are stored.
  4. Click Create. cPanel creates the subdomain.

Step #2: Install WordPress using Softaculous

After you create the subdomain, you're ready to install WordPress. To do this, follow these steps:

  1. In the Software/Services section of the cPanel home screen, click Softaculous. The Softaculous installer page appears.
  2. In the Search text box, type wordpress and then press Enter.
    Alternatively, you can use the navigation pane on the left side. To do this, click Blogs, and then click WordPress.
  3. Click Install. The installation page appears.
  4. In the Choose Protocol list box, select the protocol.
    If you have an SSL certificate installed on your site, select https:// or https://www. If you do not have an SSL certificate installed on your site, select http:// or http://www.
  5. In the Choose Domain list box, select the subdomain that you created in the previous procedure.
  6. Leave the In Directory text box blank.
  7. In the Database Name text box, type the name of the database to create for the application, or accept the default value.
  8. In the Table Prefix text box, type the database table prefix, or accept the default value.
  9. In the Site Name text box, type the site name. By default, the site name appears in the title bar of users' web browsers when they visit your site.
  10. In the Site Description text box, type the site description. By default, the site description also appears in the title bar of users' web browsers when they visit your site.
  11. In the Admin Username text box, type the administrator username.
  12. In the Admin Password text box, type the administrator password.
    Make sure that you choose a strong password! The Softaculous installer provides a ranking for your password's strength, and turns green when the password is strong. Alternatively, you can click the Random Password icon icon next to the Admin Password text box, and Softaculous generates a strong, random password for you.
  13. In the Admin Email text box, type the site administrator e-mail address.
  14. In the Select Language list box, select the default language for the application.
  15. To limit the number of login attempts, select the Limit Login Attempts check box.
    Limiting the number of login attempts can help increase the security of your WordPress installation.
  16. Click the Advanced Options icon icon to expand Advanced Options.
  17. If you do not want to receive e-mail notifications when application updates are available, select the Disable Update Notifications check box.
    A2 Hosting strongly recommends that you receive e-mail notifications when application updates are available. Keeping your site updated helps prevent unauthorized access attempts and data loss.
  18. To automatically update the application when updates are available, select the Auto Upgrade check box.
  19. To receive site configuration information after the installation is complete, type an e-mail address in the Email installation details to text box.
  20. Review the installation options and settings, and then click Install. When installation is complete, Softaculous provides information about the WordPress configuration.
  21. Use your web browser to visit the subdomain you created in the previous procedure. You should see the WordPress home page.