How to Install Wordpress on XAMPP

Posted by Unknown on 7:11 PM with No comments
The goal of this guide is to show web designers how to install Wordpress [1] (2.8 or above) locally on their computers for the purpose of designing and testing Wordpress themes. Wordpress requires that the computer you are installing to has a web server (such as Apache, Litespeed, or IIS), PHP 4.3 or greater, and MySQL 4.0 or greater.

XAMPP [2] is an easy to install web server environment, which has all the previously mentioned components. All of the following instructions are based on the assumption that you have a XAMPP installation running locally on your machine. This tutorial does not discuss the installation of XAMPP. For more information about XAMPP, go to the official XAMPP (http://www.apachefriends.org/en/xampp.html) web site.

Steps

  1. Install Wordpress on XAMPP Step 1.jpg
    1
    Download and save the latest version of Wordpress from the following link:

    http://wordpress.org/latest.zip
  2. Install Wordpress on XAMPP Step 3.jpg
    2
    Extract the contents of the ZIP file called "wordpress.zip", which was downloaded in step 1, to the htdocs folder within the XAMPP directory.If ZIP file extracted properly there should be a new directory called "wordpress" within the \xampp\htdocs directory. Before the process can move forward, please ensure that the web server environment is running properly.
  3. Install Wordpress on XAMPP Step 4.jpg
    3
    Go to the XAMPP main page by opening a web browser and entering the following URL:

    http://localhost/xampp/ .
  4. Install Wordpress on XAMPP Step 5.jpg
    4
    Select the link called "phpMyAdmin" on the lower left side of the menu or by entering the following URL:

    http://localhost/xampp/phpmyadmin .
  5. Install Wordpress on XAMPP Step 6.jpg
    5
    At the phpMyAdmin main page, there will be an area in the middle of the screen called "MySQL localhost". From this section a new database will be created for use by the Wordpress installation.
    • In the field labeled "Create new database" enter the name "wordpress". From the dropdown labeled "Collation" select "utf8_unicode_ci". Then press the button labeled "Create".
      Install Wordpress on XAMPP Step 6Bullet1.jpg
    • If the database entry was created successfully the message "Database wordpress has been created" should be displayed.
      Install Wordpress on XAMPP Step 6Bullet2.jpg
  6. Install Wordpress on XAMPP Step 7.jpg
    6
    Using the Windows Explorer navigate to the xampp\htdocs\wordpress directory. Open the file called "wp-config-sample.php" within the wordpress directory.
  7. Install Wordpress on XAMPP Step 8.jpg
    7
    Once the file has been opened edit the following lines: /** The name of the database for WordPress */ define('DB_NAME', 'putyourdbnamehere'); ==> change 'putyourdbnameheree' to 'wordpress' /** MySQL database username */ define('DB_USER', 'usernamehere'); ==> change 'usernamehere' to 'root' /** MySQL database password */ define('DB_PASSWORD', 'yourpasswordhere'); ==> change 'yourpasswordhere' to ' ' (leave it blank)
  8. Install Wordpress on XAMPP Step 9.jpg
    8
    When the file has been edited as described in the previous step, save a copy of the file as "wp-config.php" in the wordpress directory and close the file.
  9. Install Wordpress on XAMPP Step 10.jpg
    9
    Go to the Wordpress Installation page by opening a web browser and entering the following URL:

    http://localhost/wordpress/wp-admin/install.php .
  10. Install Wordpress on XAMPP Step 11.jpg
    10
    Enter a title for the blog in the field labeled "Blog Title". Enter an email address in the field labeled "Your E-mail". Then press the button labeled "Install Wordpress".
  11. Install Wordpress on XAMPP Step 12.jpg
    11
    If the information in the previous step was entered correctly there should be a new screen titled "Success!". This screen presents a username called "admin" and a temporary password. It is a randomly generated password so it is important to make note of it until a new password has been selected. Press the button labeled "Log In".
  12. Install Wordpress on XAMPP Step 13.jpg
    12
    At the Log In screen type the word "Admin" in the field labeled "Username" and type the temporary password, which was created in the previous step, in the field labeled "Password". Press the button labeled "Log In".
  13. Install Wordpress on XAMPP Step 14.jpg
    13
    If the log in was successful then the Wordpress Dashboard appears. There is a notice which states that an auto-generated password is being used and to change it to something easier to remember. The link labeled "Yes. Take me to my profile page" allows the temporary password to be changed. Once the password has been changed editing of the content and themes can begin.