如何设置在WordPress上传媒体的权限? (Ubuntu 14.04.1,nginx 1.4.6)

我无法find在我的液滴上运行WordPress网站的正确权限。 我遵循本指南来configuration站点: 如何在Ubuntu上configurationWordPress的安全更新和安装

configuration如下:

  • Ubuntu 14.04,nginx 1.4.6
  • nginx用户是www-data
  • /var/www/*wp-user:wp-user
  • 目录设置为755 ,文件为644 ( WordPress文档 )

安全更新和主题/插件安装按预期工作,但尝试通过Web界面上载新媒体时收到以下错误: Unable to create directory wp-content/uploads/2014/11. Is its parent directory writable by the server? Unable to create directory wp-content/uploads/2014/11. Is its parent directory writable by the server?

任何想法,我怎么可以configuration所有者/权限来允许(同时保持安全)?

由于php5-fpm进程以www-data用户身份运行,因此更新wp-content/uploads/目录的用户/组所有权解决了此问题。

 sudo chown -R www-data:www-data wp-content/uploads/ 

感谢AD7six的有用评论!