Skip to content

Instantly share code, notes, and snippets.

@angeliquejw
Created July 24, 2013 15:00
Show Gist options
  • Save angeliquejw/6071381 to your computer and use it in GitHub Desktop.
Save angeliquejw/6071381 to your computer and use it in GitHub Desktop.
1. Create new directory and index.html 2. Update windows host file @ C:\windows\system32\drivers\etc\hosts (127.0.0.1 MySite.Dev) 3. Update httpd-vhosts file (see below) 4. Copy WordPress files to directory from step 1 5. Go to phpmyadmin, create user and database 6. Browse to site and let WordPress configure everything
<VirtualHost MyLocalSite.dev:80>
ServerAdmin postmaster @ MyLocalSite.dev
DocumentRoot "C:/xampp/htdocs/MyLocalSite.dev"
ServerName MyLocalSite.dev
ServerAlias www.MyLocalSite.dev
ErrorLog "logs/MyLocalSite.dev-error.log"
CustomLog "logs/MyLocalSite.dev-access.log" combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment