Publish files to the document root of the intended domain, rather than assuming all websites use the same folder.
Follow these steps
In cPanel → Domains, identify the domain’s Document Root. The primary domain commonly uses public_html.
Create a backup of the existing files and database before replacing a working website.
Open File Manager, enter the correct document root and upload your website archive. Extract it there.
Check that index.php or index.html is at the intended root, not inside an accidental extra folder. Remove installation archives after checking extraction.
If the application needs a database, configure its database credentials, then open the domain and test pages, images and forms.
If something does not work
A 403 error can indicate a missing index or access rules; 404 can indicate the wrong folder. Do not make all files writable to fix an error.
Related guides
- Create a database and connect your application
- Diagnose website errors: 403, 404, 500 and connection failures
- Back up website files and databases before changes
Open client area · Contact support
Reviewed: 17 November 2026