Lullabot Ideas

We know stuff. We empower you to know stuff too.

Upgrading to Drupal 4.7

Video by Matt Westgate

Upgrading a Drupal site is like swimming in shark-infested waters. If you don't have all your ducks in a row, you'll probably lose your ducks. If you're running a vanilla Drupal site, upgrading will most likely work without a hitch. But if you're like most of us who wanted more than just another Blue-Marine-themed Drupal site, well, this quacks for you.

So why would you want to upgrade? With every release comes new features, security updates, and usually performance and usability enhancements. And you want to be cool, right, and be able to say “Well my site does podcasting and AJAX. That's what you get with Drupal 4.7 : buzzword compliance and geek notoriety. (12 Minutes - 26MB H.264)

AttachmentSize
Upgrading-to-Drupal-4.7.mov26.21 MB

Comments

restoring a backup

Hi Matt,

cool video, one question however. What is your backup is larger as 2.048K? AFAIK the import of phpMyAdmin is limited to 2,048KB?

Can one fix this limit? or Does one need to use the command line mysql to import?

I had this happen when

I had this happen when upgrading to 4.6 a while back and found if I emptied my cache and watchdog tables then took another db backup the file was less than 2mb so worked ok. before that I was splitting the larger file into smaller sections / new files and loading them each in. but I realised I didn't care so much about the old cache and watchdog logs so did it again and it worked much quicker. not sure if this is the best way, but it worked. in phpmysqladmin you can see how much data each table is taking up.

re: video

Appreciate this video - really made the steps to upgrading from Drupal 4.6.0 to Drupal 4.7.0 simple and easy to follow.

thanks for sharing this video,

Mu

iTunes Feed?

Hey Guys,

I think i already saw got these videos off of the drupal handbooks, but I also subscribe to both the audio and video feeds in iTunes and I have noticed that the latest video casts are not showing up. I thought maybe it was just a delay from iTunes - but its been like 2 weeks now so I just figured someone should know.

Cheers,
Ryan

upgrading using MOV

gosh,

couldnt those jerks put up a *text* version of the upgrade for those of us on low bandwidth ?

any case, i need to upgrade from 4.5 to 4.7 - any suggestions/ links would be welcome.

Jerks?

They made a step by step video tutorial to help users upgrade? Don't be cruel just because you don't have the bandwith to make use of it.

Some notes on this great tutorial

Thanks for the great tutorial. Here are some notes I took while watching, in case anyone else wants a text version of some of the info contained in the video.

Notes on a great tutorial

DB Backup

use PHPMyAdmin

or command line:

mysqldump --opt -v -u root -p drupal > drupal.sql
--opt - optimized file (for easy import)
-v - verbose
-u root - username
-p - password
drupal - database name
> drupal.sql - file to export to

File Backup Steps

to compress a directory using TAR

tar -czvf drupal-backup.tgz drupal/

providing the name of the compressed file and the directory you wish to have compressed.

to expand a TAR file backup.

tar -xzvf drupal-backup.tgz

Upgrade Steps

-Login as UserID#1

-Disable custom and contributed modules and themes

keep contributed modules in a separate modules/contrib directory to ease the upgrade process, so you can tell which modules are contributed and which are core.

-Install Drupal 4.7

do NOT overwrite the old file structure with the new one, as this can cause problems.
rename the existing drupal directory to drupal-backup, and name the drupal 4.7 directory so it takes the place of the old one.
copy these directories and files from the backup to the new drupal directory.
/files/
/sites/default/settings.php

-Run update.php

click "run the database upgrade script"
save the upgrade results page which shows potential problems with the database that may need manual tweaking.

Upgrading Contributed Modules
download new versions of the modules that match the current version of drupal (4.7)
some modules may not have an upgrade path established.

go to "Upgrade problems" on http://drupal.org/forum for more info.

thanks!

Hey Matt,
thanks for this great post. I felt much more confident upgrading my site.

However, the one thing i think you forgot to mention (?) was the .htaccess file. When i followed your instructions, i could not get my site to come up. It was not until i moved the .htaccess file from my old site (MYSITEbackup) into the new site directory. I was getting:

http://mywebsite/index.php?q=user/register

instead of:

http://mywebsite/?q=user/register

this was fixed once I moved that .htaccess file fro the old directory into the new one...

Was this just a glitch specific to my system? (I did this all through CPanel - my ftp keeps timing out).

thanks again ffor this great video cast though. It did help a lot.

morgan

i am having problems with a site 5.1

pls detail the steps for drupal 5.1 and tell me why these errors are showing on www.spiritualnectar.com/nityananda

i just moved my site to siteground..and huge issues i am facing

thanks

Siteground is the problem

I used Siteground for a short time. Their customer service sucks. They do not provide good technical support.

Get off of siteground.