Home » Wordpress » Manually updating WordPress

1. Perform a complete backup of your installation, ie: files, database, the works. The WordPress plugin BackWPup is excellent for this – a fully automated solution. Here’s the logfile for the backup job below.

2. Disable all active WP plugins.

3. Perform the following (adjust to suit your environment*, and change the wget URL to the latest release):

[niall@host ~]$ wget https://downloads.wordpress.org/release/wordpress-3.9.zip
[niall@host ~]$ unzip wordpress-3.9.zip
Archive:  wordpress-3.9.zip
   creating: wordpress/
  inflating: wordpress/wp-settings.php
<snip>
[niall@host ~]$ cd /var/www/domains/ndonaghy
[niall@host ndonaghy]$ rm -r wp-includes/
[niall@host ndonaghy]$ rm -r wp-admin/
[niall@host ndonaghy]$ cp -r ~/wordpress/wp-includes .
[niall@host ndonaghy]$ cp -r ~/wordpress/wp-admin .
# Before copying wp-content, I will delete style.css from the twentytwelve theme,
# as I want to keep my own customisations -- be sure to do this for any other customised themes
[niall@host ndonaghy]$ rm ~/wordpress/wp-content/themes/twentytwelve/style.css
[niall@host ndonaghy]$ cp -r ~/wordpress/wp-content .
[niall@host ndonaghy]$ cp ~/wordpress/*php .

4. Login as admin to WP (eg: yoursite.com/wp-admin) and click ‘Update database’ (if required).

5. Visit plugins page and enable plugins.

Done! :)

* please see https://codex.wordpress.org/Updating_WordPress for more information