Friday 04 March 2011 7:13:40 am
By : Gaetano Giunta
This is a checklist of actions for an update of an eZ Publish website. Comments/contributions are welcome.
Definition of “update”: not an eZP version bump; new functionality added to the site (new extensions, changed templates, settings, etc...)
filesystem set: the extension and settings folders
content set: the var/storage, var/<vardir>/storage folders, and a dump of the database (nb: for ezdb cluster mode, a dump of the storage database is needed instead of the storage folders)
optional: the complete installation directory of eZPublish, except for the var subdirectory and for the eZFind index directory. This is a good idea if in your update you changed eg. the .htaccess or config.php files
tip: if you have many users sessions, and the session data is stored in the database, it might be a good idea to drop data from the session table before backing it up
tip: in ezdb cluster mode, it is a good idea to clear all caches before dumping the storage database, as it is not easy to only backup storage and not caches
[optional] put the public website offline and set up a courtesy page to prevent end users from accessing the website while you upgrade. This involves generally modifying the webserver configuration. Make sure you have a different vhost available to access the public website using a private IP address or hostname during the update process
disable execution of eZ Publish cronjobs
copy new files over the current installation
clear all caches
php bin/php/ezcache.php –clear-all --purge
if you have added new extensions or new php files in your extensions, regenerate the autoload configuration
php bin/php/ezpgenerateautoloads.php
compile templates to warm up caches
php bin/php/eztc.php [–-wwwdir=...] [–-index-file=...]
workflows
sections
object states definitions
url aliases
content class definition (can also be imported via packages)
new content objects (can also be imported via packages)
If you use configuration files to store the id of some particular nodes/objects, and you created such objects at point g), remember to update those configuration files
tip: well-behaved extensions do declare their tables in the proper format, and if you use the “upgrade check / database” page in the administration interface, you will get a list of all missing tables
[optional] reindex content if you have installed eZ Find and have changed the indexing configuration
php extension\ezfind\bin\php\updatesearchindexsolr.php
re-enable cronjobs
[optional] run a cache-warmup script: use a tool such as curl or wget that will navigate the website to force eZPublish to generate the view cache
[edit: mmm, looks like the online editor mangled up my nice formatted list... if only there was access to xml source ;-) ]
Timing: | Jan 18 2025 05:14:57 |
Script start | |
Timing: | Jan 18 2025 05:14:57 |
Module start 'layout' | |
Timing: | Jan 18 2025 05:14:57 |
Module start 'content' | |
Timing: | Jan 18 2025 05:14:57 |
Module end 'content' | |
Timing: | Jan 18 2025 05:14:57 |
Script end |
Total runtime | 0.1072 sec |
Peak memory usage | 6,144.0000 KB |
Database Queries | 39 |
Checkpoint | Start (sec) | Duration (sec) | Memory at start (KB) | Memory used (KB) |
---|---|---|---|---|
Script start | 0.0000 | 0.0074 | 588.1719 | 152.6563 |
Module start 'layout' | 0.0074 | 0.0027 | 740.8281 | 39.5156 |
Module start 'content' | 0.0101 | 0.0957 | 780.3438 | 389.8047 |
Module end 'content' | 0.1058 | 0.0014 | 1,170.1484 | 14.3984 |
Script end | 0.1072 | 1,184.5469 |
Accumulator | Duration (sec) | Duration (%) | Count | Average (sec) |
---|---|---|---|---|
Ini load | ||||
Load cache | 0.0030 | 2.7679 | 15 | 0.0002 |
Check MTime | 0.0012 | 1.1028 | 15 | 0.0001 |
Mysql Total | ||||
Database connection | 0.0011 | 0.9847 | 1 | 0.0011 |
Mysqli_queries | 0.0354 | 32.9841 | 39 | 0.0009 |
Looping result | 0.0003 | 0.2675 | 36 | 0.0000 |
Template Total | 0.0738 | 68.8 | 2 | 0.0369 |
Template load | 0.0020 | 1.8296 | 2 | 0.0010 |
Template processing | 0.0718 | 66.9939 | 2 | 0.0359 |
Template load and register function | 0.0001 | 0.1007 | 1 | 0.0001 |
states | ||||
state_id_array | 0.0009 | 0.8478 | 1 | 0.0009 |
state_identifier_array | 0.0016 | 1.4988 | 2 | 0.0008 |
Override | ||||
Cache load | 0.0018 | 1.6911 | 97 | 0.0000 |
Sytem overhead | ||||
Fetch class attribute name | 0.0013 | 1.2356 | 2 | 0.0007 |
class_abstraction | ||||
Instantiating content class attribute | 0.0000 | 0.0084 | 2 | 0.0000 |
General | ||||
dbfile | 0.0007 | 0.6764 | 10 | 0.0001 |
String conversion | 0.0000 | 0.0053 | 4 | 0.0000 |
Note: percentages do not add up to 100% because some accumulators overlap |
Usage | Requested template | Template | Template loaded | Edit | Override |
---|---|---|---|---|---|
1 | node/view/full.tpl | blog_entry/full.tpl | extension/community_design/design/suncana/override/templates/blog_entry/full.tpl | ||
2 | content/datatype/view/ezxmltext.tpl | <No override> | extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tpl | ||
1 | content/datatype/view/ezxmltags/line.tpl | <No override> | design/standard/templates/content/datatype/view/ezxmltags/line.tpl | ||
22 | content/datatype/view/ezxmltags/paragraph.tpl | <No override> | extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tpl | ||
23 | content/datatype/view/ezxmltags/li.tpl | <No override> | design/standard/templates/content/datatype/view/ezxmltags/li.tpl | ||
11 | content/datatype/view/ezxmltags/ol.tpl | <No override> | design/standard/templates/content/datatype/view/ezxmltags/ol.tpl | ||
1 | print_pagelayout.tpl | <No override> | extension/community/design/community/templates/print_pagelayout.tpl | ||
Number of times templates used: 61 Number of unique templates used: 7 |
Time used to render debug report: 0.0001 secs