{"id":6430,"date":"2025-12-08T15:24:01","date_gmt":"2025-12-08T09:54:01","guid":{"rendered":"https:\/\/youstable.com\/blog\/?post_type=epkb_post_type_1&#038;p=4312"},"modified":"2025-12-08T15:24:04","modified_gmt":"2025-12-08T09:54:04","slug":"edit-wp-config-php-file","status":"publish","type":"post","link":"https:\/\/www.youstable.com\/blog\/edit-wp-config-php-file","title":{"rendered":"How to Edit wp config.php File in Cpanel?"},"content":{"rendered":"\n<p>WordPress is a popular open-source content management system that allows users to create, organize, manage, and edit their websites. The file \u201c<strong><em>wp_config.php<\/em><\/strong>\u201d is a core system file of WordPress CMS, and the users can edit the file to customizations. <\/p>\n\n\n\n<p>Follow my lead to edit the wp_config .php file in a few clicks. Users require access to the cPanel control panel credentials and create a backup of the WordPress site to ensure that they can recover from significant errors. <\/p>\n\n\n\n<p><strong>Step 1<\/strong>: <a href=\"https:\/\/youstable.com\/kb\/2022\/02\/22\/how-to-login-into-cpanel\/\" target=\"_blank\" rel=\"noreferrer noopener\">Log in to the control panel<\/a> with the correct credentials that YouStable sent to the registered email address. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1109\" height=\"371\" src=\"https:\/\/youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-1.png\" alt=\"wp-config.php\" class=\"wp-image-1525\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-1.png 1109w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-1-768x257.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-1-179x60.png 179w\" sizes=\"auto, (max-width: 1109px) 100vw, 1109px\" \/><\/figure>\n\n\n\n<p><strong>Step 2<\/strong>: Type \u201c<strong><em>file manager<\/em><\/strong>\u201d in the search bar and click on the first result. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1021\" height=\"226\" src=\"https:\/\/youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-2.png\" alt=\"wp-config.php\" class=\"wp-image-1524\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-2.png 1021w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-2-768x170.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-2-271x60.png 271w\" sizes=\"auto, (max-width: 1021px) 100vw, 1021px\" \/><\/figure>\n\n\n\n<p><strong>Step 3<\/strong>: Now, look\nfor the folder that says \u201c<strong><em>PUBLIC_HTML<\/em><\/strong>\u201d and double-click on it to open it. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1365\" height=\"552\" src=\"https:\/\/youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-3.png\" alt=\"wp-config.php\" class=\"wp-image-1523\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-3.png 1365w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-3-768x311.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-3-148x60.png 148w\" sizes=\"auto, (max-width: 1365px) 100vw, 1365px\" \/><\/figure>\n\n\n\n<p><strong>Step 4<\/strong>: The library of WordPress-installed folders shows up on your screen, and scroll down until you find \u201c<strong><em>wp.config.php<\/em><\/strong>\u201d in it.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1356\" height=\"464\" src=\"https:\/\/youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-4.png\" alt=\"wp-config.php\" class=\"wp-image-1522\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-4.png 1356w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-4-768x263.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-4-175x60.png 175w\" sizes=\"auto, (max-width: 1356px) 100vw, 1356px\" \/><\/figure>\n\n\n\n<p><strong>Step 5<\/strong>: Click on the \u201c<strong><em>wp.config.php<\/em><\/strong>\u201d to select it, and then click on the \u201c<strong><em>EDIT<\/em><\/strong>\u201d option to make changes to it. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1057\" height=\"332\" src=\"https:\/\/youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-5.png\" alt=\"wp-config.php\" class=\"wp-image-1521\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-5.png 1057w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-5-768x241.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-5-191x60.png 191w\" sizes=\"auto, (max-width: 1057px) 100vw, 1057px\" \/><\/figure>\n\n\n\n<p><strong>Step 6<\/strong>: A confirmation pop-up shows up on the screen, and click on \u201c<strong><em>EDIT<\/em><\/strong>\u201d to open the file. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1006\" height=\"370\" src=\"https:\/\/youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-6.png\" alt=\"wp-config.php\" class=\"wp-image-1520\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-6.png 1006w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-6-768x282.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-6-163x60.png 163w\" sizes=\"auto, (max-width: 1006px) 100vw, 1006px\" \/><\/figure>\n\n\n\n<p><strong>Step 7<\/strong>: A new window pop-up in the browser, and the editor shows up. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1305\" height=\"584\" src=\"https:\/\/youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-7.png\" alt=\"wp-config.php\" class=\"wp-image-1519\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-7.png 1305w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-7-768x344.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-7-134x60.png 134w\" sizes=\"auto, (max-width: 1305px) 100vw, 1305px\" \/><\/figure>\n\n\n\n<p>Create a backup using control panel features, and it will help the customers to revert the changes. <\/p>\n\n\n\n<p><strong><em>Note<\/em><\/strong>: Do not play around with the \u201c<strong><em>wp.config.php<\/em><\/strong>\u201d because it\ncan mess up the configuration of WordPress. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress is a popular open-source content management system that allows users to create, organize, manage, and edit their websites. The [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6747,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[350],"tags":[],"class_list":["post-6430","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledgebase"],"acf":[],"featured_image_src":"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/11\/How-to-Edit-wp-config.php-File-in-Cpanel-01.jpg","author_info":{"display_name":"YouStable","author_link":"https:\/\/www.youstable.com\/blog\/author\/youstable"},"_links":{"self":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/6430","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/comments?post=6430"}],"version-history":[{"count":2,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/6430\/revisions"}],"predecessor-version":[{"id":13925,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/6430\/revisions\/13925"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media\/6747"}],"wp:attachment":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media?parent=6430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/categories?post=6430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/tags?post=6430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}