If, on your wp-content/uploads directory, 755 doesn’t work, but 775 does it means that the group example.com already contains the ‘php user id’, so you don’t need to do anything else.
More specifically, the web server process (like apache or nginx) both serves your files and runs PHP, so ‘php user id’ really means (is the same as) the web server user ID. It has its own user and group just like you have a user and group. If 775 makes things work it means that the web server process is in the example.com group.
Does that help?
Related Posts:
- Creating directory in uploads – wp_mkdir_p() or WP_Filesystem?
- Convenient way to use wp_filesystem
- Is there a WP Way of getting a filehandle?
- Is fopen() forbidden in WP?
- Converting fopen/fwrite operations to WP_filesystem
- Is it bad to store many files in a single folder?
- External pages redirecting back to wordpress
- WordPress Login doesnt respond after using Filezilla to upload my files on the server
- List of files/folders writable by the web server?
- Save PDF File From Plugin to Filesystem /wp_upload
- accessing files in custom folder in wordpress
- What dependencies should I load and to use the WP_Filesystem?
- What files are safe to delete after a security breach in WP content folder?
- Failed opening required
- Correct file permissions for in-browser updates using WP-CLI
- WordPress installation on digitalocean eating the server storage
- Serve contents from Nextcloud / WebDAV
- temphangle variable missing when using wp_filesystem copy
- How to write to a text file and save it in a folder for later download?
- 403 Error on “/”
- Get names and paths from unzip_file()
- Should I use Filesystem API for reading files or listing directories?
- saving file to external server vip
- Time limited file download upon form submit
- Does unzip_file() over-write by default?
- What is the difference between the .po .mo and .pot localization files?
- Where to store PHP files created by plugin / themes
- How to convert the file path to a URL of the same file?
- Do WordPress Core Filenames Work as Hooks?
- add/apend templates ‘transparently’ via plugin to currently active theme or child theme?
- delete uploaded file
- Necessary user, group and permissions for core updates
- Moving wp-content outside of web root?
- Why do I get undefined function export_wp()?
- $wp_filesystem returns NULL. What are the dependencies?
- Merging PHP download script into `functions.php`
- How do I edit the php/html for a particular post?
- Setting wp_temp_dir and permissions not working for “Missing A Temporary Folder” error
- Which actions can update/change .php files?
- Standard permissions for wordpress; Plugin installation asks for FTP credentials
- sanitize attachment filename
- How to move WordPress theme files into a subfolder without breaking the theme?
- Uploading Media gives error “Missing a temporary folder.”
- What are the hierarchy of filenames while initialising a WordPress plugin?
- What is the best way to move a plugin´s subdirectory+files to wp-content/uploads-directory?
- Can’t write pdf file to upload directory using FPDF
- Change default uploads file using wp Skeleton
- Securing a multi-user permission structure
- Adding Adobe files to a wordpress site [closed]
- Placing assets for external use
- How to check if txt file exists inside template folder?
- Can I delete `wp-config-sample.php` after installing and configuring WordPress?
- Files automatically added
- WordPress HTTP Error on File upload
- What permissions should I give directories if I want to make WordPress more secure?
- Where do I save widget code for wordpress?
- Plugin writing: access file that was just uploaded
- How to implement filesystem cache in WordPress
- Image URLs stopped working due to Permalinks?
- “dashboard”-named PHP file doesn’t get included
- How to first edit in local WordPress editor on page and the add code?
- WordPress and plugins can’t update (“inconsistent file permissions” error)?
- Why is server preventing admin styles? (Was: Where are WordPress sessions saved?)
- How to know which ajax file or function is called for action
- Alternative to file_get_contents() for theme operations
- Can WP plugins access files outside the installation folder?
- How to edit php code in WordPress Post file?
- Running rmdir function on post save
- WordPress Creates Unused (Unregistered) Image Sizes
- Why does WP load so many files in the head of source code? How do I optimize it?
- Adding regular php file to site
- Should I store critical css in the database or in my theme’s filesystem?
- Removing the references to the wp-content folder
- Right way to download file from source to destination
- Cleaning a filename after image sideloading a url that contains `%20`
- Generating and downloading files with WP API
- How to prevent users to view server files using WP File Manager plugin?
- Where to store sensitive uploaded file?
- How to handle a lot of media files in the uploads folder? (+10.000)
- Downloadable content file structure
- Creating an .ics calendar subscription service with wordpress
- How to include all files within a folder & its sub folders to functions.php?
- How to Call Function From Separate WordPress Install on Same Server?
- FS method direct on NGINX
- Avoid ‘uploads’ 777 permissions: Potential threat or clean solution?
- Using external file with WP_USE_THEMES set to false causing 404
- Get original path of user’s filesystem of an uploaded media
- Making a custom upload form and page in the admin section
- Displaying $_FILES data (simlar to $_POST)
- wp_redirect to file:// location results in blank page/cannot be displayed page
- No error in debug mode, wordpress template can not be loaded
- FTP file manager AS wordpress site
- Accessing a file saved outside webroot in a wordpress post
- Plugin installation works only with FTP – how to debug?
- How do I upload my WordPress code files from previous website onto local host WordPress website?
- File doesn’t exist! in wordpress function.php file while creating new post or page
- WordPress files owner changed silently
- How can I get blog content from SFTP?
- Do Not Back Up? Is there any accepted way to tell backup and clone plugins to skip a certain file? [closed]
- WordPress – tracking options