Over the last month or so I have been busy migrating my sites from my old shared hosting to a new server in the Rackspace Cloud and it has not been without it troubles. The first site I transferred was my WordPress blog and after following various resources on setting up Nginx and spawning PHP FastCGI processes I managed to get everything up and running happily… or so I thought.
As it turns out I had followed the guide for spawing PHP FastCGI processes to the letter, and that is where the problem lay. After a few weeks WordPress reported there were various plugins that needed upgrading but I could not do the automatic upgrade and I had trouble uploading new files due to the wrong permission being applied. After some investigation this lead me to realise that I needed to spawn my PHP FastCGI processes as the unprivileged user the files belonged to, and not nginx as in the original documentation.
continue reading…