dongmi1221 2015-11-16 10:22
浏览 153

WordPress管理媒体上传权限

I have a access to the server where many wordpress blogs are hosted. Initially the permission to uploads folder were set to 777(Recursively) but this caused problems to our server and malicious files where uploaded due to which our server is blacklisted.

I have deleted all those PHP files under uploads folder and set the permission to 755.

Now the problem is that the admin users to wordpress blogs/sites unable to upload media files.

Please guide me what I can do so that they can upload files (images or videos).

Can we set something which will ask FTP details when they upload files using wordpress admin. I can create FTP users for this.

Please Guide.

  • 写回答

3条回答 默认 最新

  • douhui2307 2015-11-16 11:06
    关注

    Not sure what type of error you are getting. But you can try this

    add this line to

    define('UPLOADS', 'wp-content/uploads');
    

    wp-config.php

    just before below line

    require_once(ABSPATH.’wp-settings.php’);
    

    If the directory doesn’t already exist, WordPress will automatically create it as long as the wp-content folder is writeable.

    评论

报告相同问题?

悬赏问题

  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料