无法在 Wordpress 的 wp

编程入门 行业动态 更新时间:2024-10-24 12:27:36
本文介绍了无法在 Wordpress 的 wp-content/uploads 中创建目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我无法将任何图片上传到媒体部分.我收到此错误消息:

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

本文发布于:2023-11-02 08:11:30,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1551849.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Wordpress   wp

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!