WordPress Local Installation

Install a local web server

First, you will install a web server locally on your own computer.  This will allow you to experiment with different designs, configurations, themes, and content management systems before your website goes live.  XAMPP is a package that contains Apache (the web server), MySQL (database server), PhP (a web scripting language) and several essential utilities that are required by modern content management systems.

  1. Download and install the latest version of XAMPP from http://www.apachefriends.org/en/xampp.html.
    You may need to temporarily disable antivirus software during installation.
  2. After installation, open the XAMPP control panel.
  3. Click the “Start” buttons next to Apache and MySQL (the other services are non-essential).
  4. Click the “Admin” button next to either Apache or MySQL.
  5. This will take you to http://localhost.  You should see the XAMPP splash page, asking you to choose your language.  After choosing “English” you will see a screen starting with “Congratulations: You have successfully installed XAMPP on this system!”

Create a database for WordPress

Content management systems like WordPress store all of your content in a database, not in static HTML files.  Before you can install and run WordPress, you need to create a new (empty) database on your web server to hold all of the content and settings for your website. XAMPP includes a simple web-based database tool called phpmyadmin that will allow you to create an empty database

  1. Go to http://localhost/phpmyadmin/.
  2. Select the “Databases” tab.
  3. Enter a name for your new wordpress database (e.g. “wordpress” or “wp”), and then click “Create”.

Remember the name of your database, because you will need it the later step.

Install WordPress

Now that you have a functioning web server and an empty database, you can download and install the latest version of WordPress.

  1. Download the latest version of WordPress here http://wordpress.org/latest.zip.
  2. Extract the contents of the file into the following directory:
    Windows:  C:\xampp\htdocs\
    Mac:  /Applications/XAMPP/htdocs/
    This should automatically create a subdirectory C:\xampp\htdocs\wordpress.
  3. Create a new file “wp-config.php” in the WordPress directory. There are several ways to do this:
    1. Duplicate the file “wp-config-sample.php” and rename the duplicate as “wp-config.php”.
    2. Open the file “wp-config-sample.php” in your favorite text editor or Adobe Dreamweaver. Save as “wp-config.php”. NOTE: Be sure that you do not overwrite “wp-config-sample.php”.
  4. Edit the following lines in wp-config.php:
    define('DB_NAME', 'wordpress');
    define('DB_USER', 'root');
    define('DB_PASSWORD', ' ');

    Note:  the DB_NAME must match what you chose earlier for the database name.

  5. Go to http://localhost/wordpress to complete the installation.
  6. You are now ready to create your site. Follow the instructions to login and create your site.

Helpful Links and Resources