Yes!WordPress is most famous CMS now a days. It is well-know for its ease of installation and variety of Plugins to enhance its functionality. If you want to install WordPress on a Domain than may be your host provides you the easy installation process. But if you want to create a website in WordPress we recommends you to install it on your computer then migrate your website to a Domain after testing. However if you wish to install WordPress on your computer this article will help you a lot.

What Do We Need?

1. Local Server environment ( XAMPP ):

We discuss XAMPP Installation in our previous lesson, in that lesson we also verify PHP and MySQL installation. If you don’t know how to install and configure XAMPP just read previous lesson. If you still have any problem or facing any kind of error regarding installation or configuration, don’t worry we are always here to help you. All you have to do is write down your problem in comment box or email us, we will get to you in a very short time.

2. WordPress :

Download WordPress latest version from in Zip format.

Install WordPress in 5 Steps:

Step 1:

To work with WordPress first you have to create a Database. Open your browser and type “localhost/phpmyadmin” in address bar and hit enter. A new page will be open with phpmyadmin interface.


In phpmyadmin interface Click on “Database” link. Enter database name in “Create new database” field and hit enter. In my case my databse name is “wp”. I will use this database to install WordPress on PC.

Step 2:

Now we are ready to install WordPress. Copy the downloaded WordPress zip file and goto to My Computer open C:/Program Files/XAMPP/htdocs folder. Paste Zip file here and unzip the file.

install wordpress

UnZip WordPress in htdocs folder and rename it if you want. I renamed it to “WP” and going to use WP throughout the lesson.

Step 3:

Open the WP folder, find the wp-config-sample.php”  file. Rename this file to “wp-config.php” now open this file in any code editor or in “notepad”. Scroll down to find following lines in “wp-config.php”.


Add the login details for Database on these lines.

Replace “database_name_here” with the name of database you created in Step 1.

Replace “username_here” with “root” default user for database.

Replace “password_here” with nothing just leave it empty. see the image below.


Close the file after saving. After configuration now we can install WordPress in a very short time.

Step 4:

In your browser open this link “localhost/wp/”. You will see the Five Minutes WordPress Installation Screen.


Enter the Required information in the fields and your WordPress Installation is done. Congrats !! today you have successfully installed wordpress on your PC.

Step 5 (Last Step):

Login to your WordPress Site, Open “localhost/wp/wp-admin” in your Browser. Enter username and password for wordpress which you choose in “Step 4”. You will be redirected to WordPress Dashboard.

Now we have learn that “how to Install XAMPP on Windows” and “WordPress Installation on PC” In the Next Lesson I will teach you how to Install WordPress Theme. If you have any Question or problem please comment below or contact us via Facebook, twitter, Google Plus or send us an email. We will get back to you ASAP.