Hi All: I have two wordpress 3.2x blogs running as individual websites on IIS7.5. On one of the websites, I'm able to run the "automatic update" from WP admin, but on the other one, I'm getting a "could not copy files" error when trying to update.
I've been comparing the permissions on both wp-content and wp-admin subdirectories between the two sites, and I have them set identically.
I periodically run into this problem, and have eventually found a thread on google that gave me the proper permissions, but I can't seem to find a definitive answer (or the correct answer) anymore...every time I get the permissions set correctly, I promptly forget to write it down :(
I'm hoping someone can tell me exactly what permissions are required. I've turned on error-logging in PHP and the exact error is:
Warning: copy([path]/wp-admin/includes/update-core.php): failed to open stream: Permission denied in [path]\wp-admin\includes\class-wp-filesystem-direct.php on line 200
where that line in the php file is:
function copy($source, $destination, $overwrite = false, $mode = false) {
if ( ! $overwrite && $this->exists($destination) )
return false;$rtval = copy($source, $destination);
if ( $mode )
$this->chmod($destination, $mode);
return $rtval;
}
and "$destination" is
[path]/wp-admin/includes/update-core.php
I'm presuming the PHP does not have permission to overwrite files or execute in "wp-admin/includes/" for this particular website.
I've tried giving IIS_IUSRS and NETWORK SERVICE "modify" permissions to "wp-admin" (as well as "wp-content") and forced all the child objects to inherit those permissions, but still no go.
Is there any way to debug exactly what's failing?
TIA