I've a VPS with on IP address. WHM/cPanel installed. I want to test a website, without pointing the DNS to the new server in this test period. I can change the host file on windows, but I won't be able to test the website on mobile phones in this way (iPhone for e.g. don't allow to change host file).

What can I do?

  • If you have public ip address you can test with ip instead of domain.,html
    – LeonidMew
    Commented Mar 2, 2019 at 22:04

2 Answers 2


You can create the test domain as a separate domain in CPanel and then reference it by using your primary domain followed by the test domain name. I.e., log in to CPanel as though you were going to manage your existing domain. Next, create your test domain. Then you can access it via http://myprimarydomain.com/mytestdomain.com/

No host file changes are necessary.


If you are using suphp as your PHP handler you can use if it is in a subdirectory or if it is in your public_html directory.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.