Second, suPHP and Temporary URLs (http://server.lunarpages.com/~user):PHP will not work with the Temporary URLs that we provide before a site's nameservers are changed to ours (ASP and JSP are similarly affected and the following will work for them as well). You can send an email to
support@lunarpages.com and request a temporary subdomain or you can add an entry to your computer's DNS resolver file. Both will accomplish the same goal, though with the latter you do not have to wait and can change it at any time.
Before beginning, you will need to know the server that your account is on and that server's IP address. The server you are on can be found in the Account Information email sent to you when the account was confirmed.
If you are not familiar with how to perform a lookup, please go here:
http://centralops.net/co/ and click on NSLOOKUP on the Left column. Then type in the server that your account is on where it says
domain and click the
go button. The result will provide the IP address, here is an example using hydra.lunarpages.com
Answer records
name class type data time to live
hydra.lunarpages.com IN A 64.235.234.13 1800s (30m)
In the above example, 64.235.234.13 is the IP address of the server.
I have listed numerous Operating Systems below and where the resolver file is located. If you use one that is not listed, PM me and I will add it:
Windows 95/98/ME- Filename = hosts
- Location =
x:\Windows
Windows 2000- Filename = hosts
- Location =
x:\WINNT\System32\Drivers\Etc
Windows XP- Filename = hosts
- Location =
x:\Windows\System32\Drivers\Etc
Mac OS X 10.x- Filename = hosts
- Location = /etc
Linux (All distros I am aware of)- Filename = hosts
- Location = /etc
Unix (All distros I am aware of)- Filename = hosts
- Location = /etc
1.) Open the
hosts file using Notepad, VI, or similar text editor. Do not use a word processor.
2.) Your file should contain the following line:
127.0.0.1 localhost
3.) Add your server and domain information so that it looks like this:
127.0.0.1 localhost
64.235.234.13 yourdomain.com
64.235.234.13 www.yourdomain.com
Being sure to replace 64.235.234.13 with the IP address of the server your account is on.
4.) Create, upload and test your site. You will not be able to access your regular site while this file is modified as above.
5.) When testing is complete, remove the line that you added to the
hosts file and change your nameservers as you normally would.