1)
Download and install xampp server for windows:
http://www.apachefriends.org/en/xampp-windows.html#646
2)
Create a db (name: wordpress) after running xamp server on xp:
http://localhost/phpmyadmin/
3)
Paste this selecting exact lines (in C:\www\blog.yourdomain.com\wp-config.php (note: file name may require renaming wp-config_sample.php to wp-config.php. I create www folder in c: and keep my virtual host there))
define(‘DB_NAME’, ‘wordpress’); // The name of the database
define(‘DB_USER’, ‘root’); // Your MySQL username (you can create your own user giving it all privileges to get this job done)
define(‘DB_PASSWORD’, ”); // …and password
define(‘DB_HOST’, ‘localhost’); // you can keep localhost or blog.yourdomain.com here
4)
Setting virtual host edit:
C:\WINDOWS\system32\drivers\etc\hosts
add following:
127.0.0.1 blog.yourdomain.com # you can write here anything you want but make sure same named folder or at least same virtual host should be in your xampp vhost file (C:\xampp\apache\conf\extra\httpd-vhosts.conf)
5)
Add this (in C:\xampp\apache\conf\extra\httpd-vhosts.conf):
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot c:/xampp/htdocs/
# change this line with your htdocs folder
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot “c:\www\blog.yourdomain.com”
ServerName blog.yourdomain.com
<Directory “c:\www\blog.yourdomain.com”>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
6)
This has been tested before forming in numbered steps
Troubleshooting:
- Make sure no spelling mistakes
- Make sure you don’t forget the password
- Make sure you have followed exact steps
- Make sure you have server running properly
Version and dates:
Xamp version 1.7.1
Wordpress Version 2.7
Windows XP SP3
July 23, 2009
07/22/09
Tweet This Post