Updating Drupal Core and Running the Update Script

If you have Drupal core under version control, simply change directory to the Drupal document root and execute the following:

~/litworkshop/sites$ cvs update -dPr DRUPAL-6-3

replacing drupal-6-3 with the latest version if greater. Otherwise, delete all Drupal core files and replace with the latest Drupal 6.x version no earlier than 6.3.

NOTE

It bears emphasizing that in ./sites/default there is a new file called default.settings.php, which changes your basic default settings file. This file should be used as the basis for your new settings.php file, which should simply be a copy of default.settings.php with your database URL inserted in the appropriate place, plus any other site-specific changes you deem necessary.

Then you want to follow these steps:

1. Still logged in as admin (user 1), execute http://litworkshop .example.com/update.php. The result should be the Overview page of the Drupal Database Update Wizard.

2. After clicking Continue, you have the chance to select updates before clicking the Update button. After doing so, 81 updates are carried out, and you should be taken to what is essentially a success page, which includes some informational messages in green, possible warnings in pink (which you can usually ignore unless they stop the show), general information, and links to the main and administration pages, as well as the SQL query of all the updates that were executed. It is definitely a good idea to save this page for future reference. Then click the Administration Pages link to continue.

3. Go to Administer > Site Building > Modules and click the Save Configuration button to clear the cache. Now that the smoke has cleared, you can go in and see what you have. At this point the site should be basically navigable and recognizable, with some things broken since some functionality depends on the theme that has been disabled. For example, Figure B-5 shows that the quote block is still working but is now divested of its theming and placed on the left-hand side, but that the Genre Parade block is still there. The views-supported Browse Literary Pieces block, however, has disappeared.

File Edit View History Bookmarks lools Help

-

j

Blogs Groups Forums Publications Join!

On-line literary workshop

All the words 1 use in

Publish or perish!

my stories can be

found in the dictionary- it's just a

Literary Workshop

Welcome to our on-line literary workshop!

matter of arranging them into the right

sentences.

Add new comment

Wed. 07/30/2008 - 07:04 - dev

from

Somerset Maugham

Powered by^Drupal

Remove this quote from

Random Quotations

Genre parade

Elegy Free verse Haibun

Haiku u me rick Sonnet

more tags

-

Find: | ^Previous Next Highlight all Match case

| Done

Figure B-5

4. Now head over to Administer > User Management > Permissions (this used to be called Access Control). Scrolling down, you can see there are additional permissions added for node content, and a wonderful AJAXy improvement is that the names of the roles are now always visible as you scroll down the page. See Figure B-6. Apply the new permissions as needed.

This last section presented the major parts of downloading and installing Drupal. You also learned how to update the code and the Drupal administration tool necessary—update.php—to modify the database so that it matches the new version of your code. You learned two major tools for managing the files on your site:

Downloading via the browser and then uploading via FTP software, which is the more-familiar and labor-intensive method

■ Running the cvs checkout and cvs update commands, which usually takes a little more time to learn but is generally regarded as a more powerful method

File

Edit View History Bookmarks lools Help

«

w ^ Ä http://litworkshop.victorkane/admin/use

r/permissions

I- IC

GDDgs

«

il

Permission

anonymous authenticated

ddmin

Publisher

webmaster

Workshop

workshop

user

user

leader

member

1 itéra ry_pie ce

33

0

P'

p

0

Iii

content

create page content

Zl

create prj_doc content

1

o

0

:tf

û

r.

create quote content

^

create story content

B:

HI

El

Ö

Ù.

Ö

a

create user_story

0

0

content

delete any acceptance_test

Ö:

a

Ö:

a

Ö

.0

0

content

delete any

application

p

content

delete any book content

D

P

p

p

delete any group content

P

p

p

delete any

* I

i

rk

Figure B-6

0 0

Post a comment