{"id":7419,"date":"2022-04-18T09:01:29","date_gmt":"2022-04-18T09:01:29","guid":{"rendered":"https:\/\/chemicloud.com\/kb\/?post_type=ht_kb&#038;p=7419"},"modified":"2022-04-18T09:01:29","modified_gmt":"2022-04-18T09:01:29","slug":"how-to-edit-a-file-using-cpanels-file-manager","status":"publish","type":"ht_kb","link":"https:\/\/chemicloud.com\/kb\/article\/how-to-edit-a-file-using-cpanels-file-manager\/","title":{"rendered":"How to View or Edit a File Using cPanel&#8217;s File Manager"},"content":{"rendered":"<p>In this tutorial, you will learn how to use cPanel&#8217;s editors to view and edit files directly on the webserver, without using an FTP client.<\/p>\n<h4 id=\"The-File-Manager-editors\"><span id=\"the-file-manager-editors\">The File Manager editors<\/span><\/h4>\n<p>When you edit a file using cPanel&#8217;s File Manager, you can make immediate changes to your website without uploading a new version of the file. cPanel has two editors that you can use to edit files directly on the webserver:<\/p>\n<ul>\n<li>A plain text editor for editing text files. This editor is used with plain text files, such as configuration files.<\/li>\n<li>An HTML Editor that is intended for use with HTML files. This editor provides WYSIWYG (What You See Is What You Get) functionality. It provides many of the features that users of word processing programs are familiar with, such as spell check, formatting toolbars, etc.<\/li>\n<\/ul>\n<p>Additionally, if you just want to view a file&#8217;s contents, you can do so without opening the file in an editor.<\/p>\n<h4 id=\"Viewing-a-file\"><span id=\"how-to-view-a-file-using-cpanels-file-manager\">How to View a File Using cPanel&#8217;s File Manager<\/span><\/h4>\n<p>You may not always need to edit a file. If you just want to take a quick look at a file&#8217;s contents, you can view it without opening an editor.<\/p>\n<p>To view a file in File Manager, follow these steps:<\/p>\n<ol>\n<li>Log in to cPanel.<\/li>\n<li>In the\u00a0<strong><span class=\"UI\">FILES<\/span><\/strong>\u00a0section of the cPanel home screen, click\u00a0<em><strong><span class=\"UI\">File Manager<\/span><\/strong><\/em>:&nbsp;<\/li>\n<li>In the File Manager main window, select the file that you want to view.<\/li>\n<li>Click the\u00a0<em><strong><span class=\"UI\">View<\/span><\/strong><\/em>\u00a0icon:\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/04\/View-file-in-cPanels-File-Manager.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-7420\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/04\/View-file-in-cPanels-File-Manager-783x393.png\" alt=\"\" width=\"643\" height=\"323\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/04\/View-file-in-cPanels-File-Manager-783x393.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/04\/View-file-in-cPanels-File-Manager-300x150.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/04\/View-file-in-cPanels-File-Manager-768x385.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/04\/View-file-in-cPanels-File-Manager-50x25.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/04\/View-file-in-cPanels-File-Manager-1536x770.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/04\/View-file-in-cPanels-File-Manager-2048x1027.png 2048w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/04\/View-file-in-cPanels-File-Manager-60x30.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/04\/View-file-in-cPanels-File-Manager-100x50.png 100w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>The file&#8217;s contents appear on a new page.<\/li>\n<\/ol>\n<h4 id=\"Editing-a-file-using-the-plain-text-editor\"><span id=\"how-to-edit-a-file-using-the-plain-text-editor-in-file-manager\">How to Edit a File Using the Plain Text Editor in File Manager<\/span><\/h4>\n<p>To edit a plain text file, follow these steps:<\/p>\n<ol>\n<li>Log in to cPanel.<\/li>\n<li>In the\u00a0<span class=\"UI\">FILES<\/span>\u00a0section of the cPanel home screen, click\u00a0<span class=\"UI\">File Manager<\/span>:&nbsp;<\/li>\n<li>In the File Manager main window, select the file that you want to edit.<\/li>\n<li>Click the\u00a0<em><strong><span class=\"UI\">Edit<\/span><\/strong><\/em>\u00a0icon:<br \/>\n<a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/04\/Edit-file-in-cPanels-File-Manager.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-7421\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/04\/Edit-file-in-cPanels-File-Manager-783x393.png\" alt=\"\" width=\"643\" height=\"323\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/04\/Edit-file-in-cPanels-File-Manager-783x393.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/04\/Edit-file-in-cPanels-File-Manager-300x150.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/04\/Edit-file-in-cPanels-File-Manager-768x385.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/04\/Edit-file-in-cPanels-File-Manager-50x25.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/04\/Edit-file-in-cPanels-File-Manager-1536x770.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/04\/Edit-file-in-cPanels-File-Manager-2048x1027.png 2048w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/04\/Edit-file-in-cPanels-File-Manager-60x30.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/04\/Edit-file-in-cPanels-File-Manager-100x50.png 100w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/a><\/p>\n<p>&nbsp;<\/li>\n<li>Select the character set encoding that the file uses. The default is\u00a0<strong><span class=\"UI\">utf-8<\/span><\/strong>\u00a0(Unicode).\n<div class=\"important msg-box\">Make sure that you select the correct character encoding for the file. Otherwise, the file may become corrupted.<\/div>\n<\/li>\n<li>Click\u00a0<em><strong><span class=\"button\">Edit<\/span><\/strong><\/em>. The file&#8217;s contents appear in a new page, ready for editing.<\/li>\n<li>To save your changes, click\u00a0<em><strong><span class=\"button\">Save Changes<\/span><\/strong><\/em>.\n<div class=\"tip msg-box\">If you do not want to save your changes, just close the page.<\/div>\n<\/li>\n<li>To close the editor, click\u00a0<em><strong><span class=\"button\">Close<\/span><\/strong><\/em>.<\/li>\n<\/ol>\n<p>That&#8217;s it! Now you know how to view or edit a file in cPanel using the File Manager&#8217;s plain text editor.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you will learn how to use cPanel&#8217;s editors to view and edit files directly on the webserver, without using an FTP client. The File Manager editors When you edit a file using cPanel&#8217;s File Manager, you can make immediate changes to your website without uploading a new&#8230;<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"ht-kb-category":[36],"ht-kb-tag":[],"class_list":["post-7419","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-cpanel"],"_links":{"self":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/7419","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/comments?post=7419"}],"version-history":[{"count":1,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/7419\/revisions"}],"predecessor-version":[{"id":7422,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/7419\/revisions\/7422"}],"wp:attachment":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/media?parent=7419"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=7419"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=7419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}