• Hi,

    I tried to upgrade from 3.5.1 to 3.9.

    Downloading update from https://www.ads-software.com/wordpress-3.9.zip…
    
    Unpacking the update…
    
    Could not copy files.
    
    Installation Failed

    The Plugins could be upgraded but the wordpress not.
    I tried to set 777 to upgrade directory but it didn’t help.

    While upgrading a temporary directory will be created.

    ....../wordpress/wp-content/upgrade# ls -al
    total 12
    drwxrwxrwx 3 www-data www-data 4096 May  6 11:51 .
    drwxr-xr-x 6 www-data www-data 4096 May  6 11:41 ..
    drwxr-xr-x 3 www-data www-data 4096 May  6 11:51 wordpress-3.tmp

    apache error log:

    [Tue May 06 11:51:56 2014] [error] [client ...] PHP Warning: copy(/var/www/wordpress/wp-admin/includes/update-core.php): failed to open stream: Permission denied in /var/www/wordpress/wp-admin/includes/class-wp-filesystem-direct.php on line 200, referer: ......../wordpress/wp-admin/update-core.php

    Now I gave 777 to wp-admin with -R:

    Downloading update from https://www.ads-software.com/wordpress-3.9.zip…
    
    Unpacking the update…
    
    Verifying the unpacked files…
    
    Preparing to install the latest version…
    
    Enabling Maintenance mode…
    
    Copying the required files…
    
    Disabling Maintenance mode…
    
    Could not copy file.: wp-links-opml.php
    
    Installation Failed

    Anyone any idea?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dieseldriver

    (@dieseldriver)

    solved!

    before upgrade:
    chmod -R 777 <wordpress-directory>

    after upgrade:
    chmod -R 755 <wordpress-directory>

    Out of interest, what are/were the permissions on /var/www/wordpress/. Maybe www-data doesn’t have write permission because it’s owned by your user account and there’s no group write access?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘automatic WP upgrade fails’ is closed to new replies.