I gave full permissions to IUSR (local IIS user) to the wp-content directory, which got me a little further. It actually created the upgrade folder for me but am now getting a different error (I am sure it’s still a permissions error).
Downloading update from http://wordpress.org/wordpress-3.1.2.zip…
Unpacking the update…
Could not copy files.
Installation Failed
I am assuming that you are copying this to a local PC as you mention the IIS_USER permissions.
The quickest, and probably safest way to do this is to ftp the zip file down into your PC. then use an unzip program to unzip the files into your root directory for your locall web page, http folder or wwwroot folder depending on systems.
I think this might be a safer route that changing permissions, as you can never be sure what permissions are where and, more importantly, what level of security you are breaking/overwriting.
No I am not copying this to a local PC. I am using the ‘upgrade automatically’ option.
I am almost 100% it’s a permissions issue, I just don’t know what permissions to give what on IIS 7.5. Apparently, the same permissions that are needed for uploads are different than those for upgrades.
if you are not working locally, how can you change the permissions for IIS_User?
The same information is probably valid, just use the ftp to site rather than copy to local directory. Basically a manual upload of the files. If you need to change permissions for files to run be careful, many filesystemes don’t allow 777 and don’t work – usually forcing you to use 775 or similar
http://codex.wordpress.org/Changing_File_Permissions
http://wordpress.org/support/topic/wordpress-file-permissions?replies=6
might help
Yes, I know I can do it manually but that’s not what I really want. I would like to know the current permissions that I need to set in order for WordPress to upgrade automatically.
BTW, I am using IIS 7.5 (Windows Web Server 2008 R2). So cmod permissions don’t really work in my setup. I have to figure out which users and what permissions are needed.
I run Server 2008 installations for clients and can I suggest that unless there is no other operations running on this server you don’t change any user permissions. You don’t say how this is running, commercial server, external hosted service, local usage behind a firewall etc.
If you change anything it should be the permissions on the folders, not the user. IIS works differently to Apache reagarding rewrites etc.
http://learn.iis.net/page.aspx/460/using-the-url-rewrite-module/ might help with the rewrite issue.
As far as permissions go for folders, I would suggest you try and reset your user permissions to their original state.
Check your web root folder, where that is and reset the permissions to allow access from your IIS Users. Check your database settinga as well. You don’t say if you have uploaded the Mysql and if that runs OK. As far as I remember the difference between uploading and running are based on the permission set to the files and folders. The read and execute permissions will run the files, you will need write and modify to write (upload) to the folders/files. Check your users ftp access permisiions on the folders.
If this were my setup I would have created a wordpress group and user and controlled permissions from there. I do the same for FTP access, one group, one account in the group, one place to close off access in emergencies.
I know this is obvious, but for my own sake I must say:- if you have control over user and file permissions at high levels on an open server then you must ensure that security is set at the highest level.