{"id":1517,"date":"2025-11-24T11:44:05","date_gmt":"2025-11-24T06:14:05","guid":{"rendered":"https:\/\/youstable.com\/blog\/?p=1517"},"modified":"2025-12-12T10:37:08","modified_gmt":"2025-12-12T05:07:08","slug":"edit-wp-config-php-file-in-wordpress","status":"publish","type":"post","link":"https:\/\/www.youstable.com\/blog\/edit-wp-config-php-file-in-wordpress","title":{"rendered":"How to Edit wp-config.php File in WordPress?"},"content":{"rendered":"\n<p>WordPress is a popular open-source content management system that allows users to create organizes, manage, and edit the site. 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 file in a few clicks. Users\nrequire access to the cPanel control panel credentials and make sure to create\na back up of WordPress site to ensure that you can recover from major errors. <\/p>\n\n\n\n<p><strong>Step 1<\/strong>: Login to\nthe control panel with correct credentials that YouStable sent to the\nregistered 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>: In the\nsearch bar, type \u201c<strong><em>file manager<\/em><\/strong>\u201d 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\nlibrary of WordPress installed folders shows up on your screen, and scroll down\nuntil 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\nthe \u201c<strong><em>wp.config.php<\/em><\/strong>\u201d\nto select it, and then click on \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\nconfirmation pop-up shows up on the screen and click\non \u201c<strong><em>EDIT<\/em><\/strong>\u201d\nto 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\nwindow 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 back up using control panel features, and it will help the customers to revert the\nchanges. <\/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 organizes, manage, and edit the site. The [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6890,"comment_status":"open","ping_status":"open","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":[597,599,600,598,603,604,601,605,602],"class_list":["post-1517","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledgebase","tag-edit-wp-config-php-godaddy","tag-edit-wp-config-php-without-ftp","tag-how-to-edit-php-files-in-wordpress","tag-how-to-open-config-file-in-wordpress","tag-no-wp-config-php-file","tag-wordpress-database-connection-file","tag-wordpress-database-file-location","tag-wp-config-php","tag-wp-config-php-hack"],"acf":[],"featured_image_src":"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/02\/How-to-Edit-wp-config.php-File-in-WordPress-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\/1517","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=1517"}],"version-history":[{"count":1,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/1517\/revisions"}],"predecessor-version":[{"id":11313,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/1517\/revisions\/11313"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media\/6890"}],"wp:attachment":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media?parent=1517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/categories?post=1517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/tags?post=1517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}