• Hi Guys,

    I´m a BEGINNER in LINUX an WORDPRESS and did my first WordPress-Installation. I use Debain Jessie and followed this installation guide:
    http://www.manfred-steger.de/de/tuts/20-der-eigene-webserver-mit-dem-raspberry-pi#

    I’ve been searching for the solution to this for a while and now I’m looking here to get some help. The issue I’m having is that I have been receiving the following message when attempting to upgrade the Core WordPress files.

    Update WordPress
    
    Downloading update from https://downloads.wp.xz.cn/release/wordpress-4.6-no-content.zip…
    
    Unpacking the update…
    
    Could not create directory.
    
    Installation Failed

    Please, can anybody help me?
    I spend a lot of time to get the solution but didn´t find it.

    Please, if you wanna help me and ask me things like “what is…” or “how is…” please let me know, how I can give you the correct answer…

    I think, I need the help step by step.

    PLEASE help me.

    Thank you
    Jens

Viewing 7 replies - 1 through 7 (of 7 total)
  • If you are on Linux then you need to run this command in terminal with path to your your-project-folder-name

    sudo chmod 777 -R /var/www/html/your-project-folder-name

    You can also watch video explaining that on link given below

    1.- 777 gives Read Write Execution privileges to Anybody, its not a good practice..
    2.- Only webserver user needs privileges. -The user who start webserver process-
    3.- You need to know which is webserver user.
    4.- Once you know it, you need to do the following:
    a.- Log into webserver account.
    b.- chmod 644 -R [site-content-root-folder] (read/write privileges to current user, read only to any other)

    In case your Linux Flavor descends of RedHat you must to Know about SELinux.
    and the folder content root must tell us this:
    $ls -Z [site-content-root-folder]/
    $unconfined_u:object_r:httpd_sys_rw_content_t:s0 index.php unconfined_u:object_r:httpd_sys_rw_content_t:s0 wp-cron.php

    if not launch the command:
    $sudo chcon -R -t httpd_sys_rw_content_t [site-content-root-folder]/

    • This reply was modified 9 years, 6 months ago by robertoteles.

    Could be as simple as you’ve run out of disk space on your server. Check that…it was the issue for me just now. Cleaned up an old backup file and my plugin updates worked no problem.

    Cheers,

    Justin

    Justin’s answer was correct in my case, disk space for the site was full, so nowhere to download the update to. Upgraded the disk quota and worked fine.

    Neil

    @skndr thanks a lot ..!! sudo chmod 777 -R /var/www/html/your-project-folder-name
    this commands works …cheers..!!

    Just had this issue and disk space was the culprit in our case as well.
    Thanks @oxponent for the answer.

    chmod will work…but leaves your site wide open to attacks. A person who does that doesn’t have experience with server set up, that advice for 777 is called bad advice. Check your user group permissions.

    • This reply was modified 8 years, 10 months ago by jiggaman.
Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Core or Plugin update: "Could not create directory"’ is closed to new replies.