Advertisement
flycat

Drupal version update

Apr 5th, 2013
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. http://drupal.org/node/1223018
  2.  
  3. Log in as a user with the permission "Administer software updates".
  4. Go to Administration > Configuration > Development > Maintenance mode. Enable the "Put site into maintenance mode" checkbox and save the configuration.
  5. Remove all old core files and directories, except for the 'sites' directory, the original install profile in the 'profiles' directory and any custom files you added elsewhere.
  6. If you made modifications to files like .htaccess or robots.txt, you will need to re-apply them from your backup, after the new files are in place.
  7. Sometimes an update includes changes to settings.php (this will be noted in the release announcement). If that's the case, replace your old settings.php with the new one, and copy the site-specific entries (especially the lines giving the database name, user, and password) from the old settings.php to the new settings.php.
  8. Download the latest Drupal 7.x release from http://drupal.org/project/drupal to a directory outside of your web root. Extract the archive and copy the files into your Drupal directory.
  9. On a typical Unix/Linux command line, use the following commands to download and extract:
  10. wget http://drupal.org/files/projects/drupal-x.y.tar.gz
  11. tar -zxvf drupal-x.y.tar.gz
  12. This creates a new directory drupal-x.y/ containing all Drupal files and directories. Copy the files into your Drupal installation directory:
  13.  
  14. cp -R drupal-x.y/* drupal-x.y/.htaccess /path/to/your/installation
  15. If you do not have command line access to your server, download the archive from http://drupal.org using your web browser, extract it, and then use an FTP client to upload the files to your web root.
  16. Re-apply any modifications to files such as .htaccess or robots.txt.
  17. Run update.php by visiting http://www.example.com/update.php (replace www.example.com with your domain name). This will update the core database tables.
  18.  
  19. If you are unable to access update.php do the following:
  20. Open settings.php with a text editor.
  21. Find the line that says:
  22. $update_free_access = FALSE;
  23. Change it into:
  24. $update_free_access = TRUE;
  25. Once the upgrade is done, $update_free_access must be reverted to FALSE.
  26. Go to Administration > Reports > Status report. Verify that everything is working as expected.
  27. Ensure that $update_free_access is FALSE in settings.php.
  28. Go to Administration > Configuration > Development > Maintenance mode. Disable the "Put site into maintenance mode" checkbox and save the configuration.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement