Rename an eZ Publish Installation on OS X

Saturday 25 September 2010 9:19:05 am

By : Doug Brethower

Ever run into this situation?

Start out with a nice clean test install named something unremarkable like "ezwebin".

Then play with it until it fleshes out into something of substance, to the point it is useful. A hearing museum in this case.

Feel stuck with this unremarkable and not descriptive name for a remarkable new project?

I know there are many eZ provided facilities to achieve the results and move an installation. For me, this makes sense on my local OS X testbed, and takes little more time to perform than it does to read.

This is the most minimalist way I have found to rename my eZ projects. These steps tested and proven on ezwebin extension at eZ Publish revision 4.3.

Assumes log in as a user with sufficient privileges.

General Info -- The httpdocs directory in OS X is /Library/Webserver/Documents

Make a Copy

cd /Library/Webserver/Documents
cp -Rp <existing folder> <new folder> in this case cp -Rp ezwebin com_hearingmuseum
cd com_hearingmuseum

Make the Necessary Changes to eZ files just Copied.

  • settings/override/site.ini.append.php -- replace "ezewbin" with "com_hearingmuseum"
  • Search the /setttings/siteaccess/* directory structure and edit any site.ini.append lines that reference the old path to reflect the path change. Same as step 1.

Change some Database entries, in this case 7 places in two different tables.

  • Search the database for the old path "localhost/ezwebin" and replace with "localhost/com_hearingmuseum" I use phpMyAdmin for this step.

Manually clear the caches by deleting all files in these directories

/Library/Webserver/Documents/com_hearingmuseum

  • /var/cache/
  • var/ezwebin/cache

Spotlight search the com_hearingmuseum folder structure for "localhost/ezwebin" inside files.

In this case, found one at:

/var/storage/packages/local/images/ezcontentclass/class-image.xml

Replaced that text with "localhost/com_hearingmuseum"

Load up http://localhost/com_hearingmuseum

Hope this works as well for any interested as it does for me.

Additional info when moving server to server --

http://share.ez.no/forums/developer/multisite-move-from-one-server-to-other#comment57697

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 17 2025 23:48:58
Script start
Timing: Jan 17 2025 23:48:58
Module start 'layout'
Timing: Jan 17 2025 23:48:58
Module start 'content'
Timing: Jan 17 2025 23:48:58
Module end 'content'
Timing: Jan 17 2025 23:48:58
Script end

Main resources:

Total runtime0.1156 sec
Peak memory usage6,144.0000 KB
Database Queries40

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.1797152.6406
Module start 'layout' 0.00620.0035 741.820339.4844
Module start 'content' 0.00970.1042 781.3047363.5859
Module end 'content' 0.11390.0016 1,144.890614.3984
Script end 0.1155  1,159.2891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00393.3529150.0003
Check MTime0.00141.1931150.0001
Mysql Total
Database connection0.00070.602210.0007
Mysqli_queries0.049943.1896400.0012
Looping result0.00040.3037370.0000
Template Total0.068359.120.0342
Template load0.00221.907420.0011
Template processing0.066157.213520.0331
Template load and register function0.00010.094310.0001
states
state_id_array0.00181.526610.0018
state_identifier_array0.00131.155420.0007
Override
Cache load0.00201.6881420.0000
Sytem overhead
Fetch class attribute name0.00181.553420.0009
class_abstraction
Instantiating content class attribute0.00000.004320.0000
General
dbfile0.00786.7739100.0008
String conversion0.00000.008040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplblog_entry/full.tplextension/community_design/design/suncana/override/templates/blog_entry/full.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
3content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 9

Time used to render debug report: 0.0002 secs