Step by step guide on how to install WordPress

Last updated on October 18th, 2014 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; http://wordpress.org/download/
  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, such as HostGator, 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.
  • AUTH_KEY
  • SECURE_AUTH_KEY
  • LOGGED_IN_KEY
  • NONCE_KEY
  • AUTH_SALT
  • SECURE_AUTH_SALT
  • LOGGED_IN_SALT
  • NONCE_SALT

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. http://www.website.com)
  • Subdirectory of your website (E.g. http://www.website.com/blog)

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 http://www.website.com with the URL of your website) to launch the WordPress install wizard to configure the last bits and pieces:

http://www.website.com/wp-admin/install.php

If you installed WordPress in a sub directory,

http://www.website.com/blog/wp-admin/install.php

WordPress Hosting, Firewall and Backup

This Website is:

One comment

Pradeep 29/01/2013

Dear, thanks for sharing this useful information

Leave a Reply

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