Forums / Install & configuration / More questions on how to set up separate domains in non virtual host

More questions on how to set up separate domains in non virtual host

Author Message

Maggie Martin

Wednesday 25 June 2003 9:58:45 pm

I have been trying to get more than one site with separate domains to run under one eZpublish installation in a non virtual host environment

I can access the main site which lives on the same directory as eZpublish files but when I try and access the remote second site I get the following errors/warnings:

Warning: Failed opening 'lib/ezutils/classes/ezdebug.php' for inclusion (include_path='./:/usr/local/lib/php') in /home2/secondsite/secondsite-www/ez/index.php on line 75

Warning: Failed opening 'lib/ezutils/classes/ezini.php' for inclusion (include_path='./:/usr/local/lib/php') in /home2/secondsite/secondsite-www/ez/index.php on line 76

Warning: Failed opening 'lib/ezutils/classes/ezdebugsetting.php' for inclusion (include_path='./:/usr/local/lib/php') in /home2/secondsite/secondsite-www/ez/index.php on line 77

Fatal error: Undefined class name 'ezini' in /home2/secondsite/secondsite-www/ez/index.php on line 79

I tried the suggestion mentioned here: http://ez.no/developer/ez_publish_3/forum/install_configuration/warning_failed_opening_libezutilsclassesezsysphp

but it didn't work.

So my questions are:

How does the remote second site connect with the lib on the main site?

What other files need to live on the second site's directory

Do I put the index.php file on the second site's directory at all?

Must I edit that secondsite/index.php ?

I've been combing through the docs ...

thanks for any help ;-)

my setup is as follows:

I installed a separate database for the secondsite
put the var folder and sub folders in its directory set their permissions as instructed here
http://ez.no/developer/ez_publish_3/documentation/ez_publish_3/howtos/manual_modfix

I have mapped to the sites like so:

settings/override/site.ini.append.php

MatchOrder=uri
HostMatchType=map
HostMatchMapItems[]=www.mainsite.com/index.php/user;user
HostMatchMapItems[]=www.mainsite.com/index.php/admin;admin
HostMatchMapItems[]=www.secondsite.com/ez/index.php/user;secondsite
HostMatchMapItems[]=www.secondsite.com/ez/index.php/admin;secondsite_admin

In settings/siteaccess
I have created folders for all four sites and within each have placed a
site.ini.append.php like so:

settings/siteaccess/admin/site.ini.append.php
settings/siteaccess/user/site.ini.append.php
settings/siteaccess/secondsite/site.ini.append.php
settings/siteaccess/secondsite_admin/site.ini.append.php

the secondsite's site.ini.append.php looks like so:

[DatabaseSettings]
DatabaseImplementation=ezmysql
Server=localhost
User=second
Password=******
Database=second_com
Charset=iso-8859-1
Socket=disabled

[SiteSettings]
IndexPage=/content/view/full/2
LoginPage=custom

SiteName=second
SiteURL=www.secondsite.com/ez/index.php
DefaultAccess=user
RequireUserLogin=false

[FileSettings]
VarDir=secondsite/ez/var

I'm working with ezp-3.1.0-2

eZ debug

Timing: Jan 31 2025 01:30:33
Script start
Timing: Jan 31 2025 01:30:33
Module start 'content'
Timing: Jan 31 2025 01:30:33
Module end 'content'
Timing: Jan 31 2025 01:30:33
Script end

Main resources:

Total runtime0.1901 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 588.3047370.2500
Module start 'content' 0.00670.0141 958.55471,001.5625
Module end 'content' 0.02090.1692 1,960.11723,897.1172
Script end 0.1901  5,857.2344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00492.5889200.0002
Check MTime0.00140.7126200.0001
Mysql Total
Database connection0.00050.272310.0005
Mysqli_queries0.090847.74031410.0006
Looping result0.00140.71011390.0000
Template Total0.168888.810.1688
Template load0.00090.465510.0009
Template processing0.168088.333210.1680
Override
Cache load0.00050.266710.0005
Sytem overhead
Fetch class attribute can translate value0.00201.063910.0020
XML
Image XML parsing0.00030.148310.0003
General
dbfile0.00251.3022200.0001
String conversion0.00000.004430.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs