You’ll want directories to have 755 and files to have 644.
you can navigate to your www directory and use these 2 commands:
find . -type d -print0 | xargs -0 chmod 0755 # For directories
or
find . -type f -print0 | xargs -0 chmod 0644 # For files
(Obviously don’t input the # or anything after it when using the above 2 commands)
Related Posts:
- Basic File/Post restriction plugin
- simple solution for restricting access to (some) uploads/downloads
- Can’t upload media, permissions are correct
- Media not actually deleted on disk when click “Permanent Delete”
- Protecting direct access to PDF and ZIP unless user logged in (without plugin)
- WordPress monthly upload directory owner set to root
- can not upload file .vtt on wordpress 5.0.1
- What are the security reasons to disallow Microsoft Word uploads?
- Password protect some uploaded files, so only logged-in users can view them
- How to protect uploads in multisite if user is not logged in?
- Moving Media Library
- File Upload Permissions
- Maximum upload size changes in php.ini ignored – How to remove upload size limit?
- Extend the list of MIME-types supported by the builtin uploader in 3.3
- What error logs can I check to see why plugin updates are failing?
- How to safely allow user upload on CPTs?
- Copying uploaded images not working in wordpress
- The uploaded file exceeds the upload_max_filesize directive in php.ini
- making media URL secured
- Is it safe to allow non-admin users access to media uploader
- Hide images from anonymous user?
- Saving file to disk receiving fopen error
- User permissions to upload images
- Is it safe to upload JSON files to upload folder?
- Setting up a HIPAA secured form / file upload
- wordpress upload permission on nginx & ubuntu
- How do I force WP to set upload directory permissions correctly?
- How to upload prc file type?
- Where to store sensitive uploaded file?
- Unable to upload anything to WordPress site
- I migrated WPMU site: Unable to create directory uploads/… Desperate for help!
- WP upload/select image , isn’t this a security issue?
- What is the best way to upload a temporary & sensitive file and then delete it when done
- Used Duplicator to transfer a site. Now my media uploads aren’t working
- Problem uploading files, after changing domain name
- Cannot upload themes. Error: “The uploaded file could not be moved to /var/www/wp-uploads/localhost/2011/10.”
- Auto shortlink for file uploads
- How to parse an image that was just uploaded to make sure it doesn’t contain malicious code?
- Use a separate custom table (not posts) to handle file upload data
- Custom upload directory per CPT; when removed, file not deleted
- Modify featured image path to Amazon S3
- How to set an upload directory for each media type?
- WordPress Media Manager – limit to specific mime type
- Override json encoding in rest api
- Prevent users from accessing mp3s in my uploads folder?
- Manipulating Media uploader
- How to set file type in wp_handle_upload?
- Benefits of storing uploads in an assets folder?
- Create custom tab in WordPress 5 media upload
- Add/change multipart_params parameter when uploading post image
- How to change the image size in new Media Uploader (ie use medium vs thumbnail)
- Gravity Forms – Repeatable “File Upload” field using “gform_column_input_content” filter [closed]
- Intercept request to /wp-content/uploads/random.file
- Add media attachment filter to custom wp.media frame
- How to proxy local WP uploads folder to live site
- Front-end Image Upload with Preview – Is this Possible in WP?
- How to change “Publish” button text for specific page
- How can I receive the image id using the media box?
- Placing assets for external use
- add_image_size() and uploading the exact size leaves 1×1 image in uploads
- Split up files from one big folder to multiple folders in uploads after migration
- WordPress uploads autocreate folder every month
- Enabling users to upload files
- Extra “uploads” added in path
- Is there a way to make my media files unsearchable?
- Attach media to post by media category
- Rename attachment filenames to attachment ID on upload
- WordPress Media Library showing wrong preview size?
- upload_max_filesize is set to 64 MB already but WordPress is still showing 2 MB
- How to fix the orientation of images when uploading via the WordPress Media Uploader? [closed]
- Uploading PDF files from the front-end
- Uploads going to the root of wp-content/uploads
- WordPress Images, Header Videos and Carousel is not working live but perfect on Local Host Is It FTP? Filezilla?
- Can’t upload images (incorrect “file exceeds upload_max_filesize” error)
- Anybody knows if i could upload a leaflet or openlayers3 map to wordpress webpage?
- Theoretical limit of upload file size [duplicate]
- Remove Media File Items From Server That Do Not Exist in Media Library
- All my files are on my blog! I need sync solution
- Efficient way to move media folder to another folder
- Limit users to specific uploads
- media file uploading
- Editor User Role can’t see other users media
- How to allow .ged file uploads
- Media files not loading
- problem when uploading file by metaboxes
- What folder to place Large Video files?
- WordPress Upload Speed
- Organizing the Media Library for Cleanup
- Allow author to upload image via Media button without plugin
- Make custom thumbnail size image in media_sideload_image function
- Upload file to front-end form and send as email attachment
- uploading photos
- Multi site and media uploader
- Host Images from Link
- Upload media error: unable to create directory (windows hosting)
- Add frontend editor with media buttons for Visitors and display only their media
- Can’t upload files 1MB+ [closed]
- WordPress Custom Fonts Problem! [closed]
- I want to customize wp.media (the wordpress admin uploader) in order to change the file name but only in video custom post type
- Assign multiple categories to Media Library upload