Forums / Install & configuration / Hosting multiple domains on single server

Hosting multiple domains on single server

Author Message

mike bonning

Friday 05 May 2006 4:55:36 am

Hi,
I just installed 3.7.5 on a 2000 server and my initial site works great. I now need to add several more sites to the same server, but I am having trouble understanding the various articles posted about it. I understand that I need to edit the httpd.conf file and the site.ini.append.php file. can someone show me an example of these files that are actually hosting 3 or more sites? for example:
www.example1.com
www.eaxmple2.com
www.example3.com

Thanks, Mike

Hapee de Groot

Friday 05 May 2006 5:35:02 am

Have a look at:

http://httpd.apache.org/docs/2.0/vhosts/examples.html

and combine these examples with the virtual host setup of eZpublish and have a look at:

http://ez.no/community/forum/install_configuration/virtual_hosts_ez_publish or through the forum and you are done.

mike bonning

Friday 05 May 2006 8:57:10 am

Hi again,

All of the domains are now opening up but they all appear to be going to the same database. If I change something on one, then they all change. I think I'm still having trouble understanding how to setup in site access. Any suggestions?

Thanks, Mike.

Luke Barton

Monday 08 May 2006 7:57:54 pm

MIke,

You might want to walk through the setup of your top-level nodes and ini files.

For instance, this setup has 3 sites, each represented by a node. Underneath each node is the content for that domain:

ez_home
|--site_1_node
|----{all site_1 content is under here}
|--site_2_node
|----{all site_2 content is under here}
|--site_3_node
|----{all site_3 content is under here}

Then, in your /settings//override/site.ini.append.php file, map each domain to the respective node:

[SiteAccessSettings]
MatchOrder=host
HostMatchType=map
HostMatchMapItems[]=www.site1.com;site_1_node
HostMatchMapItems[]=www.site3.com;site_3_node
HostMatchMapItems[]=www.site3.com;site_3_node

If you do not want the top-level node of a site to show up in the URL, you can set the path prefix for each site. Here's one sample in /settings/siteaccess/site_1/site.ini.append.php:

[SiteAccessSettings]
PathPrefix=site_1_node

Also, check your permissions in the /settings/ folder. I forget which -- maybe "chmod 0755 -R /settings or chmod 0777 -R /settings/".

Then clear all your caches from the command line: bin/shell/clearcache.sh --clear-all

Hope this helps.

-Luke

Theodoros Papageorgiou

Friday 12 May 2006 12:43:50 pm

Hi,

You'd better create additional include conf files for each site instead of editing the httpd.conf itself.
Also it may be better to use a separate database, and var directory for each site.

Best,

Theo

WEBWiZ
Web Development
http://www.webwiz.gr

André R.

Friday 12 May 2006 2:34:08 pm

Just one thing, you write 2000 server.
You shouldn't use windows if you care for performance, ez publish is highly optimized for php most common home: Linux and apache.

Then over to the database, I understand u have several domains that needs their own content?

You could either let them use the same db but different paths of the content like Luke suggested.

Or you can duplicate the database you have now (either copy or dump/import).
And specify each siteaccess/site.ini.... witch db (dbname) each siteaccess should use and they should also use their own cache folder (site1):

[DatabaseSettings]
DatabaseImplementation=ezmysql
Server=localhost
User=dbuser
Password=dbpwd
Database=dbname

[FileSettings]
VarDir=var/site1

In the last case you'll have to create admin siteaccess for each domain as well!

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

eZ debug

Timing: Jan 18 2025 16:08:47
Script start
Timing: Jan 18 2025 16:08:47
Module start 'content'
Timing: Jan 18 2025 16:08:47
Module end 'content'
Timing: Jan 18 2025 16:08:47
Script end

Main resources:

Total runtime0.7860 sec
Peak memory usage4,096.0000 KB
Database Queries209

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 589.0000180.8047
Module start 'content' 0.00580.6636 769.8047704.3125
Module end 'content' 0.66940.1166 1,474.1172341.0469
Script end 0.7860  1,815.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.5162210.0002
Check MTime0.00160.1975210.0001
Mysql Total
Database connection0.00080.101410.0008
Mysqli_queries0.691387.94722090.0033
Looping result0.00200.25852070.0000
Template Total0.761696.920.3808
Template load0.00180.229920.0009
Template processing0.759896.658720.3799
Template load and register function0.00020.023010.0002
states
state_id_array0.00070.092410.0007
state_identifier_array0.00090.108320.0004
Override
Cache load0.00160.2030610.0000
Sytem overhead
Fetch class attribute can translate value0.00220.281260.0004
Fetch class attribute name0.00110.137690.0001
XML
Image XML parsing0.01121.426460.0019
class_abstraction
Instantiating content class attribute0.00000.002290.0000
General
dbfile0.01081.3687390.0003
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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 31
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs