{"id":6431,"date":"2025-11-27T20:05:30","date_gmt":"2025-11-27T14:35:30","guid":{"rendered":"https:\/\/youstable.com\/blog\/?post_type=epkb_post_type_1&#038;p=4318"},"modified":"2025-11-27T20:06:10","modified_gmt":"2025-11-27T14:36:10","slug":"edit-wp-config-php-file-in-directadmin","status":"publish","type":"post","link":"https:\/\/www.youstable.com\/blog\/edit-wp-config-php-file-in-directadmin","title":{"rendered":"How to Edit wp-config.php File in DirectAdmin?"},"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 you 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-directadmin\/\" target=\"_blank\" rel=\"noreferrer noopener\">Log in to the DirectAdmin<\/a> control panel with the correct credentials that YouStable sent to the registered email address.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1087\" height=\"757\" src=\"https:\/\/youstable.com\/blog\/wp-content\/uploads\/2021\/11\/directadmin_login.png\" alt=\"directadmin_login\" class=\"wp-image-4321\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/11\/directadmin_login.png 1087w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/11\/directadmin_login-768x535.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/11\/directadmin_login-810x564.png 810w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/11\/directadmin_login-145x100.png 145w\" sizes=\"auto, (max-width: 1087px) 100vw, 1087px\" \/><\/figure>\n\n\n\n<p><strong>Step 2<\/strong>: Type \u201c<strong><em>file manager<\/em><\/strong>\u201d in the search bar or scroll down and locate <strong>File Manager<\/strong> and click on it.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1086\" height=\"530\" src=\"https:\/\/youstable.com\/blog\/wp-content\/uploads\/2021\/11\/file_manager.png\" alt=\"file_manager\" class=\"wp-image-4322\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/11\/file_manager.png 1086w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/11\/file_manager-768x375.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/11\/file_manager-810x395.png 810w\" sizes=\"auto, (max-width: 1086px) 100vw, 1086px\" \/><\/figure>\n\n\n\n<p><strong>Step 3<\/strong>: Click <strong>Domains<\/strong> &#8211;&gt; your domain(for which you want to edit wp_config.php) &#8211;&gt;<strong>public_html<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1210\" height=\"696\" src=\"https:\/\/youstable.com\/blog\/wp-content\/uploads\/2021\/11\/public_html_dir_admin.png\" alt=\"public_html_directadmin\" class=\"wp-image-4323\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/11\/public_html_dir_admin.png 1210w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/11\/public_html_dir_admin-768x442.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/11\/public_html_dir_admin-810x466.png 810w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/11\/public_html_dir_admin-1140x656.png 1140w\" sizes=\"auto, (max-width: 1210px) 100vw, 1210px\" \/><\/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 size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1070\" height=\"753\" src=\"https:\/\/youstable.com\/blog\/wp-content\/uploads\/2021\/11\/wp-config_file_manager_directadmin.png\" alt=\"\" class=\"wp-image-4324\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/11\/wp-config_file_manager_directadmin.png 1070w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/11\/wp-config_file_manager_directadmin-768x540.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/11\/wp-config_file_manager_directadmin-810x570.png 810w\" sizes=\"auto, (max-width: 1070px) 100vw, 1070px\" \/><\/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 size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1036\" height=\"660\" src=\"https:\/\/youstable.com\/blog\/wp-content\/uploads\/2021\/11\/wp-config_edit_file_manager_directadmin.png\" alt=\"wp-config_edit_file_manager_directadmin\" class=\"wp-image-4326\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/11\/wp-config_edit_file_manager_directadmin.png 1036w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/11\/wp-config_edit_file_manager_directadmin-768x489.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/11\/wp-config_edit_file_manager_directadmin-810x516.png 810w\" sizes=\"auto, (max-width: 1036px) 100vw, 1036px\" \/><\/figure>\n\n\n\n<p><strong>Step 6<\/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 size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1396\" height=\"712\" src=\"https:\/\/youstable.com\/blog\/wp-content\/uploads\/2021\/11\/wp-config_editor_file_manager_directadmin.png\" alt=\"\" class=\"wp-image-4327\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/11\/wp-config_editor_file_manager_directadmin.png 1396w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/11\/wp-config_editor_file_manager_directadmin-768x392.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/11\/wp-config_editor_file_manager_directadmin-810x413.png 810w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2021\/11\/wp-config_editor_file_manager_directadmin-1140x581.png 1140w\" sizes=\"auto, (max-width: 1396px) 100vw, 1396px\" \/><\/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 can 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":6749,"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-6431","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-DirectAdmin-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\/6431","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=6431"}],"version-history":[{"count":2,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/6431\/revisions"}],"predecessor-version":[{"id":15741,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/6431\/revisions\/15741"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media\/6749"}],"wp:attachment":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media?parent=6431"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/categories?post=6431"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/tags?post=6431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}