Resolved by editing the following file:
/etc/php-fpm.d/www.conf
You can set user:group for php-fpm to reference for the web handler via the following lines:
; Unix user/group of processes
; Note: The user is mandatory. If the group is not set, the default user's group ; will be used.
; RPM: apache user chosen to provide access to the same directories as httpd
user = nginx
; RPM: Keep a group allowed to write in log dir.
group = nginx
It defaults to apache:apache
Changed this to nginx:nginx
and restarted php-fpm:
systemctl restart php-fpm.service
Related Posts:
- WordPress media upload “HTTP error”
- NGINX rewrite rules for multisite
- Sudden Upload HTTP errors, PHP uploads and memory limits are already to high to my taste. Anything else?
- 403 (Forbidden) delete file image in themer folder
- How to change upload directory in wp_handle_upload
- Uploading media with the REST API
- cURL 28 error after switch from to brew php 7.2 on localhost
- Adding a custom image upload size and making it selected by default?
- Image Upload “exceeds the maximum upload size for this site”, but php.ini is correct
- Remove admin bar for subscribers
- Failed media upload: “The uploaded file was only partially uploaded.”
- Create Image Uploader for Widget
- Allow authors to post only in categories they create in WordPress
- How to resize image on client-side before upload?
- Specified file failed upload test. wp_upload_handle
- Accessing a random image via ajax
- Is it unsafe to put php in the /wp-content/uploads directory?
- Image upload via FTP to wordpress media library
- Get list of WP Updates Across Sites
- Restrict WordPress File Type Uploads by User Type
- Modify Maximum upload file size text
- Mysterious HTTP 404 header in my own scripts
- Use WordPress’s Media Uploader/ Manager in non WordPress php application
- Upload a json file in php [closed]
- PHP Code stuck in Cache [Memcached] [closed]
- is it possible to force wordpress to always save thumbnails as ‘jpg’ not ‘png’
- WordPress (3.9.1) MultiSite Permissions. Is chown the answer?
- Randomise upload filenames (or another solution to hide the original image URL from theft?)
- how to retrieve uploaded url of zip files
- Why is $_REQUEST an empty array in admin-ajax.php?
- Correct folder permissions?
- How to upload a file to a folder named after the user_id via plugin
- Incorrect MIME type for assets with Valet
- Upload multiple images to a Woocomerce product
- WordPress & Fastcgi proper setup?
- custom user role wordpress – grant guest access to edit.php without insert/update/delete
- Cannot execute php files in wp-content
- What is the alternative to “ when it comes to calling Media (image) files in the ‘attachment.php’ file?
- Upload file could not be moved to wp-content/uploads
- Enable custom logo upload if logo is not in header
- WordPress installation permission errors
- How do I get around “Sorry, this file type is not permitted for security reasons”?
- Change WordPress Upload Folder using wp handle upload
- How do I Import / Upload Files with jQuery AJAX?
- WordPress automatically adds links to uploaded images
- Update a buggy installation
- Blob file download problem
- zip unzip attachments in wordpress
- Upload multiple files in randomly generated folder using wp_upload_bits
- Environment to do updates to legacy (4.7) version of WP while staying on php 5.6?
- Can’t upload CSV file to plugin directory using custom upload form in admin panel
- WordPress upload file size error even after raising php limits
- Get uploaded image and attach it to the new post
- How to Update an old theme for the latest wordpress version
- Get featured image with custom size outside WordPress
- Why is my max_upload_filesize being limited to 2M? [duplicate]
- Images Uploaded saving onto older/previous year folders
- Convert canvas to image and upload image to server
- How to get the filename from file system and create a download link?
- Nginx WordPress and another Web app URL structure
- Get URL of Featured Image After wp_insert_post()
- Creating a child theme after numerous edits to parent theme
- custom plugin with upload files does not work
- How to Make Thumbnail of Post Stay Animated
- Convert all uploaded PNG files to PNG-8 format
- Migrating site, only header shows
- How to decrease the max file upload size without using php.ini or htaccess?
- Uses for function: wp_update_user
- Some problems in custom widget
- Infinite Loop in WordPress Installation
- Checking page before applying image restrictions while uploading
- Change image data durgin upload
- Hook on file upload
- Problem with inserting multiple images in gallery of each WooCommerce product programmatically
- WordPress on Ubuntu – “File not Found” for home.php – Trying to Redirect to Root Folder
- How to route root path / to /xyz in nginx?
- Why can’t I connect to the wordpress install page with Nginx?
- WordPress PHP version
- WordPress/NGINX not respecting the category URL for new posts
- Change upload URL by mime type
- WordPress and WordPress-test-lib not getting added to tmp folder
- When working with a post, almost all wp_postmeta are deleted
- I want url from a file in media using title file
- Crop an image after upload on custom account page
- media_handle_upload fails with gravity form submitted image
- Restrict File Type Uploads by User on Wordress via functions.php
- Renaming “Expand Details” within “Add Media”
- Save the outputted image into the Media Library, with a different filename and extension
- File path for attachments outside of wp-content/uploads
- WordPress will suddenly stop saving files uploaded by my code (ran in nopriv ajax)
- Name Input from widget displays Sidebar name instead of saved data
- Can’t upload files
- Keeps asking Connection Information upon update to 3.5.1 (but not for plugins?)
- File Upload with Server in safe_mode
- Edit Image/Image Details – Replace button missing
- Correct Syntax for uploading files to custom directory in WordPress
- Check if username doesn’t exists
- How to automatically convert images to WebP on WordPress?
- Generate and upload screenshot as featured image for user-submitted post
- Pull latest Youtube Video from json url and make new post