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.
- 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.
- After installation, open the XAMPP control panel.
- Click the “Start” buttons next to Apache and MySQL (the other services are non-essential).
- Click the “Admin” button next to either Apache or MySQL.
- 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
- Go to http://localhost/phpmyadmin/.
- Select the “Databases” tab.
- 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.
Now that you have a functioning web server and an empty database, you can download and install the latest version of WordPress.
- Download the latest version of WordPress here http://wordpress.org/latest.zip.
- Extract the contents of the file into the following directory:
This should automatically create a subdirectory C:\xampp\htdocs\wordpress.
- Create a new file “wp-config.php” in the WordPress directory. There are several ways to do this:
- Duplicate the file “wp-config-sample.php” and rename the duplicate as “wp-config.php”.
- 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”.
- 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.
- Go to http://localhost/wordpress to complete the installation.
- You are now ready to create your site. Follow the instructions to login and create your site.