WP media not visible? File permissions?

In our shared hosting installation we discovered that incorrect file and directory permissions prevented our images (media) from being displayed … 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 be 440 or 400 to prevent other users on the server from reading it). You can read a discussion of this in the WordPress file permissions documentation, specifically the section on Shared Hosting with suexec

To fix the visibility problems we changed the permissions with our standard FTP client (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.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.