Step by step guide on how to install WordPress

Last updated on June 20th, 2022 by Robert Abela. Filed under WordPress Security Tutorials & Tips

WordPress blogging platform is one of the most easy to install web application script. As a matter of fact, WordPress is well known for its five minutes installation, or less. Many web hosting companies typically offer tools which will automatically install WordPress for you. Though if you would like to install WordPress yourself, below is a step by step documentation on how to install it. Installing WordPress yourself gives you much more control and flexibility on the configuration of your blog.

WP White Security Admin TIP: To avoid upgrade or compatibility issues with WordPress versions, it is always recommended to install WordPress without using third party tools.

Step 1: Download and Extract the WordPress Blogging Platform Files

  1. Download the latest version of WordPress blogging platform files from the official WordPress website download section;
  2. Once downloaded, extract all the files, which by default are extracted to a directory called WordPress.

Step 2: Create a MySQL Database for WordPress

There are several ways how to create a new MySQL database for your WordPress blog.

If you are using a shared hosting service, refer to our WordPress tutorial How to create a WordPress database from CPanel.

If you host your own server, or you are an advanced user and would like to create your own MySQL WordPress database and configure granular MySQL database privileges and more, follow our Create a MySQL database and username using a GUI such as phpMyAdmin WordPress tutorial.

Step 3: Set up wp-config.php (WordPress configuration file)

You can either configure wp-config.php file manually using a text editor as described in the procedure below, or else you can let WordPress do it for you when you run the WordPress installation script. To avoid giving WRITE permissions to the web server user, it is recommended to set up the wp-config.php file manually by editing it with a text editor.

  1. Navigate to the directory where you extracted the WordPress files and rename the file wp-config-sample.php to wp-config.php.

WordPress configuration file database connection details

  1. Enter the MySQL database connection settings in the wp-config.php file:
  • DB_NAME: the name of the MySQL database you created for WordPress in step 2.
  • DB_USER: the username you created to access the MySQL database in step 2.
  • DB_PASSWORD: the password you specified for the MySQL username in step 2.
  • DB_HOST: the hostname specified in step 2, which typically is localhost.

Step 4: Enter the secret key values in wp-config.php

WordPress uses these random generated values to ensure better encryption of information stored in the user’s cookies when visiting a website. You do not need to remember such values, just make them as long as possible, random and complicated.

  1. Using a web browser, navigate to the WordPress secret key online generator.

WordPress configuration file secret keys configuration

  1. Copy each value the online generator returned and copy it instead of ‘put your unique phrase here’ (highlighted in the above screenshot) in the wp-config.php file.Example of wp-config.php line after change:

define('AUTH_KEY', '/DIKGYL/hp@bZ/Kq-1<|Y$g>cJ[aAsS*W-B$#Wq&Nh^y%+bb#g+1OWLG5E5$RmGo');

  1. Once you’ve replaced all the secret key values (listed below, save the wp-config.php file.

Step 5: Uploading WordPress files

Before uploading the WordPress platform files, you have to decide where you will be uploading the WordPress platform. The options are:

  • Root directory of your website (E.g.
  • Subdirectory of your website (E.g.

Once you decide where to upload the new WordPress blog, using an FTP client connect to the remote server and navigate to the directory where WordPress will be running.

Upload ALL the extracted content of the WordPress directory (but not the directory itself).

Step 6: Run the WordPress install script – Install WordPress

Once all files have been uploaded, using a web browser navigate to the below URL (replace with the URL of your website) to launch the WordPress install wizard to configure the last bits and pieces:

If you installed WordPress in a sub directory,


Pradeep 29/01/2013

Dear, thanks for sharing this useful information

Jerry 15/08/2020

Hello, thank you for your installation directive.
I have had issues with my WP install and was wondering if you could shed some light on it.
Specifically, in step two of install ( where the Site Title Username Email Password need to be entered – part of wp-admin/install.php)
I have experienced an unrelenting error of “Please provide a valid username”).

This install is for a new site and I have had to re-install WordPress a number of times so it may be overlapping somehow.

My WP files are installed in a sub-directory – /home/sitename/public_html

Is it possible the install.php file is missing the public_html subdirectory and missing the usrname value for the install?

Thank you for you article and any suggestions on this problem.

Radostin Angeloic 10/09/2020

Hi Jerry,

Thanks for reaching out!
This is something that you should address with your supplier. I’m sorry to say, but we are unable to provide such kind of support.

I hope you will find the solution for that quickly.


Leave a Reply

Your email address will not be published.

Our other plugins