I'm running an instance of BuddyPress on an AWS ec2 instance. At first I could not uplaod any media to the server - originally all files were root:root. I changed the wp-content folder to apache:apache.
This made it possible to upload the files, but now when someone tries to upload and crop a BuddyPress avatar, the original file uploads to the directory - but after attempting to crop the image, the following error reads:
There was a problem cropping your avatar, please try uploading it again.
I've tried all sorts of user permissions, including 775 and 777. I suspect the problem is something related to AWS: in order to do anyting on the server, I always need to switch to the root user.