Upgrading WordPress, the Simple Way

I’m not sure why some instructions make simple task difficult, but here is how I upgrade WordPress…

Backup current ‘wordpress’ directory and database.

  1. cp -a wordpress/* /usr/local/bk/wordpress/
  2. mysqldump --user=root --password=XXX wordpress > /usr/local/bk/wordpress/wordpress.sql

Download and extract latest version of WordPress.
This will unpack a directory called ‘wordpress’ so be careful where you do this and how.

  1. wget http://wordpress.org/latest.tar.gz
  2. tar -xzf latest.tar.gz

Copy the newer wordpress files over the current base. This will not overwrite files ‘.htaccess’ or ‘wp-config.php’, or anything else that was placed or generated after the initial install.

cp -r --reply=yes wordpress/* /path/to/current/wordpress/dir/

Run upgrade script.

http://www.example.com/wordpress/wp-admin/upgrade.php

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>