facebook twitter youtube
in How & Why - 02 Sep, 2010
by Amit Gupta - no comments

If you are planning to edit/create your own wordpress theme, XAMPP will be a best option to test it. Although creating WP themes using Artisteer is too easy and editing existing themes using ThemeDreamer is very simple. But how would they look in various browser is important. And at this point you need some platform where you can run wordpress.

Xampp will let you test your wordpress blog or any other PHP, JSP etc site locally. This tutorial will tell you about how to configure xampp and about how to configure wordpress on xampp.

1
Setup XAMPP

  1. Download xampp lite. It is free, smaller in size & direct run.
  2. Extract it to C drive. Now you will have a folder on C drive with name XAMPPLITE.
  3. Open setup_xampp.bat resides in XAMPPLITE folder.

    xampp folder
  4. Once you get success message, open “xampp-control.exe”
  5. Start Apache & MySql from the opened window.

    xampp controler
  6. To check whether XAMPP is working fine. Open following link in any Internet browser.
    
    http://localhost/xampp/splash.php
    
    or 
    
    http://localhost/xampp/
    
    

2
Setup WordPress

  1. Download wordpress. It is also smaller in size & free to use.
  2. Extract it to C:/XAMPPLITE/HTDOCS
  3. Open http://localhost/xampp/splash.php in any internet browser. Click on phpMyAdmin (under Tools in left sidebar).
  4. You will get a window given in below image. Copy the text exact which is marked in red in below image & click on CREATE button. This is the database name which will be used by wordpress. You are free to give your desirable name.
    xampp phpMyAdmin
  5. Open wordpress directory (C:/XAMPPLITE/HTDOCS/WORDPRESS/).
  6. Rename wp-config-sample.php to wp-config.php. And Open this file.
  7. You will find following code in starting of the file.
/** The name of the database for WordPress */ 
define('DB_NAME', 'putyourdbnamehere'); 
/** MySQL database username */ 
define('DB_USER', 'usernamehere'); 
/** MySQL database password */ 
define('DB_PASSWORD', 'yourpasswordhere'); 
/** MySQL hostname */ 
define('DB_HOST', 'localhost');

Replace the above code with below code.

/** The name of the database for WordPress */ 
define('DB_NAME', 'wordpress'); 
/** MySQL database username */ 
define('DB_USER', 'root'); 
/** MySQL database password */ 
define('DB_PASSWORD', ''); 
/** MySQL hostname */ 
define('DB_HOST', 'localhost');
3
setup your blog

Open;


http://localhost/wordpress/wp-admin/install.php

or 

http://localhost/wordpress/wp-admin/.

This is one time process to setup your blog. This will provide you id & password that you can change after login. Note it down somewhere because it’ll not display it again and you can not. Use the same above link to login to dashboard (like a control panel of your blog).

To run your blog type http://localhost/wordpress/ in any internet browser like epic.

Finally, your local server is ready to run your blog. Now the turn is to install some themes and plug-ins. You may also need some sample posts if you want to save your time while testing.
You can try my plug-in initially. It’ll give you more options to test. Read other articles over wordpress. And remember to make a user locally to complete your testing.
If you had published your site and want to test its appearance on various browsers and platform the browsershots can help you.

Please leave your feed backs, suggestions and ideas for another easy setup of any blog.

Amit Gupta

Hey! this is Amit Gupta (amty). By profession, I am a Software Eng. And teaching is my passion. Sometimes I am a teacher, as you can see many technical tutorials on my site, sometimes I am a poet, And sometime just a friend of friends...

Leave a Reply

captcha