Slides:! tinyurl.

com/seo-drupal


Upgrading Drupal
Neil Cameron

Neil Cameron

2/27

26 November 2009 http://cameronwilding.com

Upgrading Drupal
•  •  •  •  •  •  •  •  •  Why
Update?
 Prepara.on
 Update
Core
 Update
Contrib
Modules
 Update
Custom
Modules
 Update
Themes
 Update
Odds
and
Ends
 Useful
Links
 Ques.ons
.
Discussions

3/27 http://cameronwilding.com

Neil Cameron

Upgrading Drupal
1.  2.  3.  4.  5.  6.  7.  8.  9.  Why
Upgrade?
 Prepara.on
 Update
Core
 Update
Contrib
Modules
 Update
Custom
Modules
 Update
Themes
 Update
Odds
and
Ends
 Useful
Links
 Ques.ons
.
Discussions


Why Upgrade?
Two
reasons:
 1.  Security

–  Only
current
and
previous
version
supported
 –  D7
due
Q2
/
Q3
2010


2.  Func.onality

–  Massive
improvements
in
core
e.g.
 interna.onalisa.on,
theming,
admin
 –  Improved
contrib
e.g.
Views
2,
Panels
3,
CCK
2

Neil Cameron 5/27 http://cameronwilding.com

Upgrading Drupal
1.  Why
Upgrade?

2.  3.  4.  5.  6.  7.  8.  9.  Prepara.on
 Update
Core
 Update
Contrib
Modules
 Update
Custom
Modules
 Update
Themes
 Update
Odds
and
Ends
 Useful
Links
 Ques.ons
.
Discussions


Preparation i
The
two
most
important
things:
 1.  Always
make
back
up
your
database
and
files
 2.  Always
do
a
dry
run
on
a
test
site


Neil Cameron

7/27

http://cameronwilding.com

Preparation ii
•  Review
contrib
module
usage
(remove
unused
 ones)
 •  Review
contrib
module
update
status
(use
 Upgrade
Status)


Neil Cameron

8/27

http://cameronwilding.com

Preparation iii
•  Review
PHP
in
database
(blocks,
pages,
views
 headers,
contemplate)
 •  Move
into
module
where
possible
 •  Review
custom
modules
(Coder
module
can
 help)


Neil Cameron

9/27

http://cameronwilding.com

Preparation iv
•  Backup
DB!
(backup
migrate
module)
 •  Backup
file
system!
 •  Upgrade
core
and
contrib
to
latest
Drupal
5


Neil Cameron

10/27

http://cameronwilding.com

Upgrading Drupal
1.  Why
Upgrade?

2.  3.  4.  5.  6.  7.  8.  9.  Prepara.on
 Upgrade
Core
 Upgrade
Contrib
Modules
 Upgrade
Custom
Modules
 Upgrade
Themes
 Upgrade
Odds
and
Ends
 Useful
Links
 Ques.ons
.
Discussions


Upgrade Core
i)
 •  Different
ways:
FTP,
CVS,
SVN,
GIT
etc…
 •  Backed
up?
 •  (double
safe:
create
duplicate
directory
use
 symlink)
 •  Put
in
maintenance
mode
 •  Disable
modules,
themes


Neil Cameron

12/27

http://cameronwilding.com

Upgrade Core
ii)
 •  Remove
core
files
(everything
except
/sites,
/ files
,
/seengs.php,
.htaccess
etc)
 •  Upload
core
D6
files
 •  Run
update.php


Neil Cameron

13/27

http://cameronwilding.com

Upgrading Drupal
1.  Why
Upgrade?

2.  3.  4.  5.  6.  7.  8.  9.  Prepara.on
 Upgrade
Core
 Upgrade
Contrib
Modules
 Upgrade
Custom
Modules
 Upgrade
Themes
 Upgrade
Odds
and
Ends
 Useful
Links
 Ques.ons
.
Discussions


Upgrade Contrib
•  Check
readme.txt
/
upgrade.txt
for
special
 instruc.ons
 •  Remove
old
module
files
 •  Replace
with
new
files
 •  Run
update.php
 •  Watch
