Setup or install WordPress
Setup or install WordPress

If you are passionate about writing and believe in sharing is caring, writing a blog will be your favourite part-time hobby. Many of us are just content consumers but being a content producer will inject your thoughts into other people’s minds and in this way you can create an impact in the life of others. It could be technical, non-technical, philosophical etc.

Let’s follow the step-by-step process to set up your WordPress blog on your local system.

Prerequisites:

  1. Basic knowledge of PHP and MySQL
  2. Basic knowledge of Ubuntu terminal
  3. Installed apache2 and MySQL in the Ubuntu System.

Steps to install the WordPress:

Step 1:

  • Download WordPress from here  and extract it inside the /var/www/html/
  • If you don’t have the permission to copy in the above folder, run the below command because this folder is by default owned by the root user. Let’s give ownership to the normal user.
    • sudo chown -R $USER:$USER /var/www/html/  (Here, $USER referred to the currently logged-in user.)

Step 2:

  • Create a database with the desired name. Eg. myblog

Step 3:

  • Access the http://localhost/wordpress in the browser. Here WordPress is the name of the folder that you extracted in the /var/www/html. You can give any name of your choice to this folder.
  • It will show you the WordPress home page after hitting above URL.

Step 4:

  • Click on the “let’s go” button.
  • In the next screen, you will see the form to fill the database information.
    • The database name is the name of the database that you created in step 2.
    • username is the name of the database username. This is set when we install MySQL in the system.
    • Password to access the MySQL database. This is also set at the time of MySQL installation.
    • Database host, in our case, it will be localhost
    • Table prefix, by default it’s value will be “wp_”. It is suggested to change it for security purposes. You can give it as “hd_” or anything you want.
    • Click on the submit.

Step 5.

  • In this step, you have to create the admin account for your blog.
  • In this step, we will fill the basic information like the username of admin, password and email ID. Please enter the email ID that is accessible by you. It will help you in case you forget you account credential.

If you are here, then I would like to congratulate you on setting up your first WordPress blog. You can log in to the admin panel and in the left navigation inside the posts, click on add new and start creating and publishing your post.

If you feel any issue in setting up your blog, feel free to comment here. And as you are on the path of sharing the content…

Happy blogging!!