Create your wordpress blog offline

June 22, 2008
June 22, 2008
by Sean
in Blog

How many times have you made changes to your website that might not work that could cause an inconvenience to anybody that is trying to view your website? Well if you are using wordpress you usually edit your website online, and as soon as you save it the changes will take effect on your live website, this can be a nightmare because it could mess up the appearance of your website and cause your visitors to become confused on where everything is.

Wouldn’t it be great if you could simply test these changes before putting them into action on the live web for everyone to see. Well now you can, i was looking around the internet a few days ago and found out a way of installing wordpress locally on your own computer, this means you can make as many changes as you want to your website and it will not effect your live website, therefore making the ease of visitors to your site more comfortable, then when you are ready you can simply upload your changes to your live website.

Ok so in order to setup wordpress locally on your computer this is what you have to do:

  1. First download the latest version of wordpress, here
  2. Then go here and download XAMPP Lite
  3. When the download is complete extract it to the root of your hard-drive e.g: C:\
  4. When the extraction is complete go to C:\xampplite and click on setup_xampp.bat
  5. Then click on xampp-control and start Apache and Mysql
  6. Then open up your browser and go to https://localhost/ then choose your preferred language on the left column
  7. Then click phpMyAdmin from the tools section in the left column
  8. type: wordpress into the create new database section then select utf8_unicode_ci then click create, that is the XAMPP setup complete now
  9. Unzip the wordpress folder you downloaded into the folder: C:\xampplite\htdocs
  10. Then browse to the folder wordpress in C:\xampplite\htdocs then you should see a file called wp-config-sample.php open it up in a text editor such as notepad or textpad then replace the default values with these:

    // ** MySQL settings ** //
    define(‘DB_NAME’, ‘wordpress’); // The name of the database
    define(‘DB_USER’, ‘root’); // Your MySQL username
    define(‘DB_PASSWORD’, ”); // …and password (needs to be empty, just for local install)
    define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value

  11. Then save the file as wp-config.php in the same folder as wp-config-sample.php
  12. Then open your browser and type in https://localhost/wordpress/wp-admin/install.php
    Then follow the instructions and that’s it enjoy!

Have a look at the video below, i made it to show you how to do the above in case you had trouble doing it, i added some music so it wont seem so long!

Original instructions source: Geeksaresexy

9 Comments

  1. Pingback: live local

  2. Pingback: Recent Links Tagged With "geeksaresexy" - JabberTags

  3. Hugh Macken   July 1, 2010 5:53 pm / Reply

    thx this was very helpful!

  4. Riley   August 8, 2010 5:24 pm / Reply

    holy crap, you need to change up the colors here, yikes!

  5. anuj   August 9, 2010 9:40 pm / Reply

    thanks for the post gr8 help
    regards
    Anuj
    Networking/

  6. chris   February 9, 2011 2:04 am / Reply

    That was great info I even like the music what name of the song ?
    By the way anyone this info does work

    • Sean   February 9, 2011 1:41 pm / Reply

      The music is by Mgmt.

  7. Heather   May 14, 2012 1:35 am / Reply

    I was following along and everything was going great until step 6. https://localhost/ gives me a 404 error. Now what? THANK YOU!

    • Sean   June 11, 2012 11:32 am / Reply

      Is the mysql and apache services running? There is a video below the instructions which walks you through getting this up and running, it should help you with this.

Post a Comment

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

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.