How to Install WordPress on XAMPP

WordPress Meets XAMPP

These are the steps on how to install WordPress on your computer using XAMPP. Working with WordPress on an actual Web Server is not always the best approach. This is especially true when designing, developing, modifying or customizing themes. Using an online server takes up a lot of time, puts the site and it’s contents at risk and uses unnecessary web resource.

To make developing WordPress and it’s themes a fun, hassle-free and efficient experience, it is better to use your computer as the Server that will hold the files while you tinker with them. This also gives you something to do in the event of losing internet connection. I’m assuming you have already installed xampp so these are just steps to install WordPress on xampp…

Install WordPress on XAMPP

  1. Download wordpress.zip from wordpress.org.
    Download WordPress
  2. Create a Folder inside the HTDOCS folder which is located in your XAMPP folder.
  3. Rename the new folder. We’ll use the name TEST for example.
    create a test folder in htdocs
  4. Extract the contents of wordpress.zip inside the TEST folder.
    install wordpress on xampp
  5. Make sure XAMPP is running then open your browser and type localhost in the address bar, press enter.
    how to install wordpress on xampp
  6. XAMPP homepage shows up, find and click phpMyAdmin.
  7. phpMyAdmin page shows up, click Databases on the menu.
  8. Create a database for your WordPress installation. We’ll use testdb for example.
    phpMyAdmin on wordpress
  9. Now that the needed files are in place, it is now time to actually install WordPress.
  10. Go to your TEST folder, find wp-config-sample.php and rename it to wp-config.php, then open it.
  11. Change the values of the following:
    /** The name of the database for WordPress */
    define('DB_NAME', 'database_name_here');
    
    /** MySQL database username */
    define('DB_USER', 'username_here');
    
    /** MySQL database password */
    define('DB_PASSWORD', 'password_here');
    
     /** MySQL hostname */
    define('DB_HOST', 'localhost');

    Change them to this:

    /** The name of the database for WordPress */
    define('DB_NAME', 'testdb');
    
    /** MySQL database username */
    define('DB_USER', 'root');
    
    /** MySQL database password */
    define('DB_PASSWORD', '');
    
    /** MySQL hostname */
    define('DB_HOST', 'localhost');
  12. The password is left blank. Save the changes and close wp-config.php.
  13. Go back to your browser and type this in the address bar:
    localhost/test/wp-admin/install.php, press enter.
  14. Fill up the WordPress Installation Form and you are done.
  15. To visit your WordPress site in XAMPP,
    type this in the address bar: localhost/test, press enter.
    Bookmark it so you won’t have to type it every time you view your site.

It’s really very easy to install wordpress on xampp, it just has a lot of steps to follow.

Share This Post :

8 Comments

Add a Comment
  1. Thanks very useful

    1. You’re welcome 🙂

  2. easy to follow. successfully don. thanks

  3. Thanks a lot chum

  4. thanx saved my job

  5. Good tutorial. That’s the perfect way to test WordPress in your own computer without installations using XAMPP Lite

Leave a Reply

Anything that resembles spam is deleted. Keyword names are also changed or deleted.

Note: When posting code, enclose it in pre and code tags.
e.g. <pre><code> Add code here </code></pre>

ronangelo © 2012 - 2016 Frontier Theme
css.php