Blogs / Doug Brethower / Rename an eZ Publish Installation on OS X

Rename an eZ Publish Installation on OS X

Saturday 25 September 2010 9:19:05 am

  • Currently 5 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

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

eZ debug

Timing: Jan 17 2025 21:11:45
Script start
Timing: Jan 17 2025 21:11:45
Module start 'content'
Timing: Jan 17 2025 21:11:45
Module end 'content'
Timing: Jan 17 2025 21:11:45
Script end

Main resources:

Total runtime0.1683 sec
Peak memory usage6,144.0000 KB
Database Queries183

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 597.6094180.8203
Module start 'content' 0.00560.0728 778.4297438.3594
Module end 'content' 0.07840.0899 1,216.7891407.5469
Script end 0.1683  1,624.3359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00382.2384210.0002
Check MTime0.00150.8704210.0001
Mysql Total
Database connection0.00060.359310.0006
Mysqli_queries0.095856.90201830.0005
Looping result0.00120.70971800.0000
Template Total0.142384.520.0712
Template load0.00211.268120.0011
Template processing0.140283.255120.0701
Template load and register function0.00010.043910.0001
states
state_id_array0.00090.551210.0009
state_identifier_array0.00070.441320.0004
Override
Cache load0.00171.0329420.0000
Sytem overhead
Fetch class attribute name0.00120.697920.0006
Fetch class attribute can translate value0.00040.251810.0004
class_abstraction
Instantiating content class attribute0.00000.003020.0000
XML
Image XML parsing0.00020.109210.0002
General
dbfile0.00392.3327220.0002
String conversion0.00000.004430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 9

Time used to render debug report: 0.0001 secs