This section describes how to upgrade your existing eZ Publish 4.1.x installation to version 4.1.y. If you are upgrading from a version prior to eZ Publish 4.1.0, refer to the "Upgrading from 4.0.x to 4.1.y" section for upgrade instructions.
In order to benefit from the latest bug fixes, you should upgrade directly to the latest stable release in the 4.1 branch (4.1.2 at the time of writing). Refer to the changelogs and security advisories for more information about the issues that were fixed in the latest releases.
Please make a backup of your files and your database before proceeding. The procedure for upgrading directly from version 4.1.x to 4.1.y consists of the following steps:
With eZ Publish 4.1.1 and later, eZ Components 2008.2.2 is the minimum version required. If you installed a previous version with PEAR, please upgrade to version 2008.2.2. For more information about installing eZ Components see also http://ezcomponents.org/docs/install
The easiest way to upgrade the distribution files is to unpack eZ Publish 4.1.1 to a separate directory and then copy the directories that contain site-specific files from the existing installation. Make sure that you copy the following directories:
Replace " example" and " example_admin" with the actual names of your siteaccesses.
If you are using custom extensions, the sub directories 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 (currently "ezoe", "ezodf"). Note that upgrading the distribution files will overwrite the autoload arrays for extensions. You will need to re-generate the autoload arrays for active extensions late. See below for dedicated upgrade instructions for ez flow and ez webin.
Note that ezdhtml is now replaced by ezoe, so you should not copy it over.
For eZ OE 5.0.x, you will need to have the following rewrite rule if using Virtual Hosts:
RewriteRule ^/var/[^/]+/cache/public/.* - [L]
For more detailed instructions, see the dedicated doc page: http://ez.no/doc/extensions/online_editor/5_x/installation
(If your upgrading from 4.1.0 and not directly from 4.0.x) First of all, if you don't have image data from before version 3.3 of eZ Publish, you don't have to do anything, you can skip running the "updateimagesystem.php" script
If you do have old data or you suspect you might (installation is based on eZ Publish < 3.3), which you want to upgrade, then you have to import the tables ezimage and ezimagevariation from a database backup, as these tables were unfortunately removed in the dbupdate scripts of 4.1.0. After the tables have been restored, the updateimagesystem.php script needs to be run.
The update script for the database is located in:
<eZP root>/update/database/<mysql|postgresql>/4.1/dbupdate-4.1.x-to-4.1.y.sql
You can run this with the appropriate command line tool or application
The autoload system has also some changes, for example the autoload array for extensions is now placed in var/autoload of your eZ Publish installation.
To regenerate the autoload array, execute the following script:
php bin/php/ezpgenerateautoloads.php --extension
The update scripts are located in:
<eZP root>/update/common/scripts/4.1
Please note, that if these scripts were executed as part of the initial upgrade in 4.1.0, they do not have to be executed again this time.
(If you upgrade ezoe from 5.0.0 or earlier beta versions of the 5.0.x version) One of the bugs ( #14670) fixed in OE 5.0.1 caused object relations to be stored with wrong relation type id, so they where not removed as relation when you removed them from editor area (ezxmltext). In order to fix the problem on existing relations created with OE 5.0.0 (also affected all prior beta- and rc-releases), apply the following:
<eZP root>/extension/ezoe/update/database/5.0/dbupdate-5.0.0-to-5.0.1.sql
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 4.0.y directory.
Run the script using the following shell command:
php bin/php/ezcache.php --clear-all --purge
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.