{"id":1843,"date":"2012-08-28T10:39:01","date_gmt":"2012-08-28T15:39:01","guid":{"rendered":"https:\/\/wpengine.com\/?p=1843"},"modified":"2024-05-24T11:43:27","modified_gmt":"2024-05-24T16:43:27","slug":"read-only-file-configuration","status":"publish","type":"post","link":"https:\/\/wpengine.com\/resources\/read-only-file-configuration\/","title":{"rendered":"Read-Only File Configuration"},"content":{"rendered":"<p><a href=\"https:\/\/wpengine.com\/resources\/\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-1845\" title=\"Read-Only file system\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2012\/08\/readonly-safe-344x580.jpeg\" alt=\"Read-Only file system\" width=\"344\" height=\"580\"><\/a>Recently, we added a new configuration option for all the sites we host that allows us to temporarily prevent edits to customer sites when our support team needs to dive in to troubleshoot important issues and get sites back up and running. It&#8217;s called the &#8220;read-only file system.&#8221;<\/p>\n<p>If you peek into your wp-config.php file and see:<\/p>\n<pre style=\"padding-left: 30px;\">\"readonly_filesystem\" =&gt; true<\/pre>\n<p>This setting is on. Your site will be unable to write PHP files to disk, even when a user is authenticated with WordPress.<\/p>\n<p>Since this setting locks down edits, it&#8217;s something we would only use temporarily, when completely necessary, and when we have communicated directly with the developer and\/or site owner. Constant communication will be the first priority with this setting because plugins and themes may not work when this is activated.<\/p>\n<p>Of course, during these situations, our support team will only temporarily activate the setting, and once the support issue has been resolved, we&#8217;ll set this to false and normal site functionality will resume.<\/p>\n<p>Now, when this is activated, you would be able to use any non-web mechanism to update the filesystem, including SFTP and git-push. Activating this setting is also helpful for the folks using git-push-to-deploy because if you&#8217;re using git, you don&#8217;t want to edit files directly, but instead via git-push.<\/p>\n<p>When this is activated, users can still create and edit posts as well as media files. Only the ability to modify PHP files is constrained to either SFTP and git. If you&#8217;d like, you can specifically request that our support staff turn the read-only filesystem configuration for your site. Customers who want to only be able to modify files via SFTP and git can request this and our support team will activate this for you.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently, we added a new configuration option for all the sites we host that allows us to temporarily prevent edits to customer sites when our support team needs to dive in to troubleshoot important issues and get sites back up and running. It&#8217;s called the &#8220;read-only file system.&#8221; If you peek into your wp-config.php file<span class=\"tile__ellipses\">&hellip;<\/span><span class=\"tile__ellipses--animated\"><\/span><\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[9,1],"tags":[],"class_list":["post-1843","post","type-post","status-publish","format-standard","hentry","category-product-updates","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Read-Only File Configuration | WP Engine<\/title>\n<meta name=\"description\" content=\"Learn how WP Engine&#039;s read-only file configuration can enhance security and privacy by preventing unauthorized file modifications on your WordPress site.\" \/>\n<meta name=\"robots\" content=\"noindex, follow\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Read-Only File Configuration | WP Engine\" \/>\n<meta property=\"og:description\" content=\"Learn how WP Engine&#039;s read-only file configuration can enhance security and privacy by preventing unauthorized file modifications on your WordPress site.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wpengine.com\/blog\/read-only-file-configuration\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Engine\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/wpengine\" \/>\n<meta property=\"article:published_time\" content=\"2012-08-28T15:39:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-24T16:43:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wpengine.com\/resources\/wp-content\/uploads\/2012\/08\/readonly-safe-344x580.jpeg\" \/>\n<meta name=\"author\" content=\"Austin Gunter\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@wpengine\" \/>\n<meta name=\"twitter:site\" content=\"@wpengine\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Austin Gunter\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wpengine.com\/resources\/read-only-file-configuration\/\",\"url\":\"https:\/\/wpengine.com\/blog\/read-only-file-configuration\/\",\"name\":\"Read-Only File Configuration | WP Engine\",\"isPartOf\":{\"@id\":\"https:\/\/wpengine.com\/resources\/#website\"},\"datePublished\":\"2012-08-28T15:39:01+00:00\",\"dateModified\":\"2024-05-24T16:43:27+00:00\",\"author\":{\"@id\":\"https:\/\/wpengine.com\/resources\/#\/schema\/person\/669f047558daf2cf0747a7cbe8bf5a74\"},\"description\":\"Learn how WP Engine's read-only file configuration can enhance security and privacy by preventing unauthorized file modifications on your WordPress site.\",\"breadcrumb\":{\"@id\":\"https:\/\/wpengine.com\/blog\/read-only-file-configuration\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wpengine.com\/blog\/read-only-file-configuration\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wpengine.com\/blog\/read-only-file-configuration\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wpengine.com\/resources\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Read-Only File Configuration\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wpengine.com\/resources\/#website\",\"url\":\"https:\/\/wpengine.com\/resources\/\",\"name\":\"WP Engine\",\"description\":\"Managed Hosting for WordPress\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wpengine.com\/resources\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/wpengine.com\/resources\/#\/schema\/person\/669f047558daf2cf0747a7cbe8bf5a74\",\"name\":\"Austin Gunter\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wpengine.com\/resources\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3c46fa98068156fdd2b81c009b7d8110d8d6eb6b287305e7e0c64fb29cbb7088?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3c46fa98068156fdd2b81c009b7d8110d8d6eb6b287305e7e0c64fb29cbb7088?s=96&d=mm&r=g\",\"caption\":\"Austin Gunter\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Read-Only File Configuration | WP Engine","description":"Learn how WP Engine's read-only file configuration can enhance security and privacy by preventing unauthorized file modifications on your WordPress site.","robots":{"index":"noindex","follow":"follow"},"og_locale":"en_US","og_type":"article","og_title":"Read-Only File Configuration | WP Engine","og_description":"Learn how WP Engine's read-only file configuration can enhance security and privacy by preventing unauthorized file modifications on your WordPress site.","og_url":"https:\/\/wpengine.com\/blog\/read-only-file-configuration\/","og_site_name":"WP Engine","article_publisher":"https:\/\/www.facebook.com\/wpengine","article_published_time":"2012-08-28T15:39:01+00:00","article_modified_time":"2024-05-24T16:43:27+00:00","og_image":[{"url":"https:\/\/wpengine.com\/resources\/wp-content\/uploads\/2012\/08\/readonly-safe-344x580.jpeg"}],"author":"Austin Gunter","twitter_card":"summary_large_image","twitter_creator":"@wpengine","twitter_site":"@wpengine","twitter_misc":{"Written by":"Austin Gunter","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wpengine.com\/resources\/read-only-file-configuration\/","url":"https:\/\/wpengine.com\/blog\/read-only-file-configuration\/","name":"Read-Only File Configuration | WP Engine","isPartOf":{"@id":"https:\/\/wpengine.com\/resources\/#website"},"datePublished":"2012-08-28T15:39:01+00:00","dateModified":"2024-05-24T16:43:27+00:00","author":{"@id":"https:\/\/wpengine.com\/resources\/#\/schema\/person\/669f047558daf2cf0747a7cbe8bf5a74"},"description":"Learn how WP Engine's read-only file configuration can enhance security and privacy by preventing unauthorized file modifications on your WordPress site.","breadcrumb":{"@id":"https:\/\/wpengine.com\/blog\/read-only-file-configuration\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wpengine.com\/blog\/read-only-file-configuration\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/wpengine.com\/blog\/read-only-file-configuration\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wpengine.com\/resources\/"},{"@type":"ListItem","position":2,"name":"Read-Only File Configuration"}]},{"@type":"WebSite","@id":"https:\/\/wpengine.com\/resources\/#website","url":"https:\/\/wpengine.com\/resources\/","name":"WP Engine","description":"Managed Hosting for WordPress","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wpengine.com\/resources\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/wpengine.com\/resources\/#\/schema\/person\/669f047558daf2cf0747a7cbe8bf5a74","name":"Austin Gunter","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpengine.com\/resources\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3c46fa98068156fdd2b81c009b7d8110d8d6eb6b287305e7e0c64fb29cbb7088?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3c46fa98068156fdd2b81c009b7d8110d8d6eb6b287305e7e0c64fb29cbb7088?s=96&d=mm&r=g","caption":"Austin Gunter"}}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/wpengine.com\/resources\/wp-json\/wp\/v2\/posts\/1843","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpengine.com\/resources\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpengine.com\/resources\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpengine.com\/resources\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/wpengine.com\/resources\/wp-json\/wp\/v2\/comments?post=1843"}],"version-history":[{"count":0,"href":"https:\/\/wpengine.com\/resources\/wp-json\/wp\/v2\/posts\/1843\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpengine.com\/resources\/wp-json\/wp\/v2\/media?parent=1843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpengine.com\/resources\/wp-json\/wp\/v2\/categories?post=1843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpengine.com\/resources\/wp-json\/wp\/v2\/tags?post=1843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}