There are dozens of articles written about upgrading WordPress to the latest version on Linux machines, but there is little support for Windows/IIS servers. WordPress offers two workflows for upgrading to the latest version, automatic and manual. Manual mode requires the user to download the latest zip and copy files into the wordpress site directory. Automatic runs through an installation/upgrade script on the web and requires no manual deployment. However, during an upgrade on Windows Server 2008 R2, I stumbled across a Could not create Temporary File error. This error prevented the automatic update from performing its duties. Well, I wasn’t ready to perform the manual upgrade on every new patch that WordPress released, so I was determined to find the solution. After browsing the web, I finally found a shed of light and I thought I would relay this nugget of information for any other administrator seeing the same issue.
On linux machines this “Could not create Temporary File” error is caused by not having read/write/execute (777) permissions to the proper user. You could simply set 777 for everyone, then site can be upgraded, and then reset everyone back to 755. On windows server machines you’ll simply need to add the IUSR with full control to the site folder. Boom, simply navigate to the wordpress administration panel and upgrade.
Leave a comment