{"id":50377,"date":"2026-11-20T05:24:08","date_gmt":"2026-11-20T05:24:08","guid":{"rendered":"https:\/\/kickhost.com\/guides\/how-to-edit-a-file-in-the-cpanel-file-manager\/"},"modified":"2026-11-28T09:02:46","modified_gmt":"2026-11-28T09:02:46","slug":"how-to-edit-a-file-in-the-cpanel-file-manager","status":"publish","type":"kickhost_tutorial","link":"https:\/\/kickhost.com\/en-ke\/guides\/how-to-edit-a-file-in-the-cpanel-file-manager\/","title":{"rendered":"How to Edit a File in the cPanel File Manager"},"content":{"rendered":"<p>File Manager lets you change website files from your browser without FTP. It is handy for quick fixes to configuration files or HTML pages.<\/p>\n<p>You can use cPanel&#8217;s built-in file manager to edit files on your website.<\/p>\n<p><strong>1.<\/strong> Log in to your cPanel account.<\/p>\n<p><strong>2.<\/strong> In the <strong>Files<\/strong> section, click on <strong>File Manager<\/strong>.<br \/><img decoding=\"async\" src=\"https:\/\/kickhost.com\/img\/filemanager-icon.gif\" alt=\"\" align=\"middle\" loading=\"lazy\"><\/p>\n<p><strong>3.<\/strong> Navigate to the directory where your file is located.<\/p>\n<p><strong>4.<\/strong> Right-click on the file. Then click on <strong>Edit<\/strong> or <strong>HTML Edit<\/strong> in the Context Menu. <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/kickhost.com\/img\/context-menu.gif\" alt=\"\" loading=\"lazy\"><\/p>\n<p><strong>5.<\/strong> In the <strong>HTML Editor<\/strong> window, click on <strong>Edit<\/strong>.<br \/><img decoding=\"async\" src=\"https:\/\/kickhost.com\/img\/filemanager-edit-menu.gif\" alt=\"\" loading=\"lazy\"><\/p>\n<p><strong>6. <\/strong>Make changes to the file and then click on <strong>Save Changes<\/strong>. <br \/><img decoding=\"async\" src=\"https:\/\/kickhost.com\/img\/edit-file-in-filemanager.gif\" alt=\"\" loading=\"lazy\"><\/p>\n<p>Your file has been successfully edited.<\/p>\n<h2>Back up before editing<\/h2>\n<p>Download or copy the file first. A small typing mistake in PHP or .htaccess can cause a 500 error. If that happens, restore your copy.<\/p>\n<h2>Pick the right editor<\/h2>\n<p>Use Edit for code and plain text files. HTML Edit shows a visual editor and is best for simple pages.<\/p>\n<h2>Frequently asked questions<\/h2>\n<p><strong>Why can I not save my changes?<\/strong> The file may be read-only or you may be in the wrong folder. Check permissions and try again.<\/p>\n<p><strong>Where are my website files?<\/strong> Usually in the public_html folder.<\/p>\n<h2>Related guides<\/h2>\n<ul>\n<li><a href=\"https:\/\/kickhost.com\/en-ke\/guides\/how-to-create-a-database-username-in-cpanel\/\">Create a database username<\/a><\/li>\n<li><a href=\"https:\/\/kickhost.com\/en-ke\/guides\/how-to-block-an-ip-address-to-deny-access-to-your-website\/\">Block an IP address<\/a><\/li>\n<\/ul>\n<p>Need cPanel hosting in Kenya? <a href=\"https:\/\/kickhost.com\/en-ke\/web-hosting\/\">See KickHost hosting plans<\/a> or <a href=\"https:\/\/kickhost.com\/en-ke\/contact\/\">contact our team<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Edit a file in cPanel File Manager with the code or HTML editor. Steps for KickHost customers in Kenya.<\/p>\n","protected":false},"featured_media":0,"template":"","class_list":["post-50377","kickhost_tutorial","type-kickhost_tutorial","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial\/50377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial"}],"about":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/types\/kickhost_tutorial"}],"version-history":[{"count":3,"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial\/50377\/revisions"}],"predecessor-version":[{"id":53378,"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial\/50377\/revisions\/53378"}],"wp:attachment":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/media?parent=50377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}