Language / Dil
All Posts Domain Names Business Email SSL Certificates Hosting Trademark Registration Metutech.Design AI-Powered Website Builder ↗ More Back to metunic.com.tr
Hosting

How to Edit a File in cPanel File Manager

We walk you through opening and editing a file on your website with cPanel's built-in File Manager. We show how to make changes with the Edit or HTML Edit option and save them.

2 min read

Contents
  1. Steps to Edit a File
  2. The Difference Between Edit and HTML Edit
  3. What Is in the HTML Editor Window?
  4. Things to Check Before Editing

You can edit the files on your website with cPanel's built-in File Manager.

File Manager is a cPanel tool that lets you view, upload and edit your website's files directly in your browser, without installing an FTP program. To fix a typo, change a link or make a small update to a configuration file, you don't need to download the file to your computer and upload it again.

Steps to Edit a File

  1. Log in to your cPanel account.
  2. In the Files section, click File Manager.
    File Manager icon in the cPanel Files section
  3. Go to the directory that contains the file.
  4. Right-click the file and choose Edit or HTML Edit from the menu.
    Right-click menu of a file with the Edit and HTML Edit options
  5. In the window that opens, click the Edit button.
    Edit button in the HTML Editor window
  6. Make your changes to the file and click Save Changes.
    Save Changes button in the file editor

Your file has been edited.

The Difference Between Edit and HTML Edit

When you right-click a file, the menu that opens contains the Download, View, Edit, HTML Edit, Move, Copy, Rename, Change Permissions, Delete and Compress options. There are two options for editing:

  • Edit: Opens the file in the code editor. You see and change the raw content of the file with line numbers. Suitable for text files, PHP, CSS and configuration files.
  • HTML Edit: Opens the HTML Editor offered for HTML files.

What Is in the HTML Editor Window?

When you click an editing option, the window that opens shows the path of the file you are about to edit (e.g. /public_html/MyFile.html) on the You will be editing line. In this window you can choose the address where the file will be served from and the character encoding the file will be opened with. Check that the encoding is set to utf-8 so that Turkish characters display correctly. If you don't want to see this window every time, you can turn off the encoding check with the Disable Encoding Check button. Then click the Edit button to move on to the editor; to give up, use the Cancel button.

Things to Check Before Editing

  • Before making changes, save a copy of the file to your computer with the Download option in the right-click menu. If something goes wrong, you can upload the old file again.
  • Check the Editing field at the top of the editor to make sure the right file is open.
  • If you click Close without saving, your changes will not be saved.
  • After saving, open your website in a browser to check that the change looks as expected.

Was this article helpful?

Still stuck? Our support team is here to help. Tell us your question and our experts will help you.

Help & Support
Hosting

You may also like

Hosting

How to Retrieve a CSR from cPanel

If you lost a CSR you previously generated in cPanel, we show step by step how to retrieve it from the SSL/TLS section. We also explain how to copy the code in full, including its begin and end lines.