着急,无法将上传的文件移动至wp
本帖最后由 bidi 于 2024-10-16 01:34 编辑无法将上传的文件移动至 wp-content/uploads/2024/10。
网站换域名了,同台服务器给网站搬了个家,老域名跳转到新域名。然后新域名上传图片就出现这个错误。
搬家很多次,第一次出现这个错误。刚又测试了老网站,是正常的。就把文件、数据库复制到新域名,怎么就出错了 ?
百度的这些都检测了,都正常。求大神帮看看
https://pic.imgdb.cn/item/670e9e80d29ded1a8c793bbd.png
用户投稿上传图片出错日志:
2024/10/15 23:37:45 29162#0: *986626 FastCGI sent in stderr: "PHP message: PHP Warning: imagejpeg(../../../../wp-content/uploads/2024/10/erphpdown/a1f158148515667b7e4e2161969a634e.jpg): failed to open stream: Permission denied in /www/wwwroot/www.mu.com/wp-content/themes/modown/action/image.php on line 41" while reading response header from upstream, client: 223.66.176.150, server: www.mu.com, request: "POST /wp-content/themes/modown/action/image.php HTTP/2.0", upstream: "fastcgi://unix:/tmp/php-cgi-74.sock:", host: "www.mu.com", referrer: "https://www.mu.com/tougao" www.mu.com 是新域名吗 权限不对
chown -R www-data:www-data wp-content
页:
[1]