How to do drupal core upgrades without breaking the Site (Illiterate Monkey Version)

To support installation of Drupal in the /drupal directory but avoid having every link begin with /drupal, changes were made in two of the core modules:

/drupal/includes/bootstrap.inc

/drupal/includes/common.inc

For these two files, diff files have been created that may be used to add the changes to new bootstrap.inc and common.inc files installed as a result of a Drupal core update.  This may be done in two ways:

Method 1 uses ftp to download bootstrap.inc, bootstrap.inc.diff, common.inc and common.inc.diff from /drupal/includes to a local directory on a system running Linux or Cygwin on Windows.  Change directory to the local directory containing the downloaded files and run the following two commands:

patch -p1 bootstrap.inc < bootstrap.inc.diff

patch -p1 common.inc < common.inc.diff

This will apply the changes to bootstrap.inc and common.inc.  Now the modified files should be uploaded with ftp to replace the files installed by the Drupal update.  (Note:  You may wish to save the original unpatched files under a different name in case something goes wrong!)

Method 2 uses a command line (ssh) login to the system and patches the two files in place.  After logging in, change directory to /home/moonsoci/web/html/drupal/includes and  copy the bootstrap.inc and common.inc files to different file names to save them in case something goes wrong,  Run the following two commands:

patch -p1 bootstrap.inc < bootstrap.inc.diff

patch -p1 common.inc < common.inc.diff

After completing either of the above two methods, open a browser on the web site home page and verify that the links on the page do not include the /drupal path, and that clicking on one of the links brings up the correct page.

 

Note: The diff files were created with: diff -c originalfile modifiedfile > filename.diff