<\/figure><\/div>\n\n\n\nOr 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\nEach 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\nTo 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\nThat 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\nTo 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\nYou'll come to the editing page, which looks like this.<\/p>\n\n\n\n
<\/figure><\/div>\n\n\n\nWhen you've added what you want to the file, click \"Save Changes\".<\/p>\n\n\n\n
<\/figure><\/div>\n\n\n\nAnd finally, to delete the file, make sure it's highlighted and press \"Delete\".<\/p>\n\n\n\n
<\/figure><\/div>\n\n\n\nYou'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\nHow 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\nHow to edit wp-config.php in cPanel:<\/strong><\/p>\n\n\n\nLogin to cPanel<\/li> Open File Manager<\/li> Click on wp-config.php<\/em><\/li>Click \"Edit\"<\/li> Make your changes<\/li> Click \"Save Changes\" and close the window.<\/li><\/ol>\n\n\n\n <\/figure><\/div>\n\n\n\nYou'll find the debug line almost at the bottom of wp-config.php<\/em>.<\/p>\n\n\n\nTo turn testing mode on, the code is:<\/p>\n\n\n\n
define('WP_DEBUG', true);<\/code><\/pre>\n\n\n\nTo turn testing mode off, the code is:<\/p>\n\n\n\n
define('WP_DEBUG', false);<\/code><\/pre>\n\n\n\nThe capitalization of WP_DEBUG<\/em> is important, the capitalization of true\/false is not.<\/p>\n\n\n\nTurning 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\nThis will save the errors to \/wp-content\/debug.log<\/em>.<\/p>\n\n\n\nMake 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":"\n
How To Edit Files In cPanel<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n