Howto: "host" site access + multilanguage - the "ez" way

Author Message

Olaf Fichtner

Saturday 12 June 2010 8:21:16 am

Ask me why, I say it's most unusual. How can I even try to explain. Why today I feel like dancing...

Yes, I do, because after days (weeks?) of confusion and frustration I finally found a solution to the host access + multiple language problem and it is even easier than everything I have seen in the forum so far. Should someone have posted this before: Sorry, I wish I had discovered it, that would have saved me lots of frustration. I already ran out of hard surfaces to bang my head on...

But to not waste your time, the solution I like to present applies to this situation: In the domain "example.com" you want to create a site under the subdomain "nice", so the FQDN is "nice.example.com". You have installed ez Publish 4.3 (may work with others too) in the subdirectory "/ezp" of that webspace as it is just one of several sites mapped this way. You only want to create ONE site, but it has to be multilingual, with URLs like "nice.example.com/eng" or "nice.example.com/esl". This works on cPanel environments and is ez, ez, ez - so to say. If your conditions are different, this may not be of much help to you.

- Install ezP into the directory /ezp on your webspace, use the default URI site access method and do not forget all your languages. (Host access install would be buggy anyway, and we do not actually need it!)

- Set up DNS (and your web server, if you do not use cPanel or an equivalent) to map "http://nice.example.com" to "http://example.com/ezp", the location of our installation.

- Go to "http://example.com/ezp", log in and go to "Site settings". Set "Site URL" to "nice.example.com", click on "Send for publishing" and say goodbye to the site for a while.

- Open /ezp/settings/override/site.ini.append.php. If you see a "SiteURL" item under "SiteSettings" (not likely in this file), shoot it on sight. Shoot first, ask questions later. Check the name of your admin site access. Let us assume it is "ezflow_site_clean_admin". Add this line under "SiteSettings"

"

AdditionalLoginFormActionURL=http://nice.example.com/ezflow_site_clean_admin/user/login

"

Scroll down to "SiteAccessSettings" and add the line

"

ForceVirtualHost=true

"

Your URLs do now not contain "index.php" any longer. If you want some more cosmetics, you can also add "RemoveSiteAccessIfDefaultAccess=enabled" in the same block.

- Open the site.ini.append.php in EVERY language site access (best all site accesses). If you see a "SiteURL", shoot it. It is only there to cause you trouble, so shoot it. Take a bazooka if you like. (I would very much at this point...) You may also find more "AdditionalLoginFormActionURL" items. Shoot them too, we have already defined this.

- If you have not done so already, activate the htaccess file coming with ezP by renaming it to ".htaccess". You will find it directly in /ezp.

- Now go to /ezp/var/cache/ini/ and delete ALL files in there. At this point, you may not be able to properly access your site through the web interface. Delete at least the ini cache, then point your browser to "nice.example.com" and log in to the admin panel. Clear all caches there and... Well, that's it. You should now be able to work with your site. Have fun!

Again: If someone already posted this before - sorry. I really wish I had seen it, as I was REALLY frustrated and every forum thread I read only added to my frustration because almost nothing there helped. A comment by Andre R. to someone also slightly frustrated reminded me of the "Site URL" in the frontend "Site settings". This was the key I needed to make it work. So, I hope this will help someone out there, people on shared hosters may like it - perhaps...

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 15 2025 08:51:40
Script start
Timing: Jan 15 2025 08:51:40
Module start 'layout'
Timing: Jan 15 2025 08:51:40
Module start 'content'
Timing: Jan 15 2025 08:51:41
Module end 'content'
Timing: Jan 15 2025 08:51:41
Script end

Main resources:

Total runtime1.3855 sec
Peak memory usage6,144.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 684.8594183.7031
Module start 'layout' 0.00590.0050 868.562552.6094
Module start 'content' 0.01091.3725 921.17191,676.8047
Module end 'content' 1.38340.0020 2,597.976668.4922
Script end 1.3854  2,666.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00600.4365160.0004
Check MTime0.00140.0988160.0001
Mysql Total
Database connection0.00080.059610.0008
Mysqli_queries1.325295.6497460.0288
Looping result0.00050.0381440.0000
Template Total1.336596.520.6683
Template load0.00420.306420.0021
Template processing1.332396.158920.6661
Template load and register function0.00150.105710.0015
states
state_id_array0.00100.074910.0010
state_identifier_array0.00240.174020.0012
Override
Cache load0.00360.2592200.0002
Sytem overhead
Fetch class attribute can translate value0.00060.045710.0006
Fetch class attribute name0.00190.138910.0019
XML
Image XML parsing0.00020.011110.0002
class_abstraction
Instantiating content class attribute0.00000.000610.0000
General
dbfile0.00160.1130100.0002
String conversion0.00000.000840.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.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs