[英]New install Wordpress 3.9 is throwing error: “Unable to create directory wp-content/uploads/2014/09” when uploading an image
I did a new install of Wordpress on CentOS 6.5 and when I try to upload an image, I get an error stating: 我在CentOS 6.5上重新安装了Wordpress,当我尝试上传图像时,出现错误消息:
Unable to create directory wp-content/uploads/2014/09
I checked the permissions and groups and I believe everything looks correct. 我检查了权限和组,我相信一切看起来都正确。
//User "apache" is member of group:
apache : apache webadmins
//Permissions on wp-content:
drwxr-sr-x. 4 root webadmins 4096 Aug 29 10:07 wp-content
I've read it should be 755, which it is, but this doesn't allow Wordpress to create any directories in there. 我已经读到它应该是755,但这不允许Wordpress在其中创建任何目录。 What should it be so that it (and any plugins) can create upload directories (yet is secure)?
它(以及任何插件)可以创建上传目录(但还是安全的)应该是什么?
Should it be 775? 应该是775吗?
I checked two other Wordpress servers and one has 770 and the other has 775. Which is correct? 我检查了另外两台Wordpress服务器,其中一台具有770,另一台具有775。哪个正确?
Changing it to 775 should work and be fine. 将其更改为775应该可以正常工作。 The group webadmins needs write permissions.
组webadmins需要写权限。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.