By UnknownP
Wordpress was installed with the 1 click install with CentOS
In wp-admin: Downloading update from https://downloads.wordpress.org/release/wordpress-3.9.zip…
Unpacking the update…
The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.: wp-admin/includes/update-core.php
Installation Failed
In my apache2 error.log: PHP Warning: copy(/home/wordpress/public_html/wp-admin/includes/update-core.php): failed to open stream: Permission denied in /home/wordpress/public_html/wp-admin/includes/class-wp-filesystem-direct.php on line 217
Anyone knows what to do?
Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Ok, what you’ll need to do is login to your server with ssh and use these commands: <br> <br>cd /home/wordpress <br>chmod -R 755 public_html <br> <br>Then try updating wordpress again if that doesn’t work use the commands again but with the permission 777 after you update wordpress set the permissions back to 755. Hope this helps!
It worked! Thanks <br> <br>However the problem with -R is that it touched the files also, which should be set to 644 for best security I believe. <br> <br>Here’s a script I found that will fix that <br>https://gist.github.com/francisbyrne/3731497 <br> <br>It doesn’t let you set what permissions, but if you specific a folder, then choose for folders, it will change only the folders to 755 (as they should) and if you specify only the files, it will change only the files to 644 (as they should) <br> <br>Quite handy
Hmm, somewhat annoying as it seems to have broken plugin installation/uninstallation, but that’s not a huge problem, I can just do what you suggested when I need it. I’ll look into it
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.