How to Install wordpress

Wordpress demo site

Introduction

We can install wordpress by three ways. Below two ways we are going to discuss in this tutorial

  1. Using Installation wizard
  2. By manually modifying wp-config file

Step 1: Create database for wordpress

Before installing the wordpress first you need to create the database for wordpress so first create the database on your localhost (In this tutorial I have used xampp)
Follow the below steps to create the database and database user

  1. Start your control panel and go to phpmyadmin
  2. Click on database and create new databaseWordpress installtion create database
  3. Add new user to the database with all privileges
    1. First select the database then go to privileges tab and click on add new user
      Add new user to the database
    2. Enter the user details if you are installing wordpress on your local server then select host name as local and give all privileges to user.Create user setup

Step 2: installing wordpress

  • Method-1 : By using installation Wizard

    1. Download the WordPress package from https://wordpress.org/download/
    2. Create the folder for your project in the xampphtdocs and unzip the wordpress package in it.Install wordpress create folder for wordpress in htcosExact your zip in your project folder
    3. Go to your browser and type the URL of your project (In my case it is http://localhost/wp-demo) make sure your xampp server is start.
      When access your project you will be redirected to the your setup-config.php
    4. Setup your wordpress language
      Wordpress setup select language
    5. Set up your database setting
      • Database name which you created on your local server
      • UserName: which has all the privileges for database
      • Password
      • Database host
      • Table prefix : if you want to install the multiple wordpress using a single database you have to change the prefix for new wordpress installation.Wordpress setup database options1
    6. Run the installation
      wordpress installation run installation
    7. Site information setup
      • Site Title : Give here site title
      • UserName: it should be same as database username
      • Password
      • Your mail ID
      • Search engine visibility : if your site is in testing mode then check. It will stop indexing your site.
      • After above setting install wordpress
        wordpress installation site information setup
    8. Login to your wordpress
      wordpress installation user loginwordpress installation user login1
    9. Visit your site
      wordpress installation visit your siteDemo siteAll done now you can visit your site by clicking on site name
  • Method-2 : installing wordpress by manually modifying wp-config.php

    1. Create Database of wordpress installation

      Follow the step 1 to create the database

    2. installing wordpress by manually modifying wp-config.php
      • Download the WordPress package from https://wordpress.org/download/
      • Create the folder for your project in the xampphtdocs and unzip the wordpress package in it.
    3. Copy-paste the “ wp-config-sample.php” at same location and rename the copied file to “wp-config.php’ you can find wp-config.php at location : xampphtdocswp-demo2
    4. wp-config.php for edit
      • DB_NAME : Enter your database name here
      • DB_USER: Database user which has all privileges for database
      • DB_HOST : Host name
      • DB_CHARSET : No need to change
      • DB_COLLATE: NO need to changeWordpress installation manually wp-config setup
        Next go to the highlighted link copy paste the unique phrases from there and paste in your file (You should overwrite it on sample phrases)wordpress installaton manually wp-config setup2
    5. Go to your browser and type the URL of your project in my case it is (http://localhost/wp-demo) make sure your xampp server is start.
      When access your project you will be redirected to the your setup-config.php
    6. Setup your wordpress language
    7. Wordpress setup select language
    8. Site information setup
      • Site Title : Give here site title
      • UserName: it should be same as database username
      • Password
      • Your mail ID
      • Search engine visibility : if your site is in testing mode then check. It will stop indexing your site.
      • After above setting install wordpress
        wordpress installation site information setup
    1. Visit your site
      All done now you can visit your site by clicking on site name
      wordpress installation visit your site

Conclusion

In this tutorial we have seen the installation of the wordpress by 2 ways using setup wizard and by manually modifying wp-config.php file

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.