How to install wordpress.


how to install wordpress

how to install wordpress

Ok. So you want to install wordpress. Good decision :). Let’s see how to install wordpress to start building your website. It’s easy.

We are going to be using cPanel for this installation process. It’s the most popular and easy to use control panel for managing servers and websites. cPanel is already included when you purchase a web hosting plan at So, let’s begin.

Installing wordpress is quite simple. There are two methods. You can install wordpress manually or you can install it using an installer like softaculous in cPanel. The easiest way to install is through softaculous.

Both cPanel and softaculous are included with hostbarrack’s web hosting packages. So you don’t have to worry about it.

When you sign up for web hosting, your cPanel login details will be sent to your registered email.

How to install wordpress using softaculous

First login to your cPanel by entering either of the following url :

  1.  if you do not have ssl for your domain.
  2.  if you have SSL for your domain.

It is suggested by cPanel to login to your cpanel through an encrypted SSL. An encrypted SSL connection will not transmit your username and password in plain text over the Internet. You can purchase SSL certificates for your domain at a yearly price at upto 70% discount from original company price from here.

  1. After you login to your cpanel, scroll down to “Software and Services” box.
  2. Then click on softaculous.
  3. In softaculous, cick on blogs and then wordpress.
  4. Click install.
  5. In “choose protocol”, select “http://” or “http://www.” if you do not have SSL for your domain or choose “https://” or “https://www.” if you have SSL for your domain.
  6. In “choose domain”, select the domain you want to install wordpress on from the dropdown menu.
  7. In “In directory”, enter the name of the directory you would like to install wordpress. Suppose you enter “wp”, your wordpress will be installed in If you would like your domain to go to wordpress directly, leave the field empty. Then your wordpress will be installed in
  8. In “Database Name”, choose a name for the database. WordPress runs on databases and softaculous will create the database for you. You only need to choose a name. You domain name should be fine without “http://www.” and “.com”. This will make it easier for you to remember.
  9. In “table_prefix” under database settings, by default you will see wp_. This is the prefix for your database name. Suppose you entered “yourdomain” as your database name in the above step, your actual database name will look like “wp_yourdomain”. Leave this setting in default. No need to change this.
  10. In “Site Name”, enter the name of your site as you want.
  11. In “Site Description”, enter a short description for your site.
  12. In “Enable Multisite (WPMU)”, check the box if you want multisite enabled on your wordpress. Leave it unchecked if you do not want multisite. Multisite is a feature of wordpress which allows people to sign up to your wordpress site to create their own blog under your main wordpress site. If you enable this feature, you will be the super admin and will have control over your own main wordpress website and over the websites created by others under your main wordpress. You can read more about multisites here.
  13. In “Admin Username”, enter your desired username.
  14. In “Admin Password”, enter a password for your wordpress login. Remember to use a strong password so that spammers and hackers cannot login to your website without authorization. The password strenth indicator will show you how strong your entered password is.
  15. In “Admin Email”, enter your email. All wordpress related notifications will go to this email.
  16. In “Select a language”, choose the language you prefer.
  17. In “Limit login attempts”, check the box if you want to limit login attempts. It will limit the number of times a person can attempt to login. If an unauthorized person attempts to login without the username and password, and fails for the number of times you set, wordpress will stop all logins for a specified time like 30 minutes. This increases security. If you check this box, softaculous will install a plugin in your wordpress automatically that will do the job of limiting login attempts.

If you want to run automatic backups of your website, you can do so by clicking the “Advanced Option” and checking “Automate Backups” to enable it. Then, in “Backup Rotation” choose the number of backups to keep. If you select 4 in backup rotation and you reach 5 backups, softaculous will delete the oldest backup and run a new backup. Keep in mind that the backups will use your server storage. So choose backup rotation as per the space available to you.

You can also run backups for your wordpress site manually from softaculous.

Hostbarrack runs daily backups for your websites. But it is recommended to run your own backups too for more security.

You can also run backups manually from cPanel – Backups. More in this in a future post. Keep reading 🙂

If you are worried about your server space, you can download the zip files of the backups to your local storage like a computer or External hard drives and delete the backups from your server.

