The easiest way to upgrade your wordpress in minutes is through SSH. With the latest release of WordPress 2.7, you could try to upgrade your wordpress in this method. In most of the share hosting including hostgator (my hosting company), it does include SSH but it is not activated. Therefore you will have to request from them that SSH be activated and they will provide you with a telnet ip (others will be telnet to your domain).
You could use puTTy or you can use your default windows telnet by
- start > run
- telnet 182.xxx.xxx.xxx 2222 (your ip or the domain here & 2222 is the port if requires)
After telnet, you will have to do the following. ** Remember to make a backup of your files before doing update)
- Login via SSH to your host
- Go to a
your domain directory. (most probably type: cd public_html)
- Grab the latest WP archive (type:
wget http://wordpress.org/latest.tar.gz)
- Extract the archive contents (type:
tar xzf latest.tar.gz)
You will see a new directory called wordpress (type: ls -l)
-
Delete wp-includes and wp-admin directories (type: rm -rf wp-includes/) (type:rm -rf wp-admin/)
- Goto the new wordpress directory (type: cd wordpress)
- Update your default wordpress theme and plugin (type:
cp -R wp-content/themes/* ../wp-content/themes/) (type: cp -R wp-content/plugins/* ../wp-content/plugins/)
- Delete wp-content directory (type:
rm -rf wp-content/)
- Copy all latest version of wordpress files and directories and overite your current wordpress (type:
cp -R * ../)
- Deleting the downloaded files (type: cd ..) (type: rm -rf ./wordpress/) (type: rm -f latest.tar.gz)
Careful while using telnet because command like rm-r or rm-rf will delete your folder and files without any warning and there is no way of getting them back. Backup is important and makesure you are at the right directory. Check directory by using the command (type: SSH)
Use this tutorial at your own risk, remember to backup your files before doing and upgrade and deleting.