13 February 2022

How To Install Wordpress Complete Guide Step By Step

The most popular blogging platform, wordpress is easy to install and setup. It is the most user-friendly self-hosted blogging platform for a beginner. To install wordpress, you do need to be an expert.

In this blog post, I will cover how you can install wordpress in many situations you could have in the real world of the blogging journey. You could install it on live hosting or localhost. Both are the most situation you might have.

Wordpress could be installed automatically on unmanaged vps hosting, shared hosting and managed wordpress hosting.

These step by step below are the ideas that how wordpress could be installed.

Install Wordpress On Shared Hosting Manually

1. Login into cpanel admin. Username and password will be provided by hosting provider at the first time sign up.

How To Install Wordpress For Beginner The Complete Guide

How To Install Wordpress For Beginner The Complete Guide

2. Download the latest version of wordpress at wordpress.org. Safe it at the local computer.

3. Open file manager. Navigate to the root of the domain.

How To Install Wordpress For Beginner The Complete Guide

How To Install Wordpress For Beginner The Complete Guide

4. Open "upload" menu and upload the latest wordpress software from the local computer. Click "Select File" to select and begin uploading the files.

How To Install Wordpress For Beginner The Complete Guide

How To Install Wordpress For Beginner The Complete Guide

How To Install Wordpress For Beginner The Complete Guide

How To Install Wordpress For Beginner The Complete Guide

How To Install Wordpress For Beginner The Complete Guide

5. Extract wordpress.zip and move all files to the root of the domain.

6. Rename wp-config-sample.php to wp-config.php

7. Click "MySQL Database Wizard". Create a database name, strong database password and database username.

How To Install Wordpress For Beginner The Complete Guide

How To Install Wordpress For Beginner The Complete Guide

How To Install Wordpress For Beginner The Complete Guide

8. Open wp-config.php. Put database name, database password and database username in the place as per screenshot below.

How To Install Wordpress For Beginner The Complete Guide

9. Open browser and type Api.wordpress.org/secret-key/1.1/salt/ to get new secret-key. Replace default secret-key with the new one.

How To Install Wordpress For Beginner The Complete Guide

How To Install Wordpress For Beginner The Complete Guide

10. Rename table_prefix with whatever unique table_prefix if like. Example : wp_myunique_

11. As all requirement is in place, it is time to install wordpress. Open browser and type the name of the domain to begin the installation.

How To Install Wordpress For Beginner The Complete Guide

How To Install Wordpress For Beginner The Complete Guide

Install Wordpress On Shared Hosting Automatically

I am using shared hosting hawkhost to host one of my wordpress blogs. To install wordpress automatically, follow these step by step.

1. Select “Softaculous” in cPanel. In the left-hand column, you’ll see options for what kind of software you can install. Select WordPress.

How To Start A Blog From Scratch Easily Step By Step

2. Click on the “Install” button. The final install window will appear once you’ve filled out any information you may need to provide. In the final screen, you will get the option to have your install information emailed to you.

How To Start A Blog From Scratch Easily Step By Step

How To Start A Blog From Scratch Easily Step By Step

How To Start A Blog From Scratch Easily Step By Step

You’re now ready to view your freshly installed software!

3. Log in to Your New WordPress Site

To view your site, start by entering your domain name. Access the admin panel by entering your username and password – the link should be something like YourNewBlog.com/wp-admin.

The admin dashboard should be reasonably intuitive. Here, you’ll be able to customize the settings for your blog, write and publish new pages, and manage the comments section of each post.

How To Start A Blog From Scratch Easily Step By Step

Install Wordpress On Localhost (Windows 10 PC)

I am using MAMP PRO as the environment to install wordpress on localhost on my own pc windows 10. By using MAMP PRO I can create wordpress blog with domain name just like live hosting.

To install wordpress on the local computer, follow these step by step.

1. Open MAMP PRO

2. Create hostname by clicking on plus icon on hostname field

How To Install Wordpress For Beginner The Complete Guide

3. Type the name of the hostname you like. For example: mydomainname.mylocal. Do not use the TLD domain name such as .com, .net, etc. It will make you confuse which domain is your real domain on live hosting or your local domain.

How To Install Wordpress For Beginner The Complete Guide

How To Install Wordpress For Beginner The Complete Guide

4. Choose the root of the wordpress installation inside in the computer. You can place the root of the wordpress installation in anywhere on the local computer. For example, you can put the wordpress installation in the document folder. For Example, I will name the root of the domain installation site1.

5. Download the latest wordpress software at wordpress.org and place it inside in the site1 folder.

6. Rename wp-config-sample.php to wp-config.php

7. Create a database by clicking on WebStart. You can find this button on the top-right corner of the MAMP PRO software. Then open phpmyadmin. For this wordpress installation tutorial, I name the database site1.

8. Place the database inside in the wp-config.php. To do this, replace this code define('DB_NAME', 'database_name_here') with this code define('DB_NAME', 'site1').

9. Place the database user. To do this, replace this code define('DB_USER', 'username_here') with define('DB_USER', 'root').

10. Place the database password. To do this, replace this code define('DB_PASSWORD', 'password_here') with define('DB_PASSWORD', 'root').

11. Open your Web browser and type in mydomainname.mylocal where mydomainname.mylocal is the URL for your site

12. Next, you are welcomed to Wordpress and the installation tells you all the information it will need on the next screen. Click "Let's go!" to continue.

13. When Wordpress can communicate with your database, using the information you provided, you will see a page like this. Click the "Run the installation" button to begin to installation.

How To Install Wordpress For Beginner The Complete Guide

14. The next screen will ask you for information about your blog: the blog name, username, password, email address and whether you want search engines to index your site. Fill out the information and click "Install Wordpress."

15. When everything goes as planned, you will see the page below. Click "Log in" to log in, using the password you created on the previous step.

16. This takes you into the Wordpress Dashboard, which is where all your administrative functions are done in Wordpress.

How To Install Wordpress For Beginner The Complete Guide

Install Wordpress Using Wp-cli On VPS Hosting

Wp-cli is command line interface for wordpress that is easy to use.

I assume you have LAMP or LEMP installed on your vps hosting.

To install wordpress using wp-cli, you have to install wp-cli first on your vps hosting. To do these, follow these step by step.

1. Download the latest version of wp-cli software. Type this command.

curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar

2. Make it executable. Type this command.

chmod +x wp-cli.phar

3. Move it to bin folder.

sudo mv wp-cli.phar /usr/local/bin/wp

Type this command to make sure that the wp-cli command line is working.

wp --info

4. Download the latest wordpress software. Type this command.

wp core download --path=/domainroot/

5. Connect to the mysql client using the root password. Type this command.

mysql -u root -p

6. Create database. Type this command.

CREATE DATABASE your_awesome_database;

7. Create a database user which Wordpress will use to access the database. Type this command.

CREATE USER your_wp_dbuser IDENTIFIED BY 'this_S3cur3_p455w0rd';

8. Now, with the database user created, grant it all privileges on your Wordpress database. Type this command.

GRANT ALL PRIVILEGES ON your_awesome_database.* TO 'your_wp_dbuser'@'localhost';

9. Use the FLUSH PRIVILEGES command to force the privileges to take effect now. Type this command.

FLUSH PRIVILEGES;

10. Type exit to leave the mysql client. Type this command.

exit;

Install Wordpress On Localhost (Ubuntu/Linuxmint PC)

To do these, follow these step by step.

1. Download XAMPP that is avaialable at https://www.apachefriends.org/download. It is free.

2. To run the installer, you must change its permission to 755

chmod 755 xampp-linux-*-installer.run

3. Install XAMPP

sudo ./xampp-linux-*-installer.run

4. Start XAMPP by typing this command

sudo /opt/lampp/lampp start

5. Open File System

6. Click on OPT Folder

7. Click on LAMPP Folder

8. Click on htdocs folder

9. Create new folder. For this example, create folder named blogwp

10. Download latest wordpress software and extract it

11. Put all the extracted files into blogwp folder

12. Rename wp-config-sample.php to wp-config.php

13. Open browser and type localhost

14. Click on phpmyadmin

15. Create database by clicking on new button. For this tutorial, name the database blogwp

16. Place the database inside in the wp-config.php

17. Place the database inside in the wp-config.php. To do this, replace this code define('DB_NAME', 'database_name_here') with this code define('DB_NAME', 'blogwp').

18. Place the database user. To do this, replace this code define('DB_USER', 'username_here') with define('DB_USER', 'root').

19. Place the database password. To do this, replace this code define('DB_PASSWORD', 'password_here') with define('DB_PASSWORD', '').

20. Open browser and type in localhost/blogwp

21. Type the title of the blog in the Site title field

22. Type the user of the admin pane in the Username field

23. The password will be generated automatically. Just copy the password and save it in local computer

24. Put your email in the your email field

25. Press install wordpress button

26. Now you can login into your wordpress dashboard

If you want to stop XAMPP, type this command

sudo /opt/lampp/lampp stop

Wrap Up

You now know that it is easy to start a blog with wordpress on live hosting or just test it locally at your computer. It is time for you to start your own blogging journey. The next step is to pick up a nice looking wordpress themes. Check out the blog post about wordpress landing page themes. They are a mass collection of nice looking wordpress theme. Pick one.

Comments are closed