Explore the Latest Stupidity :
You are here: Home >> Blogging >> How to install and customize WordPress offline on localhost?
How to install and customize WordPress offline on localhost?

How to install and customize WordPress offline on localhost?

35 Flares Twitter 5 Facebook 18 Google+ 8 Pin It Share 2 StumbleUpon 1 LinkedIn 1 35 Flares ×

If you are on the way to start a new blog and you bought the domain and hosting; you are now just left with WordPress installation and setup. I would recommend you to install and customize wordpress offline on your PC before making your site live.

Now the first question would be arising in your mind that why should you install WordPress on your PC on localhost? So this is the main reason for installing the WordPress offline on localhost.

Why should you install WordPress offline on localhost?

#1. Editing and checking result take less time

If you are editing or doing some initial WordPress setup and you want to cross check the result whether the change has occurred or not, then since you are editing and checking it online it may take time due to your internet speed. Page may take longer time to reload. And trust me it really a headache to work on slow internet speed when you want to reload the page again and again frequently.

#2. Best for editing theme

Whether you want to start your blog or else you have your one and want to change the theme then if you change your site theme while your site is live it may make annoy to several users due to sudden changes, since you have just activated another theme in which all your links on homepage, side widgets are to be setup. But using offline WordPress you can edit theme setting according to your requirement in your own pace of time without being in hurry.

#3. Can work offline without any internet connection

If you have installed WordPress on your localhost then you don’t need to wait for your internet connection for doing the setup. Even if your internet is down temporary you can edit the theme or work on dashboard offline without having internet connection.

I think above reasons are enough for your question. So, let have a look over the procedure to install WordPress offline on localhost.

Steps for installing WordPress offline on localhost:

#1. Create a local server on your PC

I know the heading of this step is somewhat techy but don’t worry even if you are non-tech guy you can do this within a couple of minutes.

Just download wamp or xampp and click on the downloaded setup file to install wamp or xampp on your PC.

Note: Install only one server out of the above two.

Once you have installed the wamp or xampp in your PC you can access the localhost from browser by typing ‘localhost’ or ‘’ in address bar. And you can find the server’s files in ‘C:\wamp\www\’.  If everything goes correct you can see this page in your browser as soon as you type’’ in address bar.

Note: Since I have installed wamp server on my PC, here I am showing screenshots from Wamp server


localhost on Wamp Server

#2. Create Database for you blog on localhost

Once you can see the above screen you can find phpmyadmin’ option on this page under Tools heading, just click on this option to go to next step to create database.

Alternatively, you can type in browser’s address as ’localhost/phpmyadmin’ or ‘’ to go to next step to create database.

Once you have done with above steps you will be redirected to phpmyadmin page as shown below, just enter you database name let’s say ‘STL’ in textbox under ‘Create new database’ option and click on create button to create database. Once the database is created you can check your database name in left side column.



Create Database on localhost

#3. Download and extract WordPress file

Download WordPress setup file from wordpress.org. Now make a folder in ‘C:\wamp\www\’ which will refer to yours site let’s say ‘STL’, extract the downloaded files in ‘C:\wamp\www\STL\



STL folder in ‘www’ folder in ‘C:\’



Worpress Zip file extracted in STL

#4. Edit wp-config-sample.php

Now once you have extracted all files in your STL folder you will find a php file in STl folder named as ‘wp-config-sample.php’, just open this file and do the following changes as shown below:





Replace the following:

#a.  ‘database_name_here’ with ‘stl’ which you have made in setp #2.

#b.username_here’ with ‘root’ since it is default username in localhost unless you have added another user.

#c. ‘password_here‘ with ‘ ’  (blank), here password should be empty, again same reason which is mention in #b.

Now Save As ‘wp-config-sample.php’ as ‘wp-config.php’ in ‘c://wamp/www/STL/

#5. WordPress installation

After the above step just go to home page of your localhost again by typing ‘localhost’ or ‘’ in address bar and now here you can see your STL folder as a porject which you have made in  ‘c://wamp/www/’ under project option. Click on this project ‘STL’ to proceed with WordPress installation on localhost.



Newly created Project

Alternatively, you can type ‘localhost/STL’ or ‘’ in browser’s address bar to proceed with WordPress installation on localhost.

Here you will be redirect to WordPress installation page as shown below where you need to provide the basic information about your blog like name, username, password, email, etc. Remember the username and password which you will be entering while installation will be same for WordPress dashboard login.


wordpress installation


Once you are done with filling the information about your blog, click on ‘Install WordPress’ button to install the WordPress on your localhost in your PC. And now you are ready to login in your dashboard.



Successfully installed

Click on login button to login to your blog dashboard which will be working offline without any internet connection.  Now after login you can check every option and you will get access to everything on your dashboard as you have on online dashboard. Now edit everything as per your need and check as many times as you want before uploading the edited file in the root folder of hosting database.

Now if you want to access your blog using localhost, just follow the below steps:

#Launch wamp/xampp server in your PC using start in window 7

#Type ‘localhost/STL’ or ‘’ in browser’s address bar.

Please feel free to drop comment if you have any query about WordPress installation on local server. And share this with your friends if you find this a useful tutorial.

Want to get similar cool tech stuffs in you Inbox? Subscribe to my Feed!

About Shivkumar

