I have copied an uploaded a wordpress site from my classic hosting to my new cpanel hosting.
I want to test the site before I point the dns to the new server.
It is an addon domain, I have tried editing the hosts file to point the new site to the new ip address but I just get errors.
Is there an easy way to do this from cpanel?
Please take a look at this help article. This should guide you on how to preview your files without editing your DNS.