无法在Wordpress的wp

编程入门 行业动态 更新时间:2024-10-24 14:22:40
本文介绍了无法在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:/wordpress/wp-content的apache,但这也无济于事.

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

发布评论

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

>www.elefans.com

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