I have three blogs run on WordPress. Each runs on its own installation of WordPress. Why? Because all the single-install solutions I’ve seen were not very attractive. Convince me otherwise.
Following the official instructions, I drew up this set of instructions which work for me.
Hopefully, they work for you too. But I’m sure it’d going to be cryptic at first. My WordPress is installed in the directory wordpress.installed. The webserver looks for www, which is a symlink to WordPress. I change this symlink after the upgrade for testing. This keeps the old install intact, without having to restart the webserver.
First, disable the plugins, but I’m not showing you how to do that.
This step assumes wordpress is installed into the directory www.
cd /wherever/path/of/your/installed/wordpress fetch http://wordpress.org/latest.tar.gz tar -xzf latest.tar.gz mv wordpress wordpress.NEW cp -Rp www wordpress.OLD rm -rf wordpress.OLD/wp-includes rm -rf wordpress.OLD/wp-admin mv wordpress.NEW/wp-includes wordpress.OLD mv wordpress.NEW/wp-admin wordpress.OLD cp -Rp wordpress.NEW/wp-content wordpress.OLD rm -rf wordpress.NEW/wp-content mv wordpress.NEW/* wordpress.OLD/ rmdir wordpress.NEW mv www www.DELETEME && mv wordpress.OLD www
Check the website, if all is well, enable the plugins. If all is well:
rm -rf wordpress.DELETEME latest.tar.gz
If the website was not OK:
mv www wordpress.OLD && mv www.DELETEME www
Fix the problem, then move the directories back.
If all is OK, you’re done.
Do remember to enable the plugins that you disabled.