Recently had an issue where I was unable to upload media within WordPress. Turned out the user and group in php-fpm’s www.conf was incorrect. To fix:

vim /etc/php-fpm.d/www.conf

user: nginx
group: nginx

Restart php-fpm

service php-fpm restart
Written by Matt Cooper
Hi, I'm Matt Cooper. I started this blog to pretty much act as a brain dump area for things I learn from day to day. You can contact me at: