我无法将任何图片上传到媒体部分.我收到此错误消息:
I am not able to upload any images to the Media section. I get this error message:
"无法创建目录 wp-content/uploads/2015/05.是它的父目录吗服务器可写的目录?"
"Unable to create directory wp-content/uploads/2015/05. Is its parent directory writable by the server?"
我尝试更改权限,对上传和 wp-content 目录授予完全访问权限 777,但这没有帮助.
I tried changing the permissions, gave full access 777 to both uploads, and wp-content directory but this didn't help.
我尝试将所有者更改为 apache : apache for/wordpress/wp-content,但这也无济于事.
I tried changing the owners to apache : apache for /wordpress/wp-content, but that hasn't helped either.
upload_path 在 option-media.php 中设置为 wp-content/uploads.还是不行.
upload_path is set to wp-content/uploads in option-media.php. Still it is not working.
尝试定义上传路径 define(UPLOADS, 'wp-content/uploads');没有帮助.
Tried defining upload path define(UPLOADS, 'wp-content/uploads');No Help.
(服务器:centos)
(server: centos)
有人,请帮忙!!!
-提前致谢.
推荐答案Debian 喜欢:
chown -R www-data:www-data /var/www/{yourpath}/wp-content/uploads更多推荐
无法在 Wordpress 的 wp
发布评论