{"id":95,"date":"2026-09-26T06:54:13","date_gmt":"2026-09-26T06:54:13","guid":{"rendered":"https:\/\/docs.prefixwp.com\/?post_type=docs&#038;p=95"},"modified":"2026-09-26T13:32:03","modified_gmt":"2026-09-26T13:32:03","password":"","slug":"wp-config-is-not-writable","status":"publish","type":"docs","link":"https:\/\/docs.prefixwp.com\/docs\/bugtrace\/debug-settings\/wp-config-is-not-writable\/","title":{"rendered":"Fix &#8220;wp-config.php is not writable&#8221;"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">BugTrace changes your <code>wp-config.php<\/code> file to turn debug settings on or off. If WordPress cannot write to this file, you see this message on the Logs and Settings pages:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Please note, wp-config.php is not writable. Please change file permissions.<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><a href=\"https:\/\/docs.prefixwp.com\/wp-content\/uploads\/2026\/09\/bugtrace-settings-not-writable.webp\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1865\" height=\"1010\" src=\"https:\/\/docs.prefixwp.com\/wp-content\/uploads\/2026\/09\/bugtrace-settings-not-writable.webp\" alt=\"The BugTrace Settings page with a red message: Please note, wp-config.php is not writable. Please change file permissions.\" class=\"wp-image-94\" style=\"width:933px\" srcset=\"https:\/\/docs.prefixwp.com\/wp-content\/uploads\/2026\/09\/bugtrace-settings-not-writable.webp 1865w, https:\/\/docs.prefixwp.com\/wp-content\/uploads\/2026\/09\/bugtrace-settings-not-writable-300x162.webp 300w, https:\/\/docs.prefixwp.com\/wp-content\/uploads\/2026\/09\/bugtrace-settings-not-writable-1024x555.webp 1024w, https:\/\/docs.prefixwp.com\/wp-content\/uploads\/2026\/09\/bugtrace-settings-not-writable-768x416.webp 768w, https:\/\/docs.prefixwp.com\/wp-content\/uploads\/2026\/09\/bugtrace-settings-not-writable-1536x832.webp 1536w, https:\/\/docs.prefixwp.com\/wp-content\/uploads\/2026\/09\/bugtrace-settings-not-writable-360x195.webp 360w\" sizes=\"(max-width: 1865px) 100vw, 1865px\" \/><\/a><figcaption class=\"wp-element-caption\">The message on the Settings page.<\/figcaption><\/figure>\n\n\n<h2 class=\"wp-block-heading\">What this means<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>BugTrace cannot save any setting. This includes the <strong>Log Timezone<\/strong>.<\/li>\n\n\n\n<li>When you click <strong>Save Settings<\/strong>, nothing happens. You do not see an error.<\/li>\n\n\n\n<li>You can still read your log on the Logs page.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How to fix it<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The file permissions of <code>wp-config.php<\/code> do not let your website change the file.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to your hosting account.<\/li>\n\n\n\n<li>Open the <strong>File Manager<\/strong>. Or connect with FTP.<\/li>\n\n\n\n<li>Find <code>wp-config.php<\/code> in the main folder of your WordPress site.<\/li>\n\n\n\n<li>Change the permissions. <code>644<\/code> works on most hosts.<\/li>\n\n\n\n<li>Go back to <code>BugTrace \u2192 Settings<\/code>. The message is gone. Save your settings again.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">If you are not sure how to do this, ask your web host. Tell them: &#8220;Please make wp-config.php writable for WordPress.&#8221;<\/p>\n\n\n\n<div class=\"wp-block-group is-style-pwp-note is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"wp-block-paragraph\">Some hosts make <code>wp-config.php<\/code> read-only on purpose, for security. After you change your debug settings, you can ask your host to make it read-only again. BugTrace cannot save settings while the file is read-only.<\/p>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">If your wp-config.php is in another folder<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress allows you to move <code>wp-config.php<\/code> one folder above your WordPress folder. BugTrace only looks in the WordPress folder. So it shows the message, even if the file is writable.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this case, set the debug lines by hand. Open <code>wp-config.php<\/code> and add or change these lines. Put them above the line <code>\/* That's all, stop editing! *\/<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define( 'WP_DEBUG', true );\ndefine( 'WP_DEBUG_LOG', true );\ndefine( 'WP_DEBUG_DISPLAY', false );<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">BugTrace can still show your log on the Logs page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What the &#8220;wp-config.php is not writable&#8221; message means, and how to fix it.<\/p>\n","protected":false},"author":52,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"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":""},"doc_category":[4],"doc_tag":[],"knowledge_base":[2],"class_list":["post-95","docs","type-docs","status-publish","hentry","doc_category-debug-settings","knowledge_base-bugtrace"],"year_month":"2026-11","word_count":293,"total_views":"4","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"PrefixWP","author_nicename":"nikhil-gawali","author_url":"https:\/\/docs.prefixwp.com\/author\/nikhil-gawali\/"},"doc_category_info":[{"term_name":"Debug settings","term_url":"https:\/\/docs.prefixwp.com\/docs\/bugtrace\/debug-settings\/"}],"doc_tag_info":[],"knowledge_base_info":[{"term_name":"BugTrace","term_url":"https:\/\/docs.prefixwp.com\/docs\/bugtrace\/","term_slug":"bugtrace"}],"knowledge_base_slug":["bugtrace"],"_links":{"self":[{"href":"https:\/\/docs.prefixwp.com\/wp-json\/wp\/v2\/docs\/95","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.prefixwp.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/docs.prefixwp.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/docs.prefixwp.com\/wp-json\/wp\/v2\/users\/52"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.prefixwp.com\/wp-json\/wp\/v2\/comments?post=95"}],"version-history":[{"count":1,"href":"https:\/\/docs.prefixwp.com\/wp-json\/wp\/v2\/docs\/95\/revisions"}],"predecessor-version":[{"id":106,"href":"https:\/\/docs.prefixwp.com\/wp-json\/wp\/v2\/docs\/95\/revisions\/106"}],"wp:attachment":[{"href":"https:\/\/docs.prefixwp.com\/wp-json\/wp\/v2\/media?parent=95"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/docs.prefixwp.com\/wp-json\/wp\/v2\/doc_category?post=95"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/docs.prefixwp.com\/wp-json\/wp\/v2\/doc_tag?post=95"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/docs.prefixwp.com\/wp-json\/wp\/v2\/knowledge_base?post=95"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}