2008
07.03
07.03
Ever want to edit your website locally with a copy of your live site? This is how I duplicated rareexample.ca on a local machine, minimal work.
- Get and install Wamp. To avoid headaches, install in your c:\
- Ftp your server files to C:\wamp\www\rareexample
- Backup your Database locally
- Open your database file, search and replace rareexample.ca for rareexample.dev
- Run wamp, it will put a little icon in your tray, left click it, goto Apache, open http.conf
- Go to the bottom and paste this
NameVirtualHost 127.0.0.1 <VirtualHost 127.0.0.1> ServerName localhost DocumentRoot "c:/wamp/www/" </VirtualHost> <VirtualHost 127.0.0.1> ServerName www.rareexample.dev DocumentRoot "c:/wamp/www/rareexample/" </VirtualHost> - Save the file
- Left click wamp icon, restart all services
- edit your hosts file located in \WINDOWS\system32\drivers\etc
- add this to it and save it
127.0.0.1 www.rareexample.dev - Click start, run, paste this
ipconfig /flushcache - Have a beer.
P.s. if you’re wanting to access your windows server from a mac. Try this
- Open terminal
- pico /private/etc/hosts
- add the 2 similar lines as the windows host file but instead of 127.0.0.1, put your xp boxe’s lan ip
- dscacheutil -flushcache on mac
- Don’t forget to change your httpd.conf and add VirtualHost entries for your local ip

Just noticed a few errors in this. Fixed and should work fine.