WPGarage has a neat tip that explains how to install WordPress without using a domain name. As, you know, WordPress cann't be installed on a server that doesn't have a domain name pointed at it. So here's how you can fake this by making your computer think that the new site installation should be displayed as http://www.xyz.
The trick best suite the case, where you're installing a new WordPress site, but at the same time the old site needs to stay up until the very last minute, where a simple DNS change will switch to the new site.
The trick can perform on Windows, Linux/Unix and Mac OSX.
- Install WordPress on the new server via Fantastico, Quick Install, or something like that.
- Find the following file in Windows: ?C:\Windows\System32\drivers\etc\hosts. Open hosts in Notepad or another text editor.
- Add the following line to the end of the file:
Where 123.45.678.90 is the IP address of the new server, and mysite.com is the domain name that powers the existing site.
- Save the file. Now visit mysite.com in your browser, and you'll see your new WordPress installation.
- That's it!