Forums / Setup & design / Howto: "host" site access + multilanguage - the "ez" way

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...

eZ debug

Timing: Jan 18 2025 00:05:47
Script start
Timing: Jan 18 2025 00:05:47
Module start 'content'
Timing: Jan 18 2025 00:05:48
Module end 'content'
Timing: Jan 18 2025 00:05:48
Script end

Main resources:

Total runtime0.8325 sec
Peak memory usage4,096.0000 KB
Database Queries183

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 587.8594180.8125
Module start 'content' 0.00690.7016 768.6719425.2969
Module end 'content' 0.70850.1239 1,193.9688333.7969
Script end 0.8324  1,527.7656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.4826210.0002
Check MTime0.00140.1695210.0001
Mysql Total
Database connection0.00110.136510.0011
Mysqli_queries0.776493.26681830.0042
Looping result0.00170.20241810.0000
Template Total0.803896.620.4019
Template load0.00190.222620.0009
Template processing0.802096.331420.4010
Template load and register function0.00010.015410.0001
states
state_id_array0.00100.116910.0010
state_identifier_array0.00100.119720.0005
Override
Cache load0.00150.1803200.0001
Sytem overhead
Fetch class attribute can translate value0.00100.115020.0005
Fetch class attribute name0.00050.057510.0005
XML
Image XML parsing0.00030.041920.0002
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00260.3144210.0001
String conversion0.00000.000930.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.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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