简体   繁体   English

新安装的Wordpress 3.9抛出错误:上传图像时“无法创建目录wp-content / uploads / 2014/09”

[英]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.

相关问题 尝试在Wordpress中上载图像时,错误“无法创建目录/ wp-content / uploads”的所有可能的解决方法是什么? - What are all the possible fixes to the error 'Unable to create directory /wp-content/uploads' when trying to upload images in Wordpress? 无法创建目录 wp-content/uploads/2014/07。 服务器是否可以写入其父目录? - Unable to create directory wp-content/uploads/2014/07. Is its parent directory writable by the server? 无法在 Windows Server 2016 中的 WordPress 中创建目录 wp-content - Unable to create directory wp-content in WordPress in a windows server 2016 无法创建目录 wp-content/uploads/2022/12。 它的父目录是否可被服务器写入? - Unable to create directory wp-content/uploads/2022/12. Is its parent directory writable by the server? WordPress不会在wp-content / uploads下创建图像目录 - Wordpress doesn't create the directory for images under wp-content/uploads Wordpress 错误:“上传的文件无法移动到 wp-content/uploads” - Wordpress error: 'The uploaded file could not be moved to wp-content/uploads' WordPress 3.8:无法找到wordpress内容目录(wp-content) - WordPress 3.8: unable to locate wordpress content directory (wp-content) Wordpress (wp-cli):无法导入文件。 原因:上传的文件无法移动到 wp-content/uploads。 权限错误? - Wordpress (wp-cli): Unable to import file. Reason: The uploaded file could not be moved to wp-content/uploads. Permissions error? Wordpress上传的文件无法移动到wp-content / uploads - Wordpress The uploaded file could not be moved to wp-content/uploads 替换图像URL wordpress中的wp内容 - Replace wp-content in image urls wordpress
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM