{"id":59,"date":"2011-09-27T16:13:52","date_gmt":"2011-09-27T16:13:52","guid":{"rendered":"http:\/\/devopsny.com\/blog\/?p=59"},"modified":"2013-03-04T21:16:20","modified_gmt":"2013-03-04T21:16:20","slug":"how-to-reset-file-permissions-on-magento-base-directory","status":"publish","type":"post","link":"https:\/\/devopsny.com\/blog\/2011\/09\/27\/how-to-reset-file-permissions-on-magento-base-directory\/","title":{"rendered":"How to reset file permissions on Magento base directory"},"content":{"rendered":"<p>These commands will reset the file permissions on the base Magento installation to the correct permissions:<\/p>\n<p>&nbsp;<\/p>\n<div>\n<div>\n<ol>\n<li>\n<div>find . -type f -exec chmod 644 {} \\;<\/div>\n<\/li>\n<li>\n<div>find . -type d -exec chmod 755 {} \\;<\/div>\n<\/li>\n<li>\n<div>chmod o+w var var\/.htaccess app\/etc<\/div>\n<\/li>\n<li>\n<div>chmod 550 pear<\/div>\n<\/li>\n<li>\n<div>chmod -R o+w media<\/div>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>These commands will reset the file permissions on the base Magento installation to the correct permissions: &nbsp; find . -type f -exec chmod 644 {} \\; find . -type d -exec chmod 755 {} \\; chmod o+w var var\/.htaccess app\/etc chmod 550 pear chmod -R o+w media<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[16,28],"tags":[21,213],"class_list":["post-59","post","type-post","status-publish","format-standard","hentry","category-linux","category-magento","tag-linux-2","tag-magento"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3fcrv-X","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts\/59","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/comments?post=59"}],"version-history":[{"count":2,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts\/59\/revisions"}],"predecessor-version":[{"id":61,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts\/59\/revisions\/61"}],"wp:attachment":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/media?parent=59"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/categories?post=59"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/tags?post=59"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}