You can edit the content of a text file directly within the cPanel File Manager. This allows you to modify configuration files, scripts, or any other text-based files without needing to download and re-upload them.
Before you begin
You will need:
A cPanel account
Access to the File Manager tool
Editing a file in File Manager
Log in to your cPanel account.
Locate and click on File Manager under the Files section.
Navigate to the directory containing the file you wish to edit.
Select the file and click the Edit button in the top toolbar.
A text editor will open within the browser. Modify the content of the file as needed.
Click Save Changes in the top right corner of the editor.
Confirm the result
The editor will close, and the file will remain in its original location with your updated content.
You can verify the changes by clicking View (if available) or by refreshing the File Manager view to ensure the file remains accessible.
If the file is not editable
If you cannot click the Edit button or the editor does not open, the file may have restricted permissions or be owned by a different system user.
Check the file permissions in the File Manager list. Standard files should typically have
0644permissions.If the file is owned by the system (e.g., a core server configuration file), you will need to contact Hostek support to request a modification.
Limitations
The File Manager editor is intended for text-based files (such as .txt, .html, .css, .js, or .php).
Large files or binary files (such as images or compiled binaries) should not be edited in the File Manager.
Changes made to configuration files (like
.htaccess) may affect your website's functionality immediately upon saving.
