Skip to main content
added 227 characters in body
Source Link
dewd
  • 179
  • 11
  1. Create a backup copy of the files in the WordPress folder.

  2. Create a backup of the WordPress database. (make sure you know how to restore a database if you need to - we use heidisql to backup and restore).

  3. Copy all site files to a local web server and set up the local web server to have exactly the same domain as your live site. On a windows machine editing c:\windows\system32\drivers\etc\hosts to add 127.0.0.1 example.com is required to ensure the browser resolves to the local machine.

  4. Make a list of all active plugins.

  5. Deactivate all plugins

  6. Upgrade all plugins

  7. Upgrade WordPress, following steps as proompted including upgrading database.

  8. Before activating plugins, see if any more plugins need updating (this can happen - even if you've already completed a round of upgrading them)

  9. Activate each plugin which requires activation 1 by 1. If you're prompted to upgrade plugin at this stage, upgrade it.

  10. Test the site on both the front and back ends. If you get any unrecoverable errors, restore the back up site files to your local server and restore your live backup database and start again from step 6. If you get the same issues again, you may need to do some research into how to resolve them before going any further. If you need to restore you old live site in the meantime, restore the database, and then follow steps 14 and 15 below.

  11. Following successful testing of the site on your local machine, copy the files from your local installation back to your live WordPress folder.

  12. On your local machine, comment out # the entry made in your hosts file in 4 above.

  13. Reverse what was done in 1) above by:

    a) Changing web server config to point to live WordPress site. b) Restoring 404 redirect to what it was before you changed it

  14. Test your site on the live domain.

Note that even though you'll only be upgrading files locally initially, you will be upgrading the live database, and any database backup's/ restores etc refer to the live database ie that used by the live site.

  1. Make a list of all active plugins.

  2. Deactivate all plugins

  3. Upgrade all plugins

  4. Upgrade WordPress, following steps as proompted including upgrading database.

  5. Before activating plugins, see if any more plugins need updating (this can happen - even if you've already completed a round of upgrading them)

  6. Activate each plugin which requires activation 1 by 1. If you're prompted to upgrade plugin at this stage, upgrade it.

  7. Test the site on both the front and back ends. If you get any unrecoverable errors, restore the back up site files to your local server and restore your live backup database and start again from step 6. If you get the same issues again, you may need to do some research into how to resolve them before going any further. If you need to restore you old live site in the meantime, restore the database, and then follow steps 14 and 15 below.

  8. Following successful testing of the site on your local machine, copy the files from your local installation back to your live WordPress folder.

  9. On your local machine, comment out "#" the entry made in your hosts file in 4 above.

  10. Reverse what was done in 1) above by:

    a) Changing web server config to point to live WordPress site.

    b) Restoring 404 redirect to what it was before you changed it

  11. Test your site on the live domain.

  1. Create a backup copy of the files in the WordPress folder.

  2. Create a backup of the WordPress database. (make sure you know how to restore a database if you need to - we use heidisql to backup and restore).

  3. Copy all site files to a local web server and set up the local web server to have exactly the same domain as your live site. On a windows machine editing c:\windows\system32\drivers\etc\hosts to add 127.0.0.1 example.com is required to ensure the browser resolves to the local machine.

  4. Make a list of all active plugins.

  5. Deactivate all plugins

  6. Upgrade all plugins

  7. Upgrade WordPress, following steps as proompted including upgrading database.

  8. Before activating plugins, see if any more plugins need updating (this can happen - even if you've already completed a round of upgrading them)

  9. Activate each plugin which requires activation 1 by 1. If you're prompted to upgrade plugin at this stage, upgrade it.

  10. Test the site on both the front and back ends. If you get any unrecoverable errors, restore the back up site files to your local server and restore your live backup database and start again from step 6. If you get the same issues again, you may need to do some research into how to resolve them before going any further. If you need to restore you old live site in the meantime, restore the database, and then follow steps 14 and 15 below.

  11. Following successful testing of the site on your local machine, copy the files from your local installation back to your live WordPress folder.

  12. On your local machine, comment out # the entry made in your hosts file in 4 above.

  13. Reverse what was done in 1) above by:

    a) Changing web server config to point to live WordPress site. b) Restoring 404 redirect to what it was before you changed it

  14. Test your site on the live domain.

  1. Create a backup copy of the files in the WordPress folder.

  2. Create a backup of the WordPress database. (make sure you know how to restore a database if you need to - we use heidisql to backup and restore).

  3. Copy all site files to a local web server and set up the local web server to have exactly the same domain as your live site. On a windows machine editing c:\windows\system32\drivers\etc\hosts to add 127.0.0.1 example.com is required to ensure the browser resolves to the local machine.

