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