{"id":1399,"date":"2019-11-29T14:41:08","date_gmt":"2019-11-29T06:41:08","guid":{"rendered":"https:\/\/www.intelliwolf.com\/?p=1399"},"modified":"2019-12-02T16:03:22","modified_gmt":"2019-12-02T08:03:22","slug":"edit-files-cpanel","status":"publish","type":"post","link":"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/edit-files-cpanel\/","title":{"rendered":"How To Edit Files In cPanel"},"content":{"rendered":"\n

Sometimes we need to make small changes to a file on a server. It's quick and easy to just pull up cPanel and make our changes there.<\/p>\n\n\n\n

We also have a tutorial on editing files through FTP<\/a> if you prefer to do it that way.<\/p><\/blockquote>\n\n\n\n

How to edit files in cPanel<\/strong><\/p>\n\n\n\n

  1. Login to cPanel<\/li>
  2. Go to File Manager<\/li>
  3. Click on the file you want to edit, then click \"Edit\"<\/li>
  4. Make any changes<\/li>
  5. Click \"Save Changes\", wait for it to save, then click \"Close\".<\/li><\/ol>\n\n\n\n

    Let's go through those steps in detail.<\/p>\n\n\n\n

    Login to cPanel. This will often be something like https:\/\/yourdomain.com\/cpanel or https:\/\/yourdomain.com:2083<\/p>\n\n\n\n

    You should get a login screen that looks a bit like this:<\/p>\n\n\n\n

    \"\"<\/figure><\/div>\n\n\n\n

    Once you've entered your cPanel login (remember this will be different from your WordPress login details) you'll get to the control panel.<\/p>\n\n\n\n

    There are a couple of themes, so yours might look like this:<\/p>\n\n\n\n

    \"\"<\/figure><\/div>\n\n\n\n

    or this:<\/p>\n\n\n\n

    \"\"<\/figure><\/div>\n\n\n\n

    Or something else.<\/p>\n\n\n\n

    The order inside cPanel might be different too. But somewhere in there will be \"File Manager\". Click that.<\/p>\n\n\n\n

    That will bring you to the File Manager<\/em> page.<\/p>\n\n\n\n

    Each server is setup differently, so you may see your public folder immediately, or you might need to open the public folder. This will usually be called \"public_html\" or the name of your domain, depending on your setup.<\/p>\n\n\n\n

    This functions pretty much exactly the same as the file and folder structure on your computer.<\/p>\n\n\n\n

    \"\"<\/figure><\/div>\n\n\n\n

    To show you the main editing features, let's add a file called, \"example.html\", add some html, save it, then delete it.<\/p>\n\n\n\n

    When you're in the public folder, click \"File\".<\/p>\n\n\n\n

    \"\"<\/figure><\/div>\n\n\n\n

    That will bring up a dialogue box. Put the name of your file in the box as shown, then click \"Create New File\".<\/p>\n\n\n\n

    This will create a blank file with the name you entered.<\/p>\n\n\n\n

    \"\"<\/figure><\/div>\n\n\n\n

    To edit this file, make sure the file is highlighted, then click \"Edit\" in the top bar.<\/p>\n\n\n\n

    \"\"<\/figure><\/div>\n\n\n\n

    You'll come to the editing page, which looks like this.<\/p>\n\n\n\n

    \"\"<\/figure><\/div>\n\n\n\n

    When you've added what you want to the file, click \"Save Changes\".<\/p>\n\n\n\n

    \"\"<\/figure><\/div>\n\n\n\n

    And finally, to delete the file, make sure it's highlighted and press \"Delete\".<\/p>\n\n\n\n

    \"\"<\/figure><\/div>\n\n\n\n

    You'll get a dialogue box asking if you're sure you really do want to delete the file.<\/p>\n\n\n\n

    I usually check the \"Skip the trash and permanently delete the files\" box.<\/p>\n\n\n\n

    Click \"Confirm\" and the file will be deleted.<\/p>\n\n\n\n

    You can delete multiple files at a time by holding CTRL and clicking.<\/p>\n\n\n\n

    \"\"<\/figure><\/div>\n\n\n\n

    How to edit wp-config.php in cPanel<\/h2>\n\n\n\n

    One of the most common files that WordPress website owners will edit in cPanel is wp-config.php<\/em>, particularly to turn on and off debug mode.<\/p>\n\n\n\n

    How to edit wp-config.php in cPanel:<\/strong><\/p>\n\n\n\n

    1. Login to cPanel<\/li>
    2. Open File Manager<\/li>
    3. Click on wp-config.php<\/em><\/li>
    4. Click \"Edit\"<\/li>
    5. Make your changes<\/li>
    6. Click \"Save Changes\" and close the window.<\/li><\/ol>\n\n\n\n
      \"\"<\/figure><\/div>\n\n\n\n

      You'll find the debug line almost at the bottom of wp-config.php<\/em>.<\/p>\n\n\n\n

      To turn testing mode on, the code is:<\/p>\n\n\n\n

      define('WP_DEBUG', true);<\/code><\/pre>\n\n\n\n

      To turn testing mode off, the code is:<\/p>\n\n\n\n

      define('WP_DEBUG', false);<\/code><\/pre>\n\n\n\n

      The capitalization of WP_DEBUG<\/em> is important, the capitalization of true\/false is not.<\/p>\n\n\n\n

      Turning debugging on will display any error messages on the page they occur, usually at the top of the page.<\/p>\n\n\n\n

      If you don't want to display errors, but want to log them to a file, the code is:<\/p>\n\n\n\n

      define('WP_DEBUG', true);\ndefine('WP_DEBUG_LOG', true);\ndefine('WP_DEBUG_DISPLAY', false);<\/code><\/pre>\n\n\n\n

      This will save the errors to \/wp-content\/debug.log<\/em>.<\/p>\n\n\n\n

      Make sure you save your changes.<\/p>\n\n\n\n

      \"\"<\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"

      Sometimes we need to make small changes to a file on a server. It’s quick and easy to just pull up cPanel and make our changes there. We also have a tutorial on editing files through FTP if you prefer to do it that way. How to edit files in cPanel Login to cPanel Go<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"yoast_head":"\nHow To Edit Files In cPanel<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Edit Files In cPanel\" \/>\n<meta property=\"og:description\" content=\"Sometimes we need to make small changes to a file on a server. It's quick and easy to just pull up cPanel and make our changes there. We also have a tutorial on editing files through FTP if you prefer to do it that way. How to edit files in cPanel Login to cPanel Go\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/\" \/>\n<meta property=\"og:site_name\" content=\"Intelliwolf\" \/>\n<meta property=\"article:published_time\" content=\"2019-11-29T06:41:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-12-02T08:03:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/intelliwolf.com\/wp-content\/uploads\/2019\/11\/2019-11-29-edit-files-cpanel-01.png\" \/>\n<meta name=\"author\" content=\"Mike Haydon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mike Haydon\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/\"},\"author\":{\"name\":\"Mike Haydon\",\"@id\":\"https:\/\/www.intelliwolf.com\/#\/schema\/person\/7209e3ff14822e4d70d5f194a310f343\"},\"headline\":\"How To Edit Files In cPanel\",\"datePublished\":\"2019-11-29T06:41:08+00:00\",\"dateModified\":\"2019-12-02T08:03:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/\"},\"wordCount\":569,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.intelliwolf.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/intelliwolf.com\/wp-content\/uploads\/2019\/11\/2019-11-29-edit-files-cpanel-01.png\",\"articleSection\":[\"Server\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/\",\"url\":\"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/\",\"name\":\"How To Edit Files In cPanel\",\"isPartOf\":{\"@id\":\"https:\/\/www.intelliwolf.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/intelliwolf.com\/wp-content\/uploads\/2019\/11\/2019-11-29-edit-files-cpanel-01.png\",\"datePublished\":\"2019-11-29T06:41:08+00:00\",\"dateModified\":\"2019-12-02T08:03:22+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/#primaryimage\",\"url\":\"https:\/\/intelliwolf.com\/wp-content\/uploads\/2019\/11\/2019-11-29-edit-files-cpanel-01.png\",\"contentUrl\":\"https:\/\/intelliwolf.com\/wp-content\/uploads\/2019\/11\/2019-11-29-edit-files-cpanel-01.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.intelliwolf.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Server\",\"item\":\"https:\/\/www.intelliwolf.com\/category\/server\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How To Edit Files In cPanel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.intelliwolf.com\/#website\",\"url\":\"https:\/\/www.intelliwolf.com\/\",\"name\":\"Intelliwolf\",\"description\":\"WordPress, Web Design and Coding Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.intelliwolf.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.intelliwolf.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.intelliwolf.com\/#organization\",\"name\":\"Intelliwolf\",\"url\":\"https:\/\/www.intelliwolf.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.intelliwolf.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/wp-content\/uploads\/intelliwolf-logo-300t.png\",\"contentUrl\":\"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/wp-content\/uploads\/intelliwolf-logo-300t.png\",\"width\":300,\"height\":100,\"caption\":\"Intelliwolf\"},\"image\":{\"@id\":\"https:\/\/www.intelliwolf.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.intelliwolf.com\/#\/schema\/person\/7209e3ff14822e4d70d5f194a310f343\",\"name\":\"Mike Haydon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.intelliwolf.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d5f4754fae310a04dede91d15e57c8a0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d5f4754fae310a04dede91d15e57c8a0?s=96&d=mm&r=g\",\"caption\":\"Mike Haydon\"},\"sameAs\":[\"https:\/\/intelliwolf.com\/about-mike-haydon\/\"]}]}<\/script>\n","yoast_head_json":{"title":"How To Edit Files In cPanel","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/","og_locale":"en_US","og_type":"article","og_title":"How To Edit Files In cPanel","og_description":"Sometimes we need to make small changes to a file on a server. It's quick and easy to just pull up cPanel and make our changes there. We also have a tutorial on editing files through FTP if you prefer to do it that way. How to edit files in cPanel Login to cPanel Go","og_url":"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/","og_site_name":"Intelliwolf","article_published_time":"2019-11-29T06:41:08+00:00","article_modified_time":"2019-12-02T08:03:22+00:00","og_image":[{"url":"https:\/\/intelliwolf.com\/wp-content\/uploads\/2019\/11\/2019-11-29-edit-files-cpanel-01.png"}],"author":"Mike Haydon","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Mike Haydon","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/#article","isPartOf":{"@id":"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/"},"author":{"name":"Mike Haydon","@id":"https:\/\/www.intelliwolf.com\/#\/schema\/person\/7209e3ff14822e4d70d5f194a310f343"},"headline":"How To Edit Files In cPanel","datePublished":"2019-11-29T06:41:08+00:00","dateModified":"2019-12-02T08:03:22+00:00","mainEntityOfPage":{"@id":"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/"},"wordCount":569,"commentCount":0,"publisher":{"@id":"https:\/\/www.intelliwolf.com\/#organization"},"image":{"@id":"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/intelliwolf.com\/wp-content\/uploads\/2019\/11\/2019-11-29-edit-files-cpanel-01.png","articleSection":["Server"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.intelliwolf.com\/edit-files-cpanel\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/","url":"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/","name":"How To Edit Files In cPanel","isPartOf":{"@id":"https:\/\/www.intelliwolf.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/#primaryimage"},"image":{"@id":"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/intelliwolf.com\/wp-content\/uploads\/2019\/11\/2019-11-29-edit-files-cpanel-01.png","datePublished":"2019-11-29T06:41:08+00:00","dateModified":"2019-12-02T08:03:22+00:00","breadcrumb":{"@id":"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.intelliwolf.com\/edit-files-cpanel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/#primaryimage","url":"https:\/\/intelliwolf.com\/wp-content\/uploads\/2019\/11\/2019-11-29-edit-files-cpanel-01.png","contentUrl":"https:\/\/intelliwolf.com\/wp-content\/uploads\/2019\/11\/2019-11-29-edit-files-cpanel-01.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.intelliwolf.com\/edit-files-cpanel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.intelliwolf.com\/"},{"@type":"ListItem","position":2,"name":"Server","item":"https:\/\/www.intelliwolf.com\/category\/server\/"},{"@type":"ListItem","position":3,"name":"How To Edit Files In cPanel"}]},{"@type":"WebSite","@id":"https:\/\/www.intelliwolf.com\/#website","url":"https:\/\/www.intelliwolf.com\/","name":"Intelliwolf","description":"WordPress, Web Design and Coding Tutorials","publisher":{"@id":"https:\/\/www.intelliwolf.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.intelliwolf.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.intelliwolf.com\/#organization","name":"Intelliwolf","url":"https:\/\/www.intelliwolf.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.intelliwolf.com\/#\/schema\/logo\/image\/","url":"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/wp-content\/uploads\/intelliwolf-logo-300t.png","contentUrl":"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/wp-content\/uploads\/intelliwolf-logo-300t.png","width":300,"height":100,"caption":"Intelliwolf"},"image":{"@id":"https:\/\/www.intelliwolf.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.intelliwolf.com\/#\/schema\/person\/7209e3ff14822e4d70d5f194a310f343","name":"Mike Haydon","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.intelliwolf.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d5f4754fae310a04dede91d15e57c8a0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d5f4754fae310a04dede91d15e57c8a0?s=96&d=mm&r=g","caption":"Mike Haydon"},"sameAs":["https:\/\/intelliwolf.com\/about-mike-haydon\/"]}]}},"_links":{"self":[{"href":"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/wp-json\/wp\/v2\/posts\/1399"}],"collection":[{"href":"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/wp-json\/wp\/v2\/comments?post=1399"}],"version-history":[{"count":0,"href":"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/wp-json\/wp\/v2\/posts\/1399\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/wp-json\/wp\/v2\/media?parent=1399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/wp-json\/wp\/v2\/categories?post=1399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/wp-json\/wp\/v2\/tags?post=1399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}