• Hello. (sorry for my english, it’s not my native language)
    I’m using 4.7.3 version, trying to update to 4.8.

    Auto updates don’t work, if i manually press “Update now”, then

    Downloading update from https://downloads.www.ads-software.com/release/ru_RU/wordpress-4.8.zip…
    Unpacking the update…
    Could not create directory.: wordpress/wp-admin/css/colors
    Installation failed

    it’s the wrong path. Folder wp-admin is on the same level with folder wordpress.
    In options.php upload path is correct /var/www/html/wp-content/uploads.

    Whole directory with wordpress installed have permissions 777, owner www-data.

    Need help, where should i search an error?

Viewing 3 replies - 1 through 3 (of 3 total)
  • OK, but can you check to which user/group do the files/folders belong to?

    If they belong to wrong user/group you wont have write rights, so the update will break.

    Thread Starter raduzhka

    (@raduzhka)

    @mrky007 the ownership is correct (there is only 2 options – root and www-data; i have exactly the same VM, it’s clone, i don’t have this problem there), but the issue is that it tries to create folders in the wrong directory
    it should be /var/www/html/wp-admin/.. , but it is
    /var/www/html/WORDPRESS/wp-admin/…
    (the wordpress folder is empty, all content is on wp-admin folder)

    Forget to point – it the wp-config.php i added this (hoped it would work)

    define( ‘FTP_BASE’, ‘/var/www/html/’ );
    define(‘FTP_CONTENT_DIR’, ‘/var/www/html/wp-content/’);
    define(‘FTP_PLUGIN_DIR ‘, ‘/var/www/html/wp-content/plugins/’);

    and

    define(‘FS_METHOD’,’direct’);

    Plugins don’t update as well, approx same error “can’t create directory, can’t copy file…”

    • This reply was modified 7 years, 5 months ago by raduzhka.
    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    @raduzhka, Sorry, please ignore the post that asked you to contact them off skype (which I’ve deleted).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error while updating WordPress core (can’t create directory)’ is closed to new replies.