Note that even though you'll only be upgrading files locally initially, you will be upgrading the live database, and any database backup's/ restores etc refer to the live database ie that used by the live site.

  1. Make a list of all active plugins.

  2. Deactivate all plugins

  3. Upgrade all plugins

  4. Upgrade WordPress, following steps as proompted including upgrading database.

  5. Before activating plugins, see if any more plugins need updating (this can happen - even if you've already completed a round of upgrading them)

  6. Activate each plugin which requires activation 1 by 1. If you're prompted to upgrade plugin at this stage, upgrade it.

  7. Test the site on both the front and back ends. If you get any unrecoverable errors, restore the back up site files to your local server and restore your live backup database and start again from step 6. If you get the same issues again, you may need to do some research into how to resolve them before going any further. If you need to restore you old live site in the meantime, restore the database, and then follow steps 14 and 15 below.

  8. Following successful testing of the site on your local machine, copy the files from your local installation back to your live WordPress folder.

  9. On your local machine, comment out "#" the entry made in your hosts file in 4 above.

  10. Reverse what was done in 1) above by:

    a) Changing web server config to point to live WordPress site.

    b) Restoring 404 redirect to what it was before you changed it

  11. Test your site on the live domain.

Source Link
dewd
  • 179
  • 11

I have just upgraded a large WordPress site through a number of environments, taking each one completely offline whilst I performed the upgrade. We're using IIS as the web server, but since I appreciate most people use Apache, I'll try and keep the steps as generic as possible to apply to both setups.

These are the steps:

  1. Take site offline (bear in mind we did this in IIS, so if using Apache, you would need to use Apache's config to do this):

    a) Take a note of how 404 redirects are done in the web config. You'll need this later. Change 404 redirects to point to root of the site, e.g. http://example.com

    b) Change web server config to point to a holding page in a separate folder structure to the one holding the WordPress site. We set up just one file, index.html with a "Website in maintenance" message.

The site is now shutdown and cannot be accessed or updated. It is effectively static whilst you upgrade it - unless you have another web config pointing to the WordPress folder. If you do, take this offline in the same way.

  1. Create a backup copy of the files in the WordPress folder.

  2. Create a backup of the WordPress database. (make sure you know how to restore a database if you need to - we use heidisql to backup and restore).

  3. Copy all site files to a local web server and set up the local web server to have exactly the same domain as your live site. On a windows machine editing c:\windows\system32\drivers\etc\hosts to add 127.0.0.1 example.com is required to ensure the browser resolves to the local machine.

  4. Make a list of all active plugins.

  5. Deactivate all plugins

  6. Upgrade all plugins

  7. Upgrade WordPress, following steps as proompted including upgrading database.

  8. Before activating plugins, see if any more plugins need updating (this can happen - even if you've already completed a round of upgrading them)

  9. Activate each plugin which requires activation 1 by 1. If you're prompted to upgrade plugin at this stage, upgrade it.

  10. Test the site on both the front and back ends. If you get any unrecoverable errors, restore the back up site files to your local server and restore your live backup database and start again from step 6. If you get the same issues again, you may need to do some research into how to resolve them before going any further. If you need to restore you old live site in the meantime, restore the database, and then follow steps 14 and 15 below.

  11. Following successful testing of the site on your local machine, copy the files from your local installation back to your live WordPress folder.

  12. On your local machine, comment out # the entry made in your hosts file in 4 above.

  13. Reverse what was done in 1) above by:

    a) Changing web server config to point to live WordPress site. b) Restoring 404 redirect to what it was before you changed it

  14. Test your site on the live domain.