{"id":1259949,"date":"2019-06-07T11:20:58","date_gmt":"2019-06-07T09:20:58","guid":{"rendered":"https:\/\/wp-rocket.me\/?p=1259949"},"modified":"2021-07-29T10:05:17","modified_gmt":"2021-07-29T08:05:17","slug":"wordpress-file-permissions","status":"publish","type":"post","link":"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/","title":{"rendered":"WordPress File Permissions: How Do They Work?"},"content":{"rendered":"<p>Setting proper WordPress file permissions is essential to ensure the security of you website. But, the default settings aren\u2019t enough.<\/p><p>File permissions set who can read, write, and execute the files that make up your website. If you set them incorrectly, you could be leaving access open to your files and hackers could edit them and add spam, or malware.<\/p><p>Not to worry!<\/p><p>Below are details on WordPress file permissions, their inner workings, and how to fix WordPress permissions including the <em>.htaccess<\/em> permissions WordPress recommends you use for the security of your site.<\/p><h2 class=\"wp-block-heading\">How WordPress File Permissions Work<\/h2><p>File permissions set who has access to a file and the type of access they have with a set of rules. They look like a three digit number, or a combination of letters and hyphens if you\u2019re using File Transfer Protocol (FTP), or Secure Shell access (SSH) to edit WordPress file permissions.<\/p><p>It all starts with defining who can access a file, and there are three options:<\/p><ul class=\"wp-block-list\"><li><strong>User<\/strong> \u2013 The administrator of your site<\/li><li><strong>Group<\/strong> \u2013 Other users of your site such as editors, contributors, subscribers, and other user roles<\/li><li><strong>World<\/strong> \u2013 Anyone on the internet<\/li><\/ul><p>There are also three different kinds of actions that the user, group, and world can make:<\/p><ul class=\"wp-block-list\"><li><strong>Read<\/strong> \u2013 The ability to only view the file\u2019s contents<\/li><li><strong>Write<\/strong> \u2013 File can be altered<\/li><li><strong>Execute<\/strong> \u2013 File\u2019s contents such as a program, or script can be run<\/li><\/ul><p>Then, the file permissions are organized as three numbers in this specific order:<\/p><ul class=\"wp-block-list\"><li><strong>First number<\/strong> \u2013 Permissions that are given to the user<\/li><li><strong>Second number<\/strong> \u2013 Access is granted to the group<\/li><li><strong>Third number<\/strong> \u2013 Permissions that are given to the world<\/li><\/ul><p>Now for the numbers.<\/p><p>Each number corresponds to a level of permission or a combination of permissions.<\/p><p>There\u2019s a number for all possible levels of file permissions, as follows:<\/p><ul class=\"wp-block-list\"><li><strong>0<\/strong> \u2013 No access at all<\/li><li><strong>1<\/strong> \u2013 Execute<\/li><li><strong>2<\/strong> \u2013 Write<\/li><li><strong>3<\/strong> \u2013 Write, and execute<\/li><li><strong>4<\/strong> \u2013 Read<\/li><li><strong>5<\/strong> \u2013 Read, and execute<\/li><li><strong>6<\/strong> \u2013 Read, and write<\/li><li><strong>7<\/strong> \u2013 Read, write, and execute<\/li><\/ul><p>It may be tricky to memorize what all those numbers mean when it comes to WordPress file permissions. So, here\u2019s a little trick to help you remember.<\/p><p>All you need to keep in mind is that:<\/p><ul class=\"wp-block-list\"><li>0 means no access<\/li><li>1 is for execute<\/li><li>2 means write, and<\/li><li>4 is for read<\/li><\/ul><p>When you choose which permissions you want to grant, add them up, and the result will be the number of the correct file permission you want to set.<\/p><p>For example, if you want to read and write access, you would add four and two together to get six.<\/p><p>If you wanted to read, write, and execute permissions, then you would add four, two, and one to get seven.<\/p><p>Once you know the number of the level of access you want to grant, you would need to organize them according to the permissions order as mentioned above.<\/p><p>For example, a file permission of 644 would mean:<\/p><ul class=\"wp-block-list\"><li>The user has read, and write permissions.<\/li><li>Read access is given to the group.<\/li><li>The world also has read access.<\/li><\/ul><p>This is useful when you\u2019re accessing your files through your hosting provider, but you may notice file permissions look different when you use FTP, or SSH. They look like a set of letters and hyphens.<\/p><p>Here\u2019s an example of what you\u2019ll see:<\/p><script src=\"https:\/\/gist.github.com\/jennimckinnon\/d4ea6b4becb98fd6903e418cacc7abdd.js\"><\/script><p>Similar to the numbered file permissions as explored above, <strong>the same three permission options apply in the same order: User, group, and world<\/strong>.<\/p><p>One of the differences is that the structure is set up into four groupings:<\/p><ul class=\"wp-block-list\"><li><strong>First grouping<\/strong> \u2013 The file type<\/li><li><strong>Second grouping<\/strong> \u2013 Permissions for the user<\/li><li><strong>Third grouping<\/strong> \u2013 Group Permissions<\/li><li><strong>Fourth grouping<\/strong> \u2013 Permissions for the world<\/li><\/ul><p>The first grouping is just one character in length. Each of the other three groupings are three characters in length.<\/p><p>The options for all these groupings are outlined below:<\/p><ul class=\"wp-block-list\"><li><strong>&#8211; (a hyphen)<\/strong> \u2013 No access, or in the case of the first grouping, it means a regular file<\/li><li><strong>r<\/strong> \u2013 Read<\/li><li><strong>w<\/strong> \u2013 Write<\/li><li><strong>x<\/strong> \u2013 Execute<\/li><li><strong>d<\/strong> \u2013 Directory, which is only an option for the first grouping, and isn\u2019t typically used for WordPress file permissions<\/li><\/ul><p>So, for the example above, below is a breakdown of the file permissions that would be set.<\/p><figure class=\"wp-block-table\"><table><tbody><tr><td><strong><em>Example<\/em><\/strong><\/td><td><strong>&#8211;<\/strong><\/td><td><strong>rwx<\/strong><\/td><td><strong>rw-<\/strong><\/td><td><strong>r&#8211;<\/strong><\/td><\/tr><tr><td><strong><em>Meaning of the Grouping<\/em><\/strong><\/td><td>The type of file<\/td><td>Read, write, and execute permissions for the user<\/td><td>Read, write, and execute permissions for the group<\/td><td>Read, write, and execute permissions for the world<\/td><\/tr><tr><td><strong><em>Explanation of the Example<\/em><\/strong><\/td><td>Denotes a regular file<\/td><td>User has read, write, and execute permissions<\/td><td>Group has read, and write access<\/td><td>World has only read permissions<\/td><\/tr><\/tbody><\/table><\/figure><h2 class=\"wp-block-heading\">The Recommended WordPress File Permissions<\/h2><p>If you don\u2019t set your WordPress file permissions properly, you could inadvertently grant more access to people that aren\u2019t supposed to have the permissions that are set for them. This could authorize them to make changes you don\u2019t want.<\/p><p>That being said, none of your WordPress file permissions should be set to 777, or \u201c-rwxrwxrwx\u201d if you\u2019re using FTP, or SSH. This would give everyone full access to the file which is incredibly unsafe.<\/p><p>This would be devastating <em>.htaccess<\/em> permissions WordPress wouldn\u2019t care for because anyone could potentially edit the file to redirect your site to one with a phishing attack, malware, or spam, for example.<\/p><p>On the flip side, you also don\u2019t want any of your WordPress file permissions set to 444, or \u201c-r&#8211;r&#8211;r&#8211;\u201c in FTP, or SSH clients. That would mean everyone can only view the files, including WordPress. This would break your site because WordPress often needs permission to safely modify, or execute certain files.<\/p><p>For example, when it comes to <em>.htaccess<\/em> permissions, WordPress wouldn\u2019t be able to do things you had previously set up such as load your site with SSL encryption, let the security plugin you use actually keep your site safe, or countless other scenarios.<\/p><p>But, if you can\u2019t use these file permissions for your WordPress site, then what level of access should you grant for your files, exactly? What are the <em>.htaccess<\/em> permissions WordPress recommends? What about other files?<\/p><p>The <a href=\"https:\/\/wordpress.org\/support\/article\/changing-file-permissions\/\">WordPress Codex recommends<\/a> the following:<\/p><ul class=\"wp-block-list\"><li><strong>Folders<\/strong> \u2013 755<\/li><li><strong>Files<\/strong> \u2013 644<\/li><li><strong><em>wp-config.php<\/em><\/strong> \u2013 600<\/li><li><strong><em>.htaccess<\/em><\/strong> \u2013 644, or 600<\/li><\/ul><p>Now that you know what WordPress file permissions you should use, how do you fix WordPress permissions for your site?<\/p><div id=\"om-ulrdquoprwqcywqbbgci-holder\"><\/div>\n\t<script>(function (d, u, ac) {\n\t\t\tvar s = d.createElement('script')\n\t\t\ts.type = 'text\/javascript'\n\t\t\ts.src = 'https:\/\/a.omappapi.com\/app\/js\/api.min.js'\n\t\t\ts.async = true\n\t\t\ts.dataset.user = u\n\t\t\ts.dataset.campaign = ac\n\t\t\td.getElementsByTagName('head')[0].appendChild(s)\n\t\t})(document, 20440, 'ulrdquoprwqcywqbbgci')<\/script><h2 class=\"wp-block-heading\">How to Fix WordPress Permissions<\/h2><p>As long as your server is Linux, or Unix-based, you can fix WordPress file permissions through your hosting provider, FTP, or SSH.<\/p><h3 class=\"wp-block-heading\">Fix WordPress Permissions with Your Host<\/h3><p>Every hosting provider is a bit different so if you want to fix WordPress file permissions through cPanel, Plesk, or whatever control panel you host uses, consult your hosting provider\u2019s documentation for the details on how to make the changes.<\/p><h3 class=\"wp-block-heading\">Fix WordPress Permissions with FTP<\/h3><p>To fix WordPress permissions using FTP and the popular <a href=\"https:\/\/filezilla-project.org\/\">FileZilla<\/a> client, start by successfully establishing a connection with your server.<\/p><p>Then, find the file where you want to fix WordPress permissions and right-click on it, and select the <strong>File permissions<\/strong> option.<\/p><figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"500\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-filezilla-ftp-file-permissions.jpg\" alt=\"FileZilla file permission\" class=\"wp-image-1259967\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-filezilla-ftp-file-permissions.jpg 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-filezilla-ftp-file-permissions-300x188.jpg 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-filezilla-ftp-file-permissions-768x480.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption><em>You can change file permissions using FTP, and FileZilla.<\/em><\/figcaption><\/figure><p>A window should appear where you can either check the boxes for the corresponding permissions you want to set, or you can enter the numeric value into the applicable field.<\/p><p>When you\u2019re happy with your changes, click the <strong>OK<\/strong> button to save your file permission.<\/p><figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"500\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-htaccess-permissions-wordpress.png\" alt=\"htaccess permissions in WordPress\" class=\"wp-image-1259960\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-htaccess-permissions-wordpress.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-htaccess-permissions-wordpress-300x188.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-htaccess-permissions-wordpress-768x480.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption><em>You can set WordPress file permissions with checkboxes, or by entering the numeric value.<\/em><\/figcaption><\/figure><p>So, if you wanted to set the <em>.htaccess<\/em> permissions WordPress recommends, you would check the following boxes:<\/p><ul class=\"wp-block-list\"><li><strong>Owner permissions<\/strong> \u2013 Read, and write boxes checked<\/li><li><strong>Group permissions<\/strong> \u2013 Read box checked, and<\/li><li><strong>Public permissions<\/strong> \u2013 Read box checked<\/li><\/ul><p>Alternatively, you could set the <em>.htaccess<\/em> permissions WordPress would consider the most secure with these boxes checked:<\/p><ul class=\"wp-block-list\"><li><strong>Owner permissions<\/strong> \u2013 Read, and write boxes checked<\/li><li><strong>Group permissions<\/strong> \u2013 No boxes checked, and<\/li><li><strong>Public Permissions<\/strong> \u2013 No boxes checked<\/li><\/ul><p>It may also be helpful to note that if you want to set the same permissions for several files or folders at one time, you can highlight the ones you want, then right-click once, and select the <strong>File permissions<\/strong> option on the list.<\/p><p>For further details, check out <a href=\"https:\/\/wiki.filezilla-project.org\/FileZilla_Client_Tutorial_(en)\">FileZilla Client Tutorial<\/a>.<\/p><h3 class=\"wp-block-heading\">Fix WordPress Permissions with SSH<\/h3><p>You can also fix WordPress permissions with your preferred SSH client.<\/p><p>To fix WordPress permissions for folders, enter the command below:<\/p><script src=\"https:\/\/gist.github.com\/jennimckinnon\/7a8854b3224deece5ce9b6f8e0cc431d.js\"><\/script><p>Just be sure to update \u201c\/path\/to\/your\/wordpress\/install\/\u201c with the actual folder path on your server. You can also change the \u201c755\u201d permission to what you prefer.<\/p><p>You can also fix WordPress permissions for all files with this command:<\/p><script src=\"https:\/\/gist.github.com\/jennimckinnon\/d37e764d4188e2c9b563afd5e03ec342.js\"><\/script><p>Again, be sure to update \u201c\/path\/to\/your\/wordpress\/install\/\u201c with your real file\u2019s path. You can also update \u201c644\u201d if you want.<\/p><p>To change the permissions for the wp-config.php file, use this command for the recommended change as previously mentioned:<\/p><script src=\"https:\/\/gist.github.com\/jennimckinnon\/742a2c5bfb2c93a7c5f0eab6ffa68d39.js\"><\/script><p>You can also use the .htaccess permissions WordPress recommends with this line:<\/p><script src=\"https:\/\/gist.github.com\/jennimckinnon\/c7ca527b27dbc426a3d1181e6bdc8823.js\"><\/script><p>If you want, you can change \u201c600\u201d to \u201c644\u201d if you prefer.<\/p><h2 class=\"wp-block-heading\">In Conclusion<\/h2><p>By now you know how WordPress file permissions work, how to fix WordPress permissions for folders, and files. You also know what levels of access to set including specifics like the <em>.htaccess<\/em> permissions WordPress recommends.<\/p><p>While setting proper file permissions isn\u2019t the only update you should make to ensure the security of your site, it\u2019s certainly a crucial first step that should definitely be taken.<\/p><p><strong>How do you prefer to fix WordPress permissions? Do you prefer to use the \u201c644,\u201d or \u201c600\u201d <\/strong><strong><em>.htaccess<\/em><\/strong><strong> permissions WordPress recommends? Share your thoughts in the comments below.<\/strong><\/p>","protected":false},"excerpt":{"rendered":"<p>Setting WordPress file permissions is crucial. Here\u2019s how to fix WordPress permissions, plus the changes to .htaccess permissions WordPress recommends.<\/p>\n","protected":false},"author":43576,"featured_media":1259992,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"kia_subtitle":"","footnotes":""},"categories":[63],"tags":[],"class_list":["post-1259949","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-cache"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>WordPress File Permissions: How Do They Work?<\/title>\n<meta name=\"description\" content=\"Setting WordPress file permissions is crucial. Here\u2019s how to fix WordPress permissions, plus the changes to .htaccess permissions WordPress recommends.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WordPress File Permissions: How Do They Work?\" \/>\n<meta property=\"og:description\" content=\"Setting WordPress file permissions is crucial. Here\u2019s how to fix WordPress permissions, plus the changes to .htaccess permissions WordPress recommends.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Rocket\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-07T09:20:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-29T08:05:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-wordpress-file-permissions.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1100\" \/>\n\t<meta property=\"og:image:height\" content=\"460\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Jenni McKinnon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@wp_rocket\" \/>\n<meta name=\"twitter:site\" content=\"@wp_rocket\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jenni McKinnon\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/\"},\"author\":{\"name\":\"Jenni McKinnon\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/c424c8db717ce33f9f70867f0a962ac2\"},\"headline\":\"WordPress File Permissions: How Do They Work?\",\"datePublished\":\"2019-06-07T09:20:58+00:00\",\"dateModified\":\"2021-07-29T08:05:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/\"},\"wordCount\":1579,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\/\/wp-rocket.me\/#organization\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-wordpress-file-permissions.png\",\"articleSection\":[\"Page speed and caching\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/\",\"url\":\"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/\",\"name\":\"WordPress File Permissions: How Do They Work?\",\"isPartOf\":{\"@id\":\"https:\/\/wp-rocket.me\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-wordpress-file-permissions.png\",\"datePublished\":\"2019-06-07T09:20:58+00:00\",\"dateModified\":\"2021-07-29T08:05:17+00:00\",\"description\":\"Setting WordPress file permissions is crucial. Here\u2019s how to fix WordPress permissions, plus the changes to .htaccess permissions WordPress recommends.\",\"breadcrumb\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/#primaryimage\",\"url\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-wordpress-file-permissions.png\",\"contentUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-wordpress-file-permissions.png\",\"width\":1100,\"height\":460,\"caption\":\"WordPress File Permissions How Do They Work?\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wp-rocket.me\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Page speed and caching\",\"item\":\"https:\/\/wp-rocket.me\/blog\/wordpress-cache\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"WordPress File Permissions: How Do They Work?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wp-rocket.me\/#website\",\"url\":\"https:\/\/wp-rocket.me\/\",\"name\":\"WP Rocket\",\"description\":\"Plugin d&#039;optimisation de sites WordPress\",\"publisher\":{\"@id\":\"https:\/\/wp-rocket.me\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wp-rocket.me\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/wp-rocket.me\/#organization\",\"name\":\"WP Rocket\",\"url\":\"https:\/\/wp-rocket.me\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png\",\"contentUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png\",\"width\":150,\"height\":41,\"caption\":\"WP Rocket\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829\",\"https:\/\/x.com\/wp_rocket\",\"https:\/\/www.youtube.com\/channel\/UC1ozThXHd1IWIZ5wkshgp_Q\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/c424c8db717ce33f9f70867f0a962ac2\",\"name\":\"Jenni McKinnon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1a368446f4bf1880c0e5a8cb742aed12?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1a368446f4bf1880c0e5a8cb742aed12?s=96&d=mm&r=g\",\"caption\":\"Jenni McKinnon\"},\"description\":\"A copywriter, copy editor, web developer, consultant, course instructor and founder of WP Pros(e), Jenni McKinnon has spent the past 15 years developing websites and almost as long for WordPress. A self-described WordPress nerd, she enjoys watching The Simpsons and names her test sites after references from the show.\",\"sameAs\":[\"https:\/\/wpprose.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WordPress File Permissions: How Do They Work?","description":"Setting WordPress file permissions is crucial. Here\u2019s how to fix WordPress permissions, plus the changes to .htaccess permissions WordPress recommends.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/","og_locale":"en_US","og_type":"article","og_title":"WordPress File Permissions: How Do They Work?","og_description":"Setting WordPress file permissions is crucial. Here\u2019s how to fix WordPress permissions, plus the changes to .htaccess permissions WordPress recommends.","og_url":"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/","og_site_name":"WP Rocket","article_publisher":"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","article_published_time":"2019-06-07T09:20:58+00:00","article_modified_time":"2021-07-29T08:05:17+00:00","og_image":[{"width":1100,"height":460,"url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-wordpress-file-permissions.png","type":"image\/png"}],"author":"Jenni McKinnon","twitter_card":"summary_large_image","twitter_creator":"@wp_rocket","twitter_site":"@wp_rocket","twitter_misc":{"Written by":"Jenni McKinnon","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/#article","isPartOf":{"@id":"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/"},"author":{"name":"Jenni McKinnon","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/c424c8db717ce33f9f70867f0a962ac2"},"headline":"WordPress File Permissions: How Do They Work?","datePublished":"2019-06-07T09:20:58+00:00","dateModified":"2021-07-29T08:05:17+00:00","mainEntityOfPage":{"@id":"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/"},"wordCount":1579,"commentCount":3,"publisher":{"@id":"https:\/\/wp-rocket.me\/#organization"},"image":{"@id":"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/#primaryimage"},"thumbnailUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-wordpress-file-permissions.png","articleSection":["Page speed and caching"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/","url":"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/","name":"WordPress File Permissions: How Do They Work?","isPartOf":{"@id":"https:\/\/wp-rocket.me\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/#primaryimage"},"image":{"@id":"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/#primaryimage"},"thumbnailUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-wordpress-file-permissions.png","datePublished":"2019-06-07T09:20:58+00:00","dateModified":"2021-07-29T08:05:17+00:00","description":"Setting WordPress file permissions is crucial. Here\u2019s how to fix WordPress permissions, plus the changes to .htaccess permissions WordPress recommends.","breadcrumb":{"@id":"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/#primaryimage","url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-wordpress-file-permissions.png","contentUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-wordpress-file-permissions.png","width":1100,"height":460,"caption":"WordPress File Permissions How Do They Work?"},{"@type":"BreadcrumbList","@id":"https:\/\/wp-rocket.me\/blog\/wordpress-file-permissions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wp-rocket.me"},{"@type":"ListItem","position":2,"name":"Page speed and caching","item":"https:\/\/wp-rocket.me\/blog\/wordpress-cache\/"},{"@type":"ListItem","position":3,"name":"WordPress File Permissions: How Do They Work?"}]},{"@type":"WebSite","@id":"https:\/\/wp-rocket.me\/#website","url":"https:\/\/wp-rocket.me\/","name":"WP Rocket","description":"Plugin d&#039;optimisation de sites WordPress","publisher":{"@id":"https:\/\/wp-rocket.me\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wp-rocket.me\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/wp-rocket.me\/#organization","name":"WP Rocket","url":"https:\/\/wp-rocket.me\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/","url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","contentUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","width":150,"height":41,"caption":"WP Rocket"},"image":{"@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","https:\/\/x.com\/wp_rocket","https:\/\/www.youtube.com\/channel\/UC1ozThXHd1IWIZ5wkshgp_Q"]},{"@type":"Person","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/c424c8db717ce33f9f70867f0a962ac2","name":"Jenni McKinnon","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1a368446f4bf1880c0e5a8cb742aed12?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1a368446f4bf1880c0e5a8cb742aed12?s=96&d=mm&r=g","caption":"Jenni McKinnon"},"description":"A copywriter, copy editor, web developer, consultant, course instructor and founder of WP Pros(e), Jenni McKinnon has spent the past 15 years developing websites and almost as long for WordPress. A self-described WordPress nerd, she enjoys watching The Simpsons and names her test sites after references from the show.","sameAs":["https:\/\/wpprose.com"]}]}},"_links":{"self":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts\/1259949"}],"collection":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/users\/43576"}],"replies":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/comments?post=1259949"}],"version-history":[{"count":0,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts\/1259949\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/media\/1259992"}],"wp:attachment":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/media?parent=1259949"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/categories?post=1259949"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/tags?post=1259949"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}