How To Install WordPress to cPanel in 5 Easy Steps

WordPress is one of the most fastest growing CMS software on the market. It is also probably the easiest and most powerful content management system nowadays.

With WordPress you can create a blog in just 5 minutes, a presentation website and even an online store. Due to its fast growing community, there are tons of plugins and themes with which you can customize your website as you like.

Both despite and because of its popularity, WordPress is a secure platform and extremely flexible. You can additionally enhance your WordPress website security by installing plugins that do just this.

In this article I will show you how to install WordPress to your cPanel in just 5 easy steps.

1. Download WordPress

  1. Download the latest WordPress package to your local computer from https://wordpress.org/download/ and click on the Download WordPress button to begin downloading.
  1. If you don’t want to download the latest version, you can simply go to https://wordpress.org/download/release-archive/ and choose older versions of WordPress.
  1. However, I don’t advise you to use older WordPress versions due to security reasons.
  2. Unzip the downloaded package to a folder in your local computer

2. Upload WordPress to cPanel

There are 3 ways of uploading any files to a hosting account, including WordPress:

  • Upload via FTP
  • Upload via File Manager
  • Upload via SSH

The first two are the most used. Use the method you are comfortable with.

I’m going to use FileZilla (it’s free) to show you how to easily upload WordPress to cPanel. The FileZilla client can be downloaded from here.

As soon as the FileZilla instalation completes, open the client and let’s get to work.

  1. Insert your FTP credentials: host (www.example.com), username and password and click Quickconnect. Usually they are the same credentials you are using to log into cPanel. If you cannot log in via FTP, you’d want to contact your hosting provider and ask them for more information.
  1. Go to public_html folder and create a new directory for your WordPress website. For security reasons, I suggest choosing a strong folder name to protect yourself from bots and crackers.

It isn’t necessary to install WordPress in a specific directory, you can as well copy-paste all the WordPress files into public_html and install it like this. But for the sake of security and folder management I would suggest creating a new directory.

  1. Drag and drop. Locate your recently downloaded WordPress folder and simply drag and drop all the files into your newly created directory on your public_html.

Congrats! You’ve just uploaded your WordPress website via FTP!

Let’s go to the next step.

3. Create MySQL Database and User

Once you’ve uploaded the WordPress folder to cPanel, you have to create the database in which WordPress will store its information.

  1. Log into cPanel
  2. Go to Database section and click on MySQL Databases icon

3. Create a database from the “Create a New Database” section. Choose a name that is fit for your website and insert it in the form. I will go with “wordpress” because it’s a WordPress website that I’m installing.

For security reasons, you might want to scramble your database name a little bit, because a database named “wordpress” is more vurnarable than a database named “wp9823”. For the sake of simplicity, I will go simple with “wordpress”.

  1. Create an user for your database. From the same MySQL Databases panel, scroll down a bit to MySQL Users section. Choose an username for your database. Again, for security reasons I would recommend choosing a complicated username and a very strong password. I will go with “wp” just to show you how it looks.

If you cannot think of a strong password, you can click the “Password Generator” button to create a random strong password. But be careful to save your password somewhere secure so you don’t lose it.

  1. Add an user to a Database. From the “Add a user to Database” section, choose your user and database from the dropdown menus and click the “Add” button.

Now you can see that a new window has popped out and you must choose the privileges for your user and click the “All Privileges” checkbox and click “Next Step“.

Congrats! Your database is all set and we’re ready to go install WordPress on cPanel!

4. Configure wp-config.php

The wp-config.php file contains all the database information WordPress application needs to know.

You must configure wp-config.php to ensure the correct database information is associated with the WordPress instalation.

The wp-config.php file can be found inside your WordPress folder, usually at public_html/yourwordpressfolder/wp-config-sample.php.

As soon as you locate the file:

  1. Right click on it, and select Edit.
  2. When the file opens, look for the following information:
  1. Replace database_name_here with the name of the database you created earlier
  2. Replace username_here with the username you created for the database you created
  3. Replace password_here with the password of the database that you created
  4. When done editing, make sure you save and then close the file

Congrats! You’ve just set up the configurations. Let’s go further, you’ve got one last step until you complete the installation!

5. Run and Complete the Installation

Open a browser window and access the installation page to run the installation script. Depending where you installed your WordPress, you will find it at either of the following urls:

http://yourdomain.com/wp-admin/install.php

http://yourdomain.com/yourwordpressdirectory/wp-admin/install.php

Once you triggered the install script follow these simple steps:

  1. Select your language
  2. Insert your credentials and click Submit
  1. Create an administrator account. Make sure you choose a strong password.

You are now good to go!

Once you have access to your WordPress’ dashboard, create another account with administrator privileges and use it to post articles. Don’t use your first created account (the one you have created during the installation of WordPress). I think you know why. Security reasons, of course!

Make the best of the newly created website and let me know if this guide was helpful!