How to install WordPress

19. 08. 2021

5 min

WordPress is the most popular CMS system in the world (about 40% of pages using WordPress).

I have been using WordPress for half a year for various purposes. And I want to introduce others to how to create a website.

Prerequisites:

Step 1 - Download WordPress

Download the latest version of WordPress on the WordPress website.

Wordpress Download page

During the transfer, you can go cook one cup of☕ or 🍵 to make the next steps easier.

Step 2 - Create a database

Because most web hosting providers offer a control panel cPanel (https://cpanel.net/), I will also show you how to install WordPress with the control panel cPanel (https://cpanel.net/).

We must first create a database, which will store information about the website.

  • To do this, look for the MySQL Database Wizard button in the control panel. The wizard will allow us to create a database and a user.

cPanel dashboard - search for MySQL wizard

  • Continue by entering the name of the database. , the easiest database name is "wp".

In most cases, the database has a prefix (our cPanel login username), so the full database name will be prefix_ + database_name. The same goes for the database user in the next step.

cPanel - create database

  • Because the database needs a user to manage the database, we will create a user.

We need to assign a username and password to the user. The username is usually the same as the database name. The password must be secure. We must not forget this information, because we will still need it.

cPanel - create database user account

  • For each user, we can determine what powers he will have, so we will determine this.

The easiest (and also the least secure) is to give the user all permissions.

cPanel - add permissions to user

So, we created a database, for our website.

Step 3 - Upload WordPress to the server

I hope you still have some coffee or tea from before or the previous step was already too strenuous😊.

Now it's time to upload the downloaded zip file to our server.

  • We start this from the cPanel dashboard and look for the File Manager button.

cPanel - open File Manager

  • In a new window, which opened, find the folder named public_html and open it. Now comes the moment when we upload WordPress to the server.

cPanel - file manager interface

  • A new window will be open in which we select and upload the file downloaded in the first step. But this is not the end 😉. The real work is beginning.

cPanel - upload file

  • Next, we must unpack wordpress zipped file. Right-click the file and click the Extract button. It may happen that it will create a folder named wordpress, in this case, we click on it and select all the files in it and move them to one folder up.

cPanel - extract zip folder

  • So, we finally put WordPress on the server. The final look should be somewhat like the one in the image below.

cPanel - file structure on end

Step 4 - Configure WordPress and connect to the database

Now let’s go visit our website. We enter our domain name in the browser. And if all went well, we will see our WordPress configuration wizard.

  • Select the language in which we want to have the WordPress interface. And we continue.

WordPress - select language of interface

  • Time to connect to the database. We will need the data from the first step, I hope you have not forgotten them 😁. Let's go.

WordPress - notification for get database information

  • And in the next step, we enter the name of the database, database username and password from the user made in the first step. Database host is usually localhost, in case of using a database hosted elsewhere then you would enter that address.

WordPress - input database connection information

Successfully connected database
If we have connected the database then we can proceed with the WordPress configuration. ![WordPress - successful connection to database](https://cdn.hashnode.com/res/hashnode/image/upload/v1629375733246/Of-cfTNcC.png)
Failed connection to database
If we encounter problems establishing a connection, then we return to the previous page and first check if we have typed somewhere. But, if we do not find an error, we contact the hosting provider.

WordPress - failed connection to database

  • We connected WordPress to the database, followed by the final configuration of WordPress. We will now fill in the information on our website
  1. Site title - Enter the name of the site (be it short and represent the company or person),
  2. Username - Enter the username with which we will log in to the control panel. that the username is not "admin" as this username is the most common and hackers most often try to check them.
  3. Password - And login password. Keep your password secure. You must remember the password and username.
  4. Your email - Enter a valid email address because you will receive website notifications.
  5. Search engine visibility - If the box is checked, search engines will drop this page when indexing websites. My opinion is that as long as we check the box, this will prevent the page from being indexed as long as it is under construction. We can change this in the settings.

WordPress - configure website

  • First login follows 🤗. We enter our username and password from the previous step.

WordPress - login form

  • And voilà, we can now start editing the website.

WordPress - dashboard

Option 2

Some web hosting providers offer a Softaculous auto-installer that simplifies WordPress installation to the smallest.

I hope you learned something new. Until next time, with new tutorials on WordPress.

For even more content, you can follow me on my Twitter.