File Manager can make a focused change to a website text or configuration file. Saving writes directly to the hosting account, so a small typo in PHP, JSON or server configuration can affect the live application.
IN THIS ARTICLE
What you need before you begin
Confirm the exact file and domain, then download a copy before editing. If the directory belongs to a Git deployment, use that project’s deployment workflow so a manual edit is not lost or put the repository out of sync. Avoid simultaneous edits in two browser tabs.
01 Edit a text file in cPanel File Manager
- Open File Manager and navigate to the file. Use View or Download first if you only need to inspect it.
- Select the single file and choose Edit. Confirm the existing character encoding when prompted. If the text appears corrupted, cancel rather than saving it under a guessed encoding.
- Make the smallest intended change and preserve the surrounding syntax, quoting and line endings where relevant. Use a plain code editor for configuration, not a visual HTML editor.
- Save the changes, then reopen or download the file to verify that the intended text was written.
- Test the affected page or application action immediately while the original backup is easy to restore.
Confirm the expected result
Check both the visible result and the application error log. A saved file is not proof that the edited code or configuration is valid.
How do I recover if a File Manager edit breaks the site?
If the site fails, restore the original file and retest before making another change. Very large files may exceed the built-in editor’s limit; download, edit locally and upload carefully. Never paste a complete configuration replacement without accounting for existing service-specific settings.