View your site on our server before DNS has been changed (using local host file)
PrintThis is useful when you want to test your site before changing your DNS, before you register the domain, or if its recently been registered and isn't yet resolving.
For Windows users:
Go to the Start Menu and search for Notepad.
Right click Notepad and select 'Run as administrator'.
Click Continue if prompted - you may need to enter your administrator password before being able to do this.
When Notepad opens, click File > Open.
In the File name field, type C:\Windows\System32\Drivers\etc\hosts
Click Open.
Now you need to enter the IP address of the server and your domain name. You should leave all other text as it is and simply add the extra lines to the end of the existing text.
You can obtain the server IP from your welcome email, or by looking in cPanel. If the IP was 123.123.123.123 and your site was domain.com, you'd add the following:
123.123.123.123 www.domain.com
123.123.123.123 domain.com
Click File > Save to save your changes.
Now when you visit domain.com, it will load from the IP you've put in the hosts file on the PC you've made this change on.
You should remove these lines to undo the change once you've finished doing your testing, just in case it causing confusion in the future.
To undo the changes, you simply follow the above instructions but instead of adding further lines, and simply remove the lines you added and save the file.
Was this answer helpful?
Related Articles
Official cPanel ManualClick here to view the Offiicial cPanel Manual, every question you have related to cPanel should be answered in this...
Official WHM ManualClick here to view the Offiicial WHM Manual, every question you have related to WHM should be answered in this manual.
Common Paths - PHP, SendMail, Perl, ImageMagick, Python, Curl etcHere are some commonly needed paths for scripts:
PHP: /usr/bin/phpPHP CLI: /usr/bin/php-cli Perl: /usr/bin/perl Git:...
Cant access your website/email/ftp? Server Status page says everything is online?It's likely that you've been blocked by our firewall. The server may appear as down because the firewall blocks all...
PHP Time Zone ErrorsIf you are seeing time or time zone error messages on your website, this can be solved by using a php.ini file....