WordPress上传文件提示“无法建立目录uploads”的解决方法

新建文章的时候,上传文件或图片时一直提示“无法建立目录uploads/2015/05。有没有上级目录的写权限?”错误,尝试过修改相关文件目录权限为777仍然无解。

 

 

1
mkdir  uploads #在wp-content目录下创建 uploads文件夹

 

2
chmod 777 uploads #修改uploads文件夹权限为777

 

然后就可以上传图片了


Warning: Use of undefined constant wp_related_posts - assumed 'wp_related_posts' (this will throw an Error in a future version of PHP) in /var/www/html/afox/wp-content/themes/minty/functions.php on line 206

Warning: Use of undefined constant related_entries - assumed 'related_entries' (this will throw an Error in a future version of PHP) in /var/www/html/afox/wp-content/themes/minty/functions.php on line 207
分享到:

发表评论

昵称

This site uses Akismet to reduce spam. Learn how your comment data is processed.

沙发空缺中,还不快抢~