I am Shivkumar Lohar from Mumbai. I believe in learning,practicing and implementing, whatever I learn. A Music lover and love to explore latest gadgets and softwares.


  1. Hi Shivkumar,

    Wow…now this looks like an awesome tool to use, especially when working off line. It is a bit “over my head” but as I carefully read through, I did get a good understanding of what this does.

    I work from my home office, so I’m always plugged in. And when I need to get away, I unplug for my sanity. However, for those on the go, those who may have a job and still want to work on their own business… This is great!

    I can see the many advantages this has! Thank you for introducing me to this and I will share it with my friends.

    donna merrill recently posted…Why Updating Your Blog Is ImportantMy Profile

  2. Nice guide! I have done it before but always loved to read how to guides. I have done with both xampp and wamp but my favorite is xampp. Keep sharing such how tos.
    Atish Ranjan recently posted…Essential things to do after setting up your wordpress blogMy Profile

  3. This is indeed a good guide for those who want to customize their wordpress blog. Its good to customize offline first rather doing direct on live blog. Thanks Shiv.

  4. Hi Shivkumar,
    Great,i did not know that we can work so well offline on wordpress.This looks very useful tool…It happens sometimes that we do not have internet connection and by this tool we can use our time well…
    Karnal Singh recently posted…Staff Nurse Vacancy LPSC Thiruvananthapuram April 2014My Profile

  5. Hey Shiv bro,

    Very informative post as Donna mentioned she was getting points perfectly but later she managed the same.

    I truly think it is awesome tool for the one for the offline customaization. May you come up with more ideas like that as I am mediocre in all these stuff and hope your information keep me updated.

    Thanks for sharing easy to understand instruction.
    shiwangi shrivastava recently posted…Freelance Writing: Much Ado about NothingMy Profile

    • Hi Shiwangi Di,

      I am very happy to see you on my blog, welcome to my blog. 🙂

      It my pleasure to know that my ‘how to’ guide has updated your knowledge with this useful tools.

      As you and everyone here knows that “learning never Ends”, I will keep learning and updating such more useful stuffs which will definitely add up to your knowledge.

      Thank for stopping by Di, hope to see you again. Have a nice weekend 🙂
      Shivkumar recently posted…How to Uncover short link URL safety before you click using URL Uncover?My Profile

  6. Hi
    Glad to see you with Word press.
    I have been doing work on WordPress on local host since long time.
    can you prefer me which local Server may i use XAMP Or WAMP???
    TIM recently posted…MT-43 Manual High Pressure PumpMy Profile

  7. Really detailed tutorial and I guess those who are first user of wamp, they could easily install and configure the wamp server.

    Samir recently posted…Download Free Instructions for IRS 1099 Tax FormMy Profile

  8. Hi, Nice post buddy. I work from my home office, so I’m always plugged in. And when I need to get away, I unplug for my sanity. However, for those on the go, those who may have a job and still want to work on their own business… This is great! I find your site is well maintain. 🙂

  9. Hi,

    Good to see this post. I am come here by searching “offline local host customize WordPress plugin” via Google. You are addressing the good and worthy information by step by step tutorial. Generally people are prefer to write a lenghy post but I like your way to explain it with help of Image. So audience are easily understand. Thanks


  10. hi friend, nice post. i’d appreciate your effort in writing this awesome post. i have a question: can this tutorial work on android?

    • Hello Emmanuel,

      Welcome to STL,

      Thanks for appreciating my work.

      Actually this offline concept require to make a local server which has to deal with different ports address which we won’t get in Android Tablet or smartphone. So this is not available for android.

      Thanks for coming by and asking your doubt.
      Have a great day bro! 🙂

      >SK Lohar
      Shivkumar recently posted…Earn free recharge for Smartphone using LINE appMy Profile

  11. Hey Shivkumar, great post I am very glad to have come across this and be able to follow the steps! Wondering which file to upload back to my host to make sure I don’t break anything? Kate, Wondrous
    Kate recently posted…Kayaking – Rose BayMy Profile

    • Hi Kate,

      Thanks for the complement!

      If you have made changes in database and you are quite sure about the changes then you can directly go on your host server database and do same changes in respectively table otherwise you can export database from localhost to your host server.

      And if you have made changes to file like .php, .css etc then you can replace that single file ( whichever file you have edited on localhost). Other wise you can upload all the files under www>STL(as per my example) on your host server.

      Hope this would help you.

      Thank for stopping by and I appreciate your query. Thank you.

      Have a great day ahead! 🙂

      >SK Lohar
      Shivkumar recently posted…5 Google chrome tricks and shortcuts – PART IMy Profile

  12. Hi… is there any application fitted for Mac OS X? Xampp and wamp are both not supported for Mac…
    Thanks a lot for the help.

  13. Thanks it’s really very helpfull tutorial.

  14. Following your instructions I got to the install and then it threw these errors…

    wp_posts: Table ‘spl.wp_posts’ doesn’t exist
    wp_options: Table ‘spl.wp_options’ doesn’t exist
    wp_postmeta: Table ‘spl.wp_postmeta’ doesn’t exist

    How do I correct these so I can move on? I love your instructions, but need a little help.

  15. I did everything through #4. Then in #5 I read

    Click on this project ‘STL’ to proceed with WordPress installation on localhost.

    My directory is GYL. I click and I see:

    Index of /GYL

    Parent Directory

    There is no way to proceed!!!! I click wordpress/ and I see:

    Error establishing a database connection

    I am trying to set this up in wamp.

    I look for the install.php file and I try opening it in my browser and I see:



Leave a Reply

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


CommentLuv badge

Scroll To Top
35 Flares Twitter 5 Facebook 18 Google+ 8 Pin It Share 2 StumbleUpon 1 LinkedIn 1 35 Flares ×