from 3.2-x to 3.2-y
This section describes how to upgrade your existing eZ Publish 3.2-x installation to version 3.2-y, for example from 3.2-1 to 3.2-6. If you are upgrading from a version prior to eZ Publish 3.2-1, you should first upgrade to 3.2-1 before you can upgrade to 3.2-6.
Please make sure that you have a working backup of the site before you do the actual upgrade. The upgrade procedure consists of the following steps:
- Upgrading the distribution files to 3.2-6
- Upgrading the database to 3.2-6
- Creating missing translations (optional)
- Updating the system configuration
- Clearing the caches
Step 1: Upgrading the distribution files
The easiest way to upgrade the distribution files is to unpack eZ Publish 3.2-6 to a directory and then copy the directories that contain site-specific files from the existing installation. Make sure that you copy the following directories:
- design/example
- design/example_admin
- var
- settings/siteaccess
- settings/override
Replace "example" and "example_admin" with actual names used by your siteaccesses.
Custom extensions
If you are using custom extensions then the subdirectories inside the "extension" directory will also have to be copied. However, make sure that you do not overwrite any extensions that come with eZ Publish (for example the "PayPal" extension).
Step 2: Upgrading the database
To upgrade 3.2-1 database to 3.2-6, you should navigate into the eZ Publish 3.2-6 directory and run the following database upgrade scripts one after another:
- dbupdate-3.2-1-to-3.2-2.sql
- dbupdate-3.2-2-to-3.2-3.sql
- dbupdate-3.2-3-to-3.2-4.sql
- dbupdate-3.2-4-to-3.2-5.sql
- dbupdate-3.2-5-to-3.2-6.sql
MySQL
The database upgrade scripts are located in the "update/database/mysql/3.2/" directory of your eZ Publish installation. Each of these scripts can be launched using the following shell command:
mysql -u<username> -p<password> <database> < update/database/mysql/3.2/dbupdate-3.2-x-to-3.2-y.sql
PostgreSQL
The database upgrade scripts are located in the "update/database/postgresql/3.2/" directory of your eZ Publish installation. Each of these scripts can be launched using the following shell command:
psql -d <database> -U <dbowner> < update/database/postgresql/3.2/dbupdate-3.2-x-to-3.2-y.sql
Step 3: Creating missing translations (optional)
In eZ Publish 3.2-4, an important bug related to adding new object attributes has been fixed (see the 3.2-4 changelog for more information). Since that bug might lead to missing translated attributes on multi-lingual sites, it is recommended to run the "updatetranslations.php" script when upgrading to 3.2-4 or later version. The script will check your content objects and re-initialize attributes if their data is missing as a result of the bug.
Step 4: Updating the system configuration
You are not required to do any configuration changes when upgrading from 3.2-x to 3.2-y.
Step 5: Clearing the caches
Whenever an eZ Publish solution is upgraded, all caches must be cleared in a proper way. This should be done from within a system shell:
- Navigate into the eZ Publish 3.2-6 directory.
- Run the clear cache script:
bin/shell/clearcache.sh --clear-all
Please make sure that all caches are cleared. Sometimes the script is unable to clear caches because of restrictive file/directory permission settings. Make sure that all caches have been cleared by inspecting the contents of the various cache subdirectories within the "var" directory.
Svitlana Shatokhina (18/09/2006 1:47 pm)
Svitlana Shatokhina (18/09/2006 3:08 pm)
Comments
There are no comments.