How to install WordPress in localhost

Posted by • In Wordpress • With 7 comments

I’ve been learning WordPress for quite some time, and literally fell in love with it. I always create wordpress themes in localhost because its much faster and sometimes my internet is so slow, you can imagine the time spend on refreshing the page after some revisions on the theme. With this option creating a  theme is 10x faster, testing a plugin and fooling around with wordpress without worrying about speed, site crash, or broken theme.

Installing wordpress in XAMPP

First download XAMPP lite in Apachefriends.org, choose the .exe version. Install that in your c:/ drive, after it’s done double click the xampp-control.exe and choose start apache and mysql services.

How to install WordPress in localhost

Now open you browser and type in http://localhost/ from the menu on the left column, choose your language.

You can now click on phpMyAdmin on the left column.

How to install WordPress in localhost

On the database menu, look for create new database enter “wordpress” (without quotes) and click create.

Before Installing WordPress

Now download the latest version of wordpress in WordPress.org.

How to install WordPress in localhost

Then unzip the downloaded file to c:/xampp/htdocs/ . Browse through the folder and look for a file named wp-config-sample.php. Open it with your favourite editor and replace the values like this:


// ** 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

And save the file as wp-config.php.

Installing WordPress

Open your browser and type this http://localhost/wordpress/wp-admin/install.php, follow the step by step instruction. WordPress has a 5 minute easy installation, it’s not that hard trust me!

Things to remember

Make sure that XAMPP is running, apache and mysql are checked and you’ve type the right url in the browser address bar (e. i. http://localhost/wordpress/).

This is great for designers, users who wanted to test new plugins and themes before using to their own website. If your like me, I use wordpress multisite option on my localhost for ease of use when creating different themes. But that will be in another post!

What about you, why do you use wordpress in your localhost? Any other way to speed up the process? Share your thoughts below!

Others also read:

Tagged with:

Please share with others

Written by Sanjay

Sanjay is a Web & Graphic Designer from Quezon City, Philippines. I am hungry to learn everything about Web Design and Wordpress.

affiliate_link

7 Commented to How to install WordPress in localhost

  1. Wow install guide that help a lot nice Tutorial you got.

  2. unusual says:

    Thanks a lot for being my personal tutor on this issue. We enjoyed your article very much and most of all enjoyed how you handled the issues I regarded as controversial. You happen to be always quite kind towards readers like me and help me in my existence. Thank you.

  3. Marina says:

    You have really interesting blog, keep up posting such informative posts!

  4. Thx for this great information that you are sharing with us!!!

  5. metformin says:

    Great post I must say. Simple but yet interesting. Wonderful work!

  6. Chitra says:

    Hello thanks for the post…. but i am getting following error

    when opening this http://localhost/wordpress/wp-admin/install.php
    the error is as follows:

    Object not found!

    The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

    If you think this is a server error, please contact the webmaster.

    Error 404

    localhost
    12/28/11 16:58:49
    Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.2 mod_perl/2.0.4 Perl/v5.10.1

    plz help me

    • Sanjay says:

      Hi Chitra,

      Did you put the wordpress folder that you download to c:/htdocs/ folder? If not, you should and try to refresh the browser.

Leave a Reply

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

*


    • affiliate_link
    • Original WP by ThemeFuse
    • Click here for Linkvana