How to install WordPress

WordPress is famous for its fast and intuitive installation process (often related to 5 minutes installation), yet there are still things you need to know about installation. This tutorial will explain to you how to install WordPress on your existing web server (live or local):

  1. Download the latest version of WordPress.org to have zip file
    Download WordPress from wordpress.org website
  2. Create a database and database user for WordPress on the web server. You can use phpMyAdmin database management system which is installed on most of the web servers.
    Create mysql database for WordPress
  3. In phpMyAdmin, check the section Databases and choose Create database
    Create WordPress database via phpMyAdmin
  4. Create a database user, which you can do by choosing the section Users
    Create WordPress database user via phpMyAdmin
  5. Select Edit privileges of the new user
    Select to edit user privileges via phpMyAdmin
  6. Select Database-specific privileges and add all privileges for your user in relation to the newly created database
    Set database user privileges

Now you are ready to start actual installation process:

  1. Extract the zip file with WordPress installation and copy it into root folder of your website
  2. Copy wp-config-sample.php file and rename it into wp-config.php (It is always a good idea to have blank backup copy)
  3. Open wp-config.php file with text editor and change the following parameters:
    • ‘database_name_here’‘username_here’
    • ‘username_here’‘password_here’
    • ‘password_here’‘localhost’
    • ‘localhost’ – replace it with the name of your site or leave as localhost if you plan to have WordPress locally
  4. Save the wp-config.php file (if you made changes locally you may want to upload this file to your web server to overwrite old settings)

Example of wp-config.php file content:

<?php
/**
 * The base configuration for WordPress
 *
 * The wp-config.php creation script uses this file during the
 * installation. You don't have to use the web site, you can
 * copy this file to "wp-config.php" and fill in the values.
 *
 * This file contains the following configurations:
 *
 * * MySQL settings
 * * Secret keys
 * * Database table prefix
 * * ABSPATH
 *
 * @link https://codex.wordpress.org/Editing_wp-config.php
 *
 * @package WordPress
 */

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'database_name_here');

/** MySQL database username */
define('DB_USER', 'username_here');

/** MySQL database password */
define('DB_PASSWORD', 'password_here');

/** MySQL hostname */
define('DB_HOST', 'localhost');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');

Now it is time to launch WordPress installation:

  1. Open your browser and enter address http://yoursitename.com/wp-admin/install.php
  2. Run through installation process by specifying details like site name, username, and password

Congratulations! You have successfully installed your WordPress website. You can now login into your site via http://yoursitename.com/wp-admin/

Login into your WordPress website