Updating drupal 7 core (local procedure)

Note: in instructions below, 7.ZZ is installed version of drupal 7.

  1. Switch site into maintenance mode
  2. Copy latest drupal-7.XX.tar.gz into /root/downloads
  3. cd /home/notes/untar_here
  4. tar zxvf /root/downloads/drupal-7.XX.tar.gz
  5. /root/fix_drupal_perms drupal-7.XX (old)
  6. cd drupal-7.XX (old)
  7. mv drupal-7.XX ..
  8. cd ../drupal-7.XX
  9. rm -fr sites
  10. rsync -vauH ../drupal/sites .
  11. cd ..
  12. service httpd stop
  13. rm drupal (softlink)
  14. ln -s drupal-7.XX drupal
  15. service httpd start
  16. Visit https://notes.bitfunnel.net/update.php
  17. Take site out of maintenance mode

Tags: