How to Change Document Root in cPanel

This article explains how to change the document root for a domain in cPanel.

By Sahil SakpalUpdated Oct 21, 2026

Applies To

cPanel hosting

Symptoms

Website loading incorrect folder

Need to point domain to new directory

Cause (optional)

Document root path is incorrectly configured

Resolution

1. Log in to cPanel

2. Go to Domains

3. Locate your domain and click Manage

4. Find Document Root setting

5. Update the path (e.g., /public_html/newfolder)

6. Click Update

Verification

Website loads from new directory

Correct content displayed

Troubleshooting

Check file permissions

Ensure files exist in new folder

  • document root
  • file path

Was this article helpful?