Unable to create directory in wp-content/uploads in Wordpress

前端 未结 19 780
孤独总比滥情好
孤独总比滥情好 2020-12-29 02:20

I am not able to upload any images to the Media section. I get this error message:

\"Unable to create directory wp-content/uploads/2015/05. Is its par

相关标签:
19条回答
  • 2020-12-29 02:47

    For manjaro Linux in the wordpress directory:

    sudo chown -R  http:http wp-content
    

    That worked for me.

    0 讨论(0)
  • 2020-12-29 02:51

    Try following. Make sure {yourpath} is replaced with correct path

    Creates upload directory with super user permission

    sudo mkdir -p /var/www/{yourpath}/wp-content/uploads
    

    Change ownership to the current user

    sudo chown -R $USER:$USER /var/www/{yourpath}/wp-content/uploads
    
    0 讨论(0)
  • 2020-12-29 02:53

    "The uploaded file could not be moved to wp-content/uploads/2015/05."

    This error comes because of insufficient permission to your user on to the server.

    One Quick and dirty way to solve this error is to set 777 permission but some time it may not also work.

    Follow this link this will help you http://2surge.com/how-to-fix-the-uploaded-file-could-not-be-moved-to-wp-content-error-message/

    Thanks

    0 讨论(0)
  • 2020-12-29 02:55

    I had the same problem here on a Parallels Plesk server. I had to change the access permissions for the webserver/website user using the access options from within the file manager.

    Hope this helps!

    0 讨论(0)
  • 2020-12-29 02:55

    Just run this command:

    sudo chown -R www-data /path/to/wordpress
    

    hope it helps.

    0 讨论(0)
  • 2020-12-29 02:56

    If this error is showed after migrating wordpress to new server check upload path in: settings->media->Store uploads in this folder

    default value is wp-content/uploads.

    Probably you have old path.

    0 讨论(0)
提交回复
热议问题