Installing WordPress On Subdomain Using cPanel

In this post, I’ll show how to install WordPress on a subdomain using the softaculous installer in cPanel of Linux Web Hosting. This is very simple, you just have to follow the steps given below.

I assume you already have a hosting account with a domain associated to it. So just log into your web hosting account and open the Control Panel (cPanel) of Linux hosting. Some hosts hide cPanel under the name ‘Manage Web Hosting‘.

Creating Sub-Domain

Once you open cPanel, navigate or scroll down to the ‘Domains‘ section. Here select the subdomains option and a new page will open up.

You can straightaway figure out how to create a subdomain, but if you can’t then keep reading. On the subdomains page, you can find ‘Create a subdomain‘ section. Check the screenshot given below –

All you need to do is just enter the subdomain name and select the domain. In this case, I have chosen the domain as and the subdomain as lab. And do not mess with the document root, it will be automatically created once you enter the subdomain.

After entering subdomain and domain in the form, just hit Create button. In this case, a subdomain with link will be created for me.

Installing WordPress On Sub-Domain

Installation of WordPress package on a sub-domain is very similar to that of installing it on root itself. All you need to do is just select the newly created subdomain from the drop down menu.

Install WordPress On SubDomain

Fill the rest of the details as described in my previous post – Installing WordPress On The Web Host. I hope this post helps you. Subscribe for more amazing posts, Thanks.

Installing WordPress Using An FTP Client

I have previously written about how to install WordPress directly using a online installer like Softaculous. But some hosts do not provide installers, so in that case you can just upload the WordPress package using FTP Client.

First of all, you will need the WordPress package. Go to and download the package. Click on ‘Download WordPress’ which will take you to the download page. Here choose the .zip version and download it. Its basically a big blue button with some version number. (eg. Download WordPress 3.6 .zip – 4.3mb).

#1. Extract the downloaded zip using Winrar or any suitable program. Open the extracted folder where you can find folders like wp-admin, wp-content, wp-includes and files like wp-activate, wp-settings, etc.

#2. Open FileZilla and establish a connection to your server. Once you are connected. Open the www folder in FileZilla remote directory.

#3. Select all the extracted files as shown below –

WordPress Installation Files

#4. Now drag-n-drop these files into the www folder of the Filezilla remote directory. This will initiate file upload. It will take a while to upload all these files. Once file upload is done, move to the next step.

#5. Go to and follow the installation procedure. Its almost the same as installing WordPress on WAMP Server.

#6. You’ll be asked to enter database information. Here you need to enter MySQL database name, username and password. Keep the rest as it is.

#7. Once database information is set, you’ll be asked to enter site name, description, admin username and password, etc. Just finish the installation process.

#8. After completing installation, you can login to WordPress administrators dashboard by visiting

Adding User To MySQL Database In Linux Hosting

In the previous post, I have written about creating a MySQL database using control panel in linux hosting. Now lets see how to add users to the newly created database.

Here, two steps are involved. First is creating the user and second is adding the user to the database. So lets see how to do that.

#1. Creating MySQL User

  1. Login to your webhosting account.
  2. Go to control panel (cPanel).
  3. Select MySQL Databases
  4. Scroll down to MySQL Users
  5. Type in the desired username and password in the input form.
  6. And click on create user.
  7. This will create a new MySQL user.

But not that, this newly created MySQL user has no access to any MySQL database. So to associate this MySQL user to any database you’ll need to follow step 2.

MySQL Database

#2. Adding MySQL User To MySQL Database

Once you create a new user, stay on the same page and scroll down. You can see Add User To Database option. This is where you will have to select the User and select the Database from a drop down menu. After selecting the user and database, just click on Add button and you are good to go.

You can now use this newly created database for installing WordPress, Joomla, etc.