Finally, click install.

Softaculous will start the installation process and notify you when it is complete.

Congratulations!! You installed wordpress for your website! And you have completed the course “how to install wordpress with softaculous” 😀

How to install wordpress manually

A bit tech savvy you are huh? :). Let’s see how to install wordpress manually. We are going to use cPanel again which is the industry leading control panel for web servers.

First you need to download the latest version copy of wordpress. You can download it from

Now upload the wordpress installation file to your server using FTP like filezilla. Or you can login to your cPanel, go to “Files” section, click “File Manager”, go to your website directory, click upload from the top menus and select the wordpress installation file to be uploaded.

  1. After the file has been uploaded, select the wordpress zip file and click extract from the top menus.
  2. You will get a new folder called wordpress. Enter the “wordpress” folder and click “select all” from the top menus. Click “move file” and move them to the root directory of your domain. That is, if you are installing wordpress on your root domain, move them to the public_html. If you are installing wordpress on a sub domain or an add on domain called “yourdomain”, move them to public_html/yourdomain.
  3. Now you need to create a database for your wordpress. Go to cPanel, “Databases” and click on “MySQL Databases”.
  4. Under “Create a new database”, enter a name you wish for the databse. Keep it something easy to remeber for identifying it with your website. Click “create database”.
  5. Under “MySQL Users”, “Add a new user”, enter the name for the user. Then enter the password or click generate password. Check the box saying “I have copied this password to a secured location”. Note down the password, you will need it later. Click create user.
  6. Under “Add a user to a database”, you will need to assosciate the user you just created to the database you created before. In “User”, select the user you created. In “database”, select the database name you created before. Click “add”.
  7. You will be taken to a new page where you will need to select the privildges you wish to give to the user for the database. Click “All Priviledges”. Then click “Make Changes”. Congrats! You have created a database and a user. There are a few more steps.
  8. Now go to your cPanel file directory. Then go to the place where you had moved the wordpress files.
  9. Find the file called wp-config-sample.php. Right click on it and click rename. Rename the file to wp-config.php and click “OK”.
  10. Now right click on the file wp-config.php and click edit.
  11. Look for “define(‘DB_NAME’, ‘database_name_here’);”. Change “databse_name_here” to the database name you had created previously. Remember to put your database name within the apostrophies (‘ and ‘).
  12. In define “(‘DB_USER’, ‘username_here’);”, change ” ‘username_here’ ”  to the username you created. Remember to put the username within apostrophies (‘ and ‘).
  13. In “define(‘DB_PASSWORD’, ‘password_here’);”, change “password_here” to the password you had generated when creating the user (See? I told you that you will need the password 🙂 ). Remember to put the password between apostrophies (‘ and ‘ ).
  14. Now scroll down and look for “Authentication Unique Keys and Salts”. You will see this:     define(‘AUTH_KEY’,
  15. Delete it and replace it with a new set of keys. You can generate the keys by clicking here. Copy everything after generating and replace the above with it.
  16. Click save from top right.
  17. You are almost done.
  18. Now go to .  Or if you had not moved the wordpress files to the root directory in the earlier steps, go to . Remember to replace “yourdomain” with your actual domain.
  19. You should now see a welcome page that says “Welcome to the famous five minute WordPress installation process!”
    1. Site Name
    2. Username
    3. Password
    4. Email address (login information will be sent to this email address)
    5. Select whether or not to have the search engines index the siteOn this page, fill in the fields for:
  20. Click install. WordPress will run the installation process and notify you when it is complete.

Congratulations!! You have installed wordpress for your website. And you have mastered the “how to install wordpress manually” course too! 😀

We will see how to get started with wordpress and start building your website in the next post. So stay tuned!!!

Subscribe to our blog to get the latest post updates sent to your email.

Hope this post was of some help to you.

By Millo Lailang

I am a PHP/MySQL and wordpress developer and I write about it and other general webmaster and blogging tips on my blog I also give free guitar lessons at

2 responses to “How to install wordpress.”

  1. Great post, good value! Was about time that someone stepped up and wrote an article about this stuff thank you!

Leave a Reply

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