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.
Change some Database entries, in this case 7 places in two different tables.
Manually clear the caches by deleting all files in these directories
/Library/Webserver/Documents/com_hearingmuseum
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
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 |
Total runtime | 0.1156 sec |
Peak memory usage | 6,144.0000 KB |
Database Queries | 40 |
Checkpoint | Start (sec) | Duration (sec) | Memory at start (KB) | Memory used (KB) |
---|---|---|---|---|
Script start | 0.0000 | 0.0062 | 589.1797 | 152.6406 |
Module start 'layout' | 0.0062 | 0.0035 | 741.8203 | 39.4844 |
Module start 'content' | 0.0097 | 0.1042 | 781.3047 | 363.5859 |
Module end 'content' | 0.1139 | 0.0016 | 1,144.8906 | 14.3984 |
Script end | 0.1155 | 1,159.2891 |
Accumulator | Duration (sec) | Duration (%) | Count | Average (sec) |
---|---|---|---|---|
Ini load | ||||
Load cache | 0.0039 | 3.3529 | 15 | 0.0003 |
Check MTime | 0.0014 | 1.1931 | 15 | 0.0001 |
Mysql Total | ||||
Database connection | 0.0007 | 0.6022 | 1 | 0.0007 |
Mysqli_queries | 0.0499 | 43.1896 | 40 | 0.0012 |
Looping result | 0.0004 | 0.3037 | 37 | 0.0000 |
Template Total | 0.0683 | 59.1 | 2 | 0.0342 |
Template load | 0.0022 | 1.9074 | 2 | 0.0011 |
Template processing | 0.0661 | 57.2135 | 2 | 0.0331 |
Template load and register function | 0.0001 | 0.0943 | 1 | 0.0001 |
states | ||||
state_id_array | 0.0018 | 1.5266 | 1 | 0.0018 |
state_identifier_array | 0.0013 | 1.1554 | 2 | 0.0007 |
Override | ||||
Cache load | 0.0020 | 1.6881 | 42 | 0.0000 |
Sytem overhead | ||||
Fetch class attribute name | 0.0018 | 1.5534 | 2 | 0.0009 |
class_abstraction | ||||
Instantiating content class attribute | 0.0000 | 0.0043 | 2 | 0.0000 |
General | ||||
dbfile | 0.0078 | 6.7739 | 10 | 0.0008 |
String conversion | 0.0000 | 0.0080 | 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 | ||
9 | content/datatype/view/ezxmltags/paragraph.tpl | <No override> | extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tpl | ||
5 | content/datatype/view/ezxmltags/strong.tpl | <No override> | design/standard/templates/content/datatype/view/ezxmltags/strong.tpl | ||
1 | content/datatype/view/ezxmltags/line.tpl | <No override> | design/standard/templates/content/datatype/view/ezxmltags/line.tpl | ||
3 | content/datatype/view/ezxmltags/li.tpl | <No override> | design/standard/templates/content/datatype/view/ezxmltags/li.tpl | ||
3 | content/datatype/view/ezxmltags/ul.tpl | <No override> | design/standard/templates/content/datatype/view/ezxmltags/ul.tpl | ||
1 | content/datatype/view/ezxmltags/link.tpl | <No override> | design/standard/templates/content/datatype/view/ezxmltags/link.tpl | ||
1 | print_pagelayout.tpl | <No override> | extension/community/design/community/templates/print_pagelayout.tpl | ||
Number of times templates used: 26 Number of unique templates used: 9 |
Time used to render debug report: 0.0002 secs