On my production server, each time I try to change or upload a user photo I get the "an unknown error occurred" message. If I check the logs, the error says it couldn't delete the folder of the userphotos because it is not writable.
Now I checked the settings and everything is set to 755, the same as the assets folder where I have no problems uploading. The only way I got the userphotos to work is to set the permission on the folder to 777, but that's not the best solution security-wise.
So why isn't the userphotos folder writeable but the assets folder is?
userphotos
folder and what user:group is your web server running as? – Brad Bell Sep 29 '16 at 17:05userphotos
folder owned byclientname:clientname
and webserver as'www-data:www-data
– Jan Van Echelpoel Oct 12 '16 at 9:50chown -R www-data:www-data userphotos
? – Brad Bell Oct 12 '16 at 18:25