WordPress.org

Ready to get started?Download WordPress

Forums

Permission error when trying to upgrade? (26 posts)

  1. melspencer
    Member
    Posted 5 years ago #

    OK, I deactivated the automatically upgrade plugin and removed it.
    When I try to upgrade now, it gives me the following on all my sites:

    Downloading update from http://wordpress.org/wordpress-2.7.1.zip

    Unpacking the core update

    Verifying the unpacked files

    Installing the latest version

    Warning: copy(/home/xxx/public_html/wordpress/wp-admin/menu.php) [function.copy]: failed to open stream: Permission denied in /home/xxx/public_html/wordpress/wp-admin/includes/class-wp-filesystem-direct.php on line 122

    Warning: copy(/home/xxx/public_html/wordpress/wp-admin/menu.php) [function.copy]: failed to open stream: Permission denied in /home/xxx/public_html/wordpress/wp-admin/includes/class-wp-filesystem-direct.php on line 122

    Could not copy file: /home/xxx/public_html/wordpress/wp-admin/menu.php

    Installation Failed

    So I tried changing permissions manually and it also works until the next copy needs to be done. Is there something I can do? I mean, it's not really time saving...

  2. gladman
    Member
    Posted 5 years ago #

    Downloading update from http://wordpress.org/wordpress-2.7.1.zip
    
    Unpacking the core update
    
    Verifying the unpacked files
    
    Installing the latest version
    
    Warning: copy(/home/xxx/public_html/xxx/wp-rdf.php) [function.copy]: failed to open stream: Permission denied in /home/xxx/public_html/xxx/wp-admin/includes/class-wp-filesystem-direct.php on line 122
    
    Warning: copy(/home/xxx/public_html/xxx/wp-rdf.php) [function.copy]: failed to open stream: Permission denied in /home/gladman/public_html/gfd/wp-admin/includes/class-wp-filesystem-direct.php on line 122
    
    Could not copy file: /home/xxx/public_html/xxx/wp-rdf.php
    
    Installation Failed

    I am getting same error...how do I recover from this error? It is telling me on the bottom of the dashboard that I using version 2.7.1.

  3. Cocles
    Member
    Posted 5 years ago #

    Same problem here, but it was the wp-atom.php that wouldn't copy.

    Installation Failed.

    Yeehaw.

  4. catholicanarchy
    Member
    Posted 5 years ago #

    Same or similar problem with me... Attempting to overwrite old files w/ new ones, and I have changed the permissions by hand, and they still won't overwrite. I can't even delete the files manually, one by one, in FTP or CPanel...

    Any ideas?

  5. blaszta
    Member
    Posted 5 years ago #

    Same here & like catholicanarchy, I can't change the permission through FTP. Any idea?

  6. tomoiaga
    Member
    Posted 5 years ago #

    Same here. Nobody cares?

  7. Brooke Dukes
    Member
    Posted 5 years ago #

    i got the same issue line 122 of this file is this:

    function copy($source, $destination, $overwrite = false) {
    if( ! $overwrite && $this->exists($destination) )
    return false;
    return copy($source, $destination);
    }

    which seams to have something to do with overwriting files. I'm still fairly new to php but can you have an if statement with out {} wrapped around the statement?

    Thanks,
    Brandon

  8. newbieme
    Member
    Posted 5 years ago #

    same here!!

  9. Brooke Dukes
    Member
    Posted 5 years ago #

    any ideas on this one?

  10. Samuel B
    moderator
    Posted 5 years ago #

    those type of permission problems are usually due to owner of server
    apache
    you
    some assigned name by host

    with filezilla ftp client you can see owner on the far right tab on the upload pane

    also, should be able to tell from control panel of host - if not ask them to allow this function

  11. cgstef
    Member
    Posted 5 years ago #

    I am getting the same error and do not understand the above on how to fix it.

    Warning: copy(/home/xxx/public_html/blog/wp-rss.php) [function.copy]: failed to open stream: Permission denied in /home/xxxt/public_html/blog/wp-admin/includes/class-wp-filesystem-direct.php on line 122

    Warning: copy(/home/xxx/public_html/blog/wp-rss.php) [function.copy]: failed to open stream: Permission denied in /home/xxx/public_html/blog/wp-admin/includes/class-wp-filesystem-direct.php on line 122
    Could not copy file: /home/xxx/public_html/blog/wp-rss.php

  12. cgstef
    Member
    Posted 5 years ago #

    I'm starting to feel like I'm talking to myself here

    Can someone tell me JUST what the PERMISSIONS should be set at?? And where??

    /home/xxxt/public_html/blog/wp-admin/includes/class-wp-filesystem-direct.php

    This is set to 777 and I'm still getting the same error above. I would like to upgrade but the lack of help to this issue is making it hard right now.

  13. chockymonster
    Member
    Posted 5 years ago #

    I've just checked perms and ownership on mine and the others that are failing.
    I'm the owner on all files and folders apart from the uploads folder and any plugins that have been installed automatically.

  14. BHopkins
    Member
    Posted 5 years ago #

    Don't know if it will help you, but I found a solution to my problem.

    My folders were set to 555 instead of 755. I changed them to 755 and ran the upgrader again and it worked.

    Wrong: 555 - /home/***/public_html/example.com
    Right: 755 - /home/***/public_html/example.com

    Hope it helps.
    Brandon Hopkins
    [sig link moderated. please don't]

  15. elbowglitter
    Member
    Posted 5 years ago #

    I'm also getting the same error. Checked the permissions. Can't figure it out.

  16. asfagraphywp
    Member
    Posted 5 years ago #

    i got another error message
    500 'SITE CHMOD 0777 wp-content': command not understood
    : /asfagraphy/ap/0777 wp-content

  17. donnacjcj
    Member
    Posted 5 years ago #

    I've had the same problems and I'm unable to change permissions using Filezilla or directly through GoDaddy!??! Help please!!!

  18. ty
    Member
    Posted 5 years ago #

    I just mentioned this a couple days ago in another post but here it is again. Delete the entire 'upgrade' folder from your wp-content folder in your WordPress install. This will not damage anything, and furthermore I recommend doing so after every upgrade. I've done this many times and in fact, if I neglect to do so before attempting to upgrade again (especially for a core upgrade), the upgrade will generally fail (with similar errors to the ones you guys are describing)! I assume this is because I do not set any of my file/folder permissions to world-writeable (755 or 777)??? I've had sites hacked a few times and as such will not allow my files/folders to have world-writeable permissions.

  19. ty
    Member
    Posted 5 years ago #

    please excuse my mistake (I was a little tired when trolling here, winding down after some long hours of coding)!
    755 is not world-writeable for folders :)
    in fact, 0755 is the proper permission for most folders and 0644 is best for most files (unless you know better).
    peace~

  20. rohfun
    Member
    Posted 5 years ago #

    hello when i upgrade i show this erore
    some one help me

    Downloading update from http://wordpress.org/wordpress-2.8.zip
    Unpacking the core update
    Warning: copy(/inetpub/vhosts/rohfun.com/httpdocs/blog/wp-admin/includes/update-core.php) [function.copy]: failed to open stream: Permission denied in E:\inetpub\vhosts\rohfun.com\httpdocs\blog\wp-admin\includes\class-wp-filesystem-direct.php on line 122
    Could not copy files
    Installation Failed

  21. smmmarti
    Member
    Posted 5 years ago #

    I am getting the same "could not copy:..." error message on everything I try to do with my auto updgrades. Whether it's upgrading wordpress to 2.8.1 or installing/ upgrading plugins. My permissions are all set to allow access.

    What is the explanation for this? I can install my plugins manually, but really don't have the skill, time or guts to go through the manual upgrade or wordpress.

    This problem is far too ubiquitous for it to continue to be unresolved. Please help!

  22. croila
    Member
    Posted 5 years ago #

    Just to say, I'm having this problem of "could not copy files" too ... Any resolution would be greatly appreciated!

  23. petieb
    Member
    Posted 5 years ago #

    I had a similar issue with plug-in updates, it had to do with the permissions on the update folder. I had to change it to 775 for it to be able to update correctly. It had previously been set to 755.

    775 = drwxrwxr-x
    755 = drwxr-xr-x

  24. Marc
    Member
    Posted 5 years ago #

    Any idea?

    Warning: copy(/XXX/license.txt) [function.copy]: failed to open stream: Permission denied in /XXX/class-wp-filesystem-direct.php on line 122

    File could not be copied.: /www/htdocs/XXX/license.txt

    upgrade-folder has already 777 permissions. From where does the script want top copy things?

  25. PeacockAndPaisley
    Member
    Posted 5 years ago #

    I could only get as far as unpacking core update with my 2.8.1 upgrade/update until I deleted the wp-content/upgrade folder. Did the trick. Changing permissions on that folder did not for me.

  26. bbigham
    Member
    Posted 4 years ago #

    I am such a newbie at this I shouldn't be allowed to reply to questions, but I figured out a similar problem on my setup and maybe it will help someone here as well.

    I read that the CHMOD function does not work on Windows based hosting accounts -- only on Linux. I have a Windowss hosting account with GoDaddy and it took me some time but I found that going into Account Manager >> Hosting Control Panel >> Manage Account >> Content >> File Manager leads me (finally!) to a place where I can set permissions.

    I put a screenshot on my site.

    Of course, if your server is hosted with a different company, the process may be different, but perhaps this will help lead you to the right place where you can change the permissions.

    By the way, once I changed the permissions to "read" AND "write" for the site, I was able to make backups, upgrade my WP program, etc. with no problems. As soon as I was done, I went back and changed the permissions back to read only.

    Hope this helps!

Topic Closed

This topic has been closed to new replies.

About this Topic