{"id":56,"date":"2025-05-09T09:15:41","date_gmt":"2025-05-09T08:15:41","guid":{"rendered":"https:\/\/www.kaitak.org\/?p=56"},"modified":"2025-05-12T08:05:54","modified_gmt":"2025-05-12T07:05:54","slug":"wp-media-not-visible-file-permissions","status":"publish","type":"post","link":"https:\/\/www.kaitak.org\/?p=56","title":{"rendered":"WP media not visible? File permissions?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In our shared hosting installation we discovered that incorrect file and directory permissions prevented our images (media) from being displayed &#8230; probably due to a mistake when transferring the initial WordPress installation from our remote client.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For shared hosting all directory permissions should typically be <code>0755<\/code> and files should be <code>0644<\/code> (except <code>wp-config.php<\/code>, which should be <code>440<\/code> or <code>400<\/code> to prevent other users on the server from reading it). You can read a discussion of this in the WordPress <a href=\"https:\/\/developer.wordpress.org\/advanced-administration\/server\/file-permissions\/\" data-type=\"link\" data-id=\"https:\/\/developer.wordpress.org\/advanced-administration\/server\/file-permissions\/\">file permissions<\/a> documentation, specifically the section on <strong>Shared Hosting with suexec<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To fix the visibility problems we changed the permissions with our standard <strong>FTP client<\/strong> (FileZilla) to recursively set permission of directories and files. Remember that the WordPress installation consists of thousands of directories and tens-of-thousands of files, so be prepared to wait for a few minutes for the client to finish the Job.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In our shared hosting installation we discovered that incorrect file and directory permissions prevented our images (media) from being displayed &#8230; probably due to a mistake when transferring the initial WordPress installation from our remote client. For shared hosting all directory permissions should typically be 0755 and files should be 0644 (except wp-config.php, which should [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":58,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6],"tags":[],"class_list":["post-56","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress"],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.kaitak.org\/wp-content\/uploads\/2025\/05\/1033292_OKBX0S0_800-450.jpg?fit=800%2C450&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.kaitak.org\/index.php?rest_route=\/wp\/v2\/posts\/56","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kaitak.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kaitak.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kaitak.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kaitak.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=56"}],"version-history":[{"count":4,"href":"https:\/\/www.kaitak.org\/index.php?rest_route=\/wp\/v2\/posts\/56\/revisions"}],"predecessor-version":[{"id":160,"href":"https:\/\/www.kaitak.org\/index.php?rest_route=\/wp\/v2\/posts\/56\/revisions\/160"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kaitak.org\/index.php?rest_route=\/wp\/v2\/media\/58"}],"wp:attachment":[{"href":"https:\/\/www.kaitak.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kaitak.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kaitak.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}