{"id":321,"date":"2011-01-30T20:30:00","date_gmt":"2011-01-30T20:30:00","guid":{"rendered":"http:\/\/joapen.com\/blog\/2011\/01\/30\/php-files-permissions\/"},"modified":"2011-01-30T20:30:00","modified_gmt":"2011-01-30T20:30:00","slug":"php-files-permissions","status":"publish","type":"post","link":"http:\/\/joapen.com\/blog\/2011\/01\/30\/php-files-permissions\/","title":{"rendered":"PHP, files permissions"},"content":{"rendered":"<p>Sorry, I need to remind this information:<\/p>\n<p>Read 4 &#8211; Allowed to read files <br \/>Write 2 &#8211; Allowed to write\/modify files <br \/>eXecute 1 &#8211; Read\/write\/delete\/modify\/directory<\/p>\n<p>user group world<br \/>7 5 5<br \/>r+w+x r+x r+x<br \/>6 4 4<br \/>r+w r r<\/p>\n<p>These 2 sentences assign the security of the folders to 755 and files to 644:<\/p>\n<p>find top\/directory -type f -exec chmod 0644 &#8216;{}&#8217; \\;<br \/>find top\/directory -type d -exec chmod 0755 &#8216;{}&#8217; \\;<\/p>\n<p>I cannot enter these 2 sentences on my Direct Admin because I have not the console available in the hosting \ud83d\ude41<\/p>\n<p>Interesting reading about .htaccess: <a href=\"http:\/\/www.dwdpa.com\/content\/view\/26\/73\/\">http:\/\/www.dwdpa.com\/content\/view\/26\/73\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sorry, I need to remind this information: Read 4 &#8211; Allowed to read files Write 2 &#8211; Allowed to write\/modify files eXecute 1 &#8211; Read\/write\/delete\/modify\/directory user group world7 5 5r+w+x r+x r+x6 4 4r+w r r These 2 sentences assign the security of the folders to 755 and files to 644: find top\/directory -type f &#8230; <a title=\"PHP, files permissions\" class=\"read-more\" href=\"http:\/\/joapen.com\/blog\/2011\/01\/30\/php-files-permissions\/\" aria-label=\"Read more about PHP, files permissions\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38],"tags":[],"class_list":["post-321","post","type-post","status-publish","format-standard","hentry","category-learning"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>PHP, files permissions -<\/title>\n<meta name=\"description\" content=\"Sorry, I need to remind this information:Read 4 - Allowed to read files Write 2 - Allowed to write\/modify files eXecute 1 - joapen projects\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/joapen.com\/blog\/2011\/01\/30\/php-files-permissions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP, files permissions -\" \/>\n<meta property=\"og:description\" content=\"Sorry, I need to remind this information:Read 4 - Allowed to read files Write 2 - Allowed to write\/modify files eXecute 1 - joapen projects\" \/>\n<meta property=\"og:url\" content=\"https:\/\/joapen.com\/blog\/2011\/01\/30\/php-files-permissions\/\" \/>\n<meta property=\"og:site_name\" content=\"joapen projects\" \/>\n<meta property=\"article:published_time\" content=\"2011-01-30T20:30:00+00:00\" \/>\n<meta name=\"author\" content=\"joapen\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"joapen\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/2011\\\/01\\\/30\\\/php-files-permissions\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/2011\\\/01\\\/30\\\/php-files-permissions\\\/\"},\"author\":{\"name\":\"joapen\",\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/#\\\/schema\\\/person\\\/23919df2312175fe9c4609203595b217\"},\"headline\":\"PHP, files permissions\",\"datePublished\":\"2011-01-30T20:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/2011\\\/01\\\/30\\\/php-files-permissions\\\/\"},\"wordCount\":100,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/#\\\/schema\\\/person\\\/23919df2312175fe9c4609203595b217\"},\"articleSection\":[\"Learning\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/joapen.com\\\/blog\\\/2011\\\/01\\\/30\\\/php-files-permissions\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/2011\\\/01\\\/30\\\/php-files-permissions\\\/\",\"url\":\"https:\\\/\\\/joapen.com\\\/blog\\\/2011\\\/01\\\/30\\\/php-files-permissions\\\/\",\"name\":\"PHP, files permissions -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/#website\"},\"datePublished\":\"2011-01-30T20:30:00+00:00\",\"description\":\"Sorry, I need to remind this information:Read 4 - Allowed to read files Write 2 - Allowed to write\\\/modify files eXecute 1 - joapen projects\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/2011\\\/01\\\/30\\\/php-files-permissions\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/joapen.com\\\/blog\\\/2011\\\/01\\\/30\\\/php-files-permissions\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/2011\\\/01\\\/30\\\/php-files-permissions\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/joapen.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP, files permissions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/joapen.com\\\/blog\\\/\",\"name\":\"joapen projects\",\"description\":\"Just a place to write\",\"publisher\":{\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/#\\\/schema\\\/person\\\/23919df2312175fe9c4609203595b217\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/joapen.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/#\\\/schema\\\/person\\\/23919df2312175fe9c4609203595b217\",\"name\":\"joapen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/joapen-mini.jpeg\",\"url\":\"https:\\\/\\\/joapen.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/joapen-mini.jpeg\",\"contentUrl\":\"https:\\\/\\\/joapen.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/joapen-mini.jpeg\",\"width\":400,\"height\":400,\"caption\":\"joapen\"},\"logo\":{\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/joapen-mini.jpeg\"},\"sameAs\":[\"http:\\\/\\\/www.joapen.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP, files permissions -","description":"Sorry, I need to remind this information:Read 4 - Allowed to read files Write 2 - Allowed to write\/modify files eXecute 1 - joapen projects","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:\/\/joapen.com\/blog\/2011\/01\/30\/php-files-permissions\/","og_locale":"en_US","og_type":"article","og_title":"PHP, files permissions -","og_description":"Sorry, I need to remind this information:Read 4 - Allowed to read files Write 2 - Allowed to write\/modify files eXecute 1 - joapen projects","og_url":"https:\/\/joapen.com\/blog\/2011\/01\/30\/php-files-permissions\/","og_site_name":"joapen projects","article_published_time":"2011-01-30T20:30:00+00:00","author":"joapen","twitter_misc":{"Written by":"joapen"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/joapen.com\/blog\/2011\/01\/30\/php-files-permissions\/#article","isPartOf":{"@id":"https:\/\/joapen.com\/blog\/2011\/01\/30\/php-files-permissions\/"},"author":{"name":"joapen","@id":"https:\/\/joapen.com\/blog\/#\/schema\/person\/23919df2312175fe9c4609203595b217"},"headline":"PHP, files permissions","datePublished":"2011-01-30T20:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/joapen.com\/blog\/2011\/01\/30\/php-files-permissions\/"},"wordCount":100,"commentCount":0,"publisher":{"@id":"https:\/\/joapen.com\/blog\/#\/schema\/person\/23919df2312175fe9c4609203595b217"},"articleSection":["Learning"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/joapen.com\/blog\/2011\/01\/30\/php-files-permissions\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/joapen.com\/blog\/2011\/01\/30\/php-files-permissions\/","url":"https:\/\/joapen.com\/blog\/2011\/01\/30\/php-files-permissions\/","name":"PHP, files permissions -","isPartOf":{"@id":"https:\/\/joapen.com\/blog\/#website"},"datePublished":"2011-01-30T20:30:00+00:00","description":"Sorry, I need to remind this information:Read 4 - Allowed to read files Write 2 - Allowed to write\/modify files eXecute 1 - joapen projects","breadcrumb":{"@id":"https:\/\/joapen.com\/blog\/2011\/01\/30\/php-files-permissions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/joapen.com\/blog\/2011\/01\/30\/php-files-permissions\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/joapen.com\/blog\/2011\/01\/30\/php-files-permissions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/joapen.com\/blog\/"},{"@type":"ListItem","position":2,"name":"PHP, files permissions"}]},{"@type":"WebSite","@id":"https:\/\/joapen.com\/blog\/#website","url":"https:\/\/joapen.com\/blog\/","name":"joapen projects","description":"Just a place to write","publisher":{"@id":"https:\/\/joapen.com\/blog\/#\/schema\/person\/23919df2312175fe9c4609203595b217"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/joapen.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/joapen.com\/blog\/#\/schema\/person\/23919df2312175fe9c4609203595b217","name":"joapen","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/04\/joapen-mini.jpeg","url":"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/04\/joapen-mini.jpeg","contentUrl":"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/04\/joapen-mini.jpeg","width":400,"height":400,"caption":"joapen"},"logo":{"@id":"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/04\/joapen-mini.jpeg"},"sameAs":["http:\/\/www.joapen.com"]}]}},"_links":{"self":[{"href":"http:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/posts\/321","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/comments?post=321"}],"version-history":[{"count":0,"href":"http:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/posts\/321\/revisions"}],"wp:attachment":[{"href":"http:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/media?parent=321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/categories?post=321"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/tags?post=321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}