out
for
3rd
party
files
e.g.
FCK
Editor,
 CAPTCHA
(font
file),
PDF
generators,
SWF
 Tools

Neil Cameron 15/27 http://cameronwilding.com

Upgrading Drupal
1.  Why
Upgrade?

2.  3.  4.  5.  6.  7.  8.  9.  Prepara.on
 Upgrade
Core
 Upgrade
Contrib
Modules
 Upgrade
Custom
Modules
 Upgrade
Themes
 Upgrade
Odds
and
Ends
 Useful
Links
 Ques.ons
.
Discussions


Upgrade Custom
•  Use
Coder
Module
to
check
for
code
updates
 •  Update
.info
file


Neil Cameron

17/27

http://cameronwilding.com

Upgrading Drupal
1.  Why
Upgrade?

2.  3.  4.  5.  6.  7.  8.  9.  Prepara.on
 Upgrade
Core
 Upgrade
Contrib
Modules
 Upgrade
Custom
Modules
 Upgrade
Themes
 Upgrade
Odds
and
Ends
 Useful
Links
 Ques.ons
.
Discussions


Upgrade Themes
•  Great
guide:
hfp://wtanaka.com/drupal/convert‐theme‐6
 •  Create
.info
 •  Replace
variables:
 –  $sidebar_lej
 $lej
 –  $footer_message
 $footer
 –  $language
 $language‐>language
 •  Don’t
forget
about
the
theme
registry
 •  If
using
Zen
or
another
well
maintained
theme,
consider
 upgrading
rather
than
rather
than
altering



Neil Cameron

19/27

http://cameronwilding.com

Upgrading Drupal
1.  Why
Upgrade?

2.  3.  4.  5.  6.  7.  8.  9.  Prepara.on
 Upgrade
Core
 Upgrade
Contrib
Modules
 Upgrade
Custom
Modules
 Upgrade
Themes
 Upgrade
Odds
and
Ends
 Useful
Links
 Ques.ons
.
Discussions


Odds & Ends
•  Views
need
to
be
imported
/
rebuilt
 •  Views
has
built
in
conversion,
unreliable.
 •  Workflow_ng
is
now
in
Core
and
called
Rules/
 Ac.ons
/
Triggers
 •  Should
upgrade
trouble
free
(watch
out
for
 custom
workflows/ac.ons)
 •  Date
module,
set
granularity
 *Test
Everything*

Neil Cameron 21/27 http://cameronwilding.com

Upgrading Drupal
1.  Why
Upgrade?

2.  3.  4.  5.  6.  7.  8.  9.  Prepara.on
 Upgrade
Core
 Upgrade
Contrib
Modules
 Upgrade
Custom
Modules
 Upgrade
Themes
 Upgrade
Odds
and
Ends
 Useful
Links
 Ques.ons
.
Discussions


Useful Links
•  3
part
walkthrough
of
D5
‐>
D6
upgrade
hfp://becircle.com/ how_upgrade_drupal_5_drupal_6
 •  Guide
to
upgrading
themes:
hfp://wtanaka.com/drupal/convert‐theme‐6
 •  Drupal
6
Overview:
hfp://drupal.org/drupal‐6.0
 •  Upgrade
Status
Module:
hfp://drupal.org/project/upgrade_status

 •  Coder
Module:
hfp://drupal.org/project/coder

 •  Backup/migrate
Module:
hfp://drupal.org/project/backup_migrate



 •  Photo
Credit:
hfp://www.flickr.com/photos/procsilas/140476150/

 •  About
Neil:
hfp://cameronwilding.com




Neil Cameron

23/27

http://cameronwilding.com

Upgrading Drupal
1.  Why
Upgrade?

2.  3.  4.  5.  6.  7.  8.  9.  Prepara.on
 Upgrade
Core
 Upgrade
Contrib
Modules
 Upgrade
Custom
Modules
 Upgrade
Themes
 Upgrade
Odds
and
Ends
 Useful
Links
 Ques.ons
.
Discussions


Questions?

Neil Cameron

?
25/27

http://cameronwilding.com

Sign up to vote on this title
UsefulNot useful