Posted by marcelolaia on October 21, 2013 at 11:12am
Dear OS lovers,
I would like to upgrade from my 7.x-3.5.0 to 7.x-3.8.1. Drupal version is 7.22.
How is the easy way to do that?
I could extract the 7.x-3.8.1, upload to the server and run the upgrade.php script located on the drupal root dir?
Thank you very much.
Comments
Yes
@marcelolaia,
Yes, that's right:
Be sure to always first run updates in a staging environment before you attempt to run the same operation in a production environment. And of course always always back up your code, files and database before running an update, in case you need to roll back.
OpenScholar - Install once. Host hundreds of easy, custom, best-practice Drupal sites.
Cool Drupal sites I know:
"previous profile code"
@baisong,
Is the "previous profile code" in your step 2 exactly the /sites folder?
Or is there more?
Should we worry about any permissions or ownerships before running update.php?
Thanks!
Nooo - Profile code is...
Everything EXCEPT the /sites folder.
So the profile code would be the "core Drupal" files in your root folder.
The /sites folder should not be overwritten during an upgrade as that is where all of your customizations are. Do not overwrite this folder ---
If you are using an installation/distribution profile like Open Scholar - you also may want to make sure that you have not uploaded any modules into the /profile subfolders - if you have, do not overwrite those either.
Handbook on Platform Cooperativism, a movement building platforms and tools owned by the people. http://bit.ly/hackitownit
Ok, that's clear; thanks
In this case profile code = "core Open Scholar"
I will replace everything but /sites then.
I will copy the existing /sites into the newly extracted directory, replacing the default /sites. Then delete the old directory and rename this new one to replace it; in my case as public_html. And finally run /update.php.
Is that what everyone does? Or does one worry about permissions and ownerships before running /update.php?
Just a few tips on upgrading and backing up a Drupal site
No need to worry about permissions, as you have to run update as USER1. You should also put your site into maintenance mode before upgrading.
If you have to do this on a LIVE server (which I DO NOT suggest...)
Be sure to have the downloaded Drupal version 7.22 in case you have to roll back.
AND -
Be sure to have the site backed up (I use the backup and migrate and back up and migrate files modules) https://drupal.org/project/backup_migrate
Here is a link to best practices for backing up a Drupal site - https://drupal.org/node/22281
If the upgrade does go awry and anything bad happens, you should be able to roll back gracefully by uploading the current version of Open Scholar (version 7.22) that you have running now back into the site.
Handbook on Platform Cooperativism, a movement building platforms and tools owned by the people. http://bit.ly/hackitownit
Freescholar did this work for
Freescholar did this work for you? You should be able to grab the zip file from openscholar.org and extract it and use that to replace everything but the sites folder. The zip includes Drupal core.
Upgrade worked
In the note above where I said - "Be sure to have the downloaded Drupal version 7.22" - I meant the zip file from openscholar.org, that has Drupal core version 7.22.
I was able to successfully upgrade and did not need to roll back at all.
As long as the /sites folder is not overwritten, things should go just fine.
Handbook on Platform Cooperativism, a movement building platforms and tools owned by the people. http://bit.ly/hackitownit
Please, provide the step-by-step
Hi freescholar, could you provide the step-by-step you did to upgrade your OS site? It will be a How To to others OS admin, like me! Thank you very much!
How I upgraded my OS site - 10 steps
I followed the same steps referred to above by rbrandon
I am running Ubuntu 12.04
Handbook on Platform Cooperativism, a movement building platforms and tools owned by the people. http://bit.ly/hackitownit
Is it necessary to upgrade to each released version in turn?
Hi freescholar, thanks for the steps.
In order to keep up on all the changes it is necessary to upgrade to each new version in turn or is it possible to skip releases?
For example, the pre-built download site currently has:
7.x-3.9.3
7.x-3.8.1
7.x-3.8.0
7.x-3.7.4
7.x-3.6.0
7.x-3.6
Assume I am using 7.x-3.7.4. In order to bring the site up to date can I immediately upgrade to 7.x-3.9.3 or do I need to climb the ladder 7.x-3.8.0, 7.x-3.8.1 and finally 7.x-3.9.3?