Sourabh Agrawal

How to install WordPress?

Posted By Sourabh Agrawal

The WordPress installation process completely depends on where you are going to install it. In this article, we will see how we can install WordPress on our local machine.

First of all, you must have a local server in your machine. Based on your operating system, there are different methods to install the local server. Usually users prefer to install the pre-build package and some users may configure the local server from the scratch.

If you are using the Mac machine, you can install MAMP, AMPPS, or XAMPP while if you are the Windows user, you can use WAMP, AMPPS or XAMPP. If you are a Linux user, than I would suggest you to configure the Apache, MySQL/MariaDB directly via custom configuration. After installing the local server, you will get a dedicated folder where you can store your website files, such as in xampp that folder is htdocs while on WAMP and AMPPS that folder is www. Now just remember that whenever I use the word “localhost root” as file storage, I refer to that particular folder. In this article, I am using xampp configuration.

Note: Whenever you want to use the local server, just make sure this is in an active stage and Apache and MySQL is ON.

XAMPP Control Panel

Configuration of a local server is a one-time process, so you can install all your local websites in this local server.

Now, I know you will say, come-on I KNOW THIS. Just let me know about WordPress.

So, let’s get started.

Download WordPress

Open the WordPress.org website. Make sure it is “.org” and not “.com”. Once you open that website, you will see a big blue button – “Get WordPress”.

Get Started WordPress

Just click on that and you will redirect to the WordPress download page. Click on the “Download WordPress” button. Here, you can also see the current version of the WordPress.

Download Latest WordPress

Now, you have a zip file that contains the WordPress files. You can extract this zip in the localhost root or any sub-folder of localhost root. Now when you extract the zip, the files will extract in a folder named “wordpress”. You can change the name of this folder as per your requirement. In this example, I am using the name “myfirstproject”.

When you open this folder, you will see the following file structure:

Wordpress Default File Structure

As of now, you don’t need to do anything using these files. So let it be as it is.

Open any browser. Yes “ANY”, you can event use IE 😉

Install WordPress

Based on my example, type the following URL: http://localhost/myfirstproject/ and you will see the following page:

Language Section during WordPress installation

Here, I have selected my language “English (United States)” and click on the “Continue” button at the bottom right corner. Now you see a page with some information related to the database. You can click on “Let’s go!” button. Now you will see a form like this:

Wordpress Installation Step - Database Information

Before proceeding further, you need to create a database. So, let’s open the following URL to access the database: http://localhost/phpmyadmin/

How to create Database?

Here you will need to click on the “Database” button:

Click on Database Button

Now you have to create a database. You can use any name but in this example I am using the name – “myfirstprojectdb”. Use this name in “create database” field and click on Create button. Now your blank database is created. You can open this database and you will notice that this is blank.

Create Database

Now back to the WordPress installation screen, and put the database related information in the form and click on the submit button. You need to put the database name – “myfirstprojectdb”, database username (default is root), database password (by default this is blank for localhost, so no need to fill this), database host (default is localhost), and the table prefix (default is “wp_”):

Tip: in order to increase security, you can use the custom table prefix.

Wordpress Database Configuration

Once you submit the database information, now your WordPress is able to communicate with your database. If you found any error on this stage, please re-verify the database configuration and the username and password. In the next step, you will see small information and a button “Run the installation”, click on this button.

Run The Installation

Now this is the last step, here you need to submit the information related to your main website, such as site title, username, password (These username and password is used to manage your website, and these are different than the database username and password), and the associated email id (this email id is used for the admin level notification and will not be publicly available). So, fill this form and click on the “Install WordPress” button.

Tip: In order to secure the website, do not use the common or easy to guess username/password. Always create a new username and complex/strong password. The complex password should contain the combination of uppercase, lowercase, numeric and special character and total length of the password should be at least 8 characters. WordPress provide you the hint of the strong password as well.

Bingo, your WordPress is installed now, and you can login to access your WordPress website.

WordPress Installation Complete

Note: By default you can access the admin dashboard by appending “/wp-admin/” in your main URL. Example, for this setup the admin URL is: http://localhost/myfirstproject/wp-admin/

Enjoy your WordPress and like this post and share on your social account.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
Sourabh Agrawal - WordPress Developer

Sourabh Agrawal

An Interactive Web Engineer

I am a WordPress developer with the hands-on experience with front-end techniques as well as the backend coding. I love creating new websites, optimizing them for performance and front-end detailing. I am graduated from the University Institute of Technology, RGPV in 2011 with a Bachelor of Engineering in Information Technology.

0
Would love your thoughts, please comment.x
()
x