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

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 18 2025 18:36:50
Script start
Timing: Jan 18 2025 18:36:50
Module start 'layout'
Timing: Jan 18 2025 18:36:50
Module start 'content'
Timing: Jan 18 2025 18:36:50
Module end 'content'
Timing: Jan 18 2025 18:36:50
Script end

Main resources:

Total runtime0.8292 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 588.3984152.6875
Module start 'layout' 0.00600.0037 741.085939.5234
Module start 'content' 0.00960.8182 780.6094422.3203
Module end 'content' 0.82780.0014 1,202.92978.0781
Script end 0.8292  1,211.0078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4029160.0002
Check MTime0.00130.1615160.0001
Mysql Total
Database connection0.00070.088410.0007
Mysqli_queries0.771192.9898460.0168
Looping result0.00040.0457440.0000
Template Total0.796396.020.3982
Template load0.00230.276820.0011
Template processing0.794095.751020.3970
Template load and register function0.00030.033510.0003
states
state_id_array0.00100.125310.0010
state_identifier_array0.00170.200420.0008
Override
Cache load0.00200.2399560.0000
Sytem overhead
Fetch class attribute can translate value0.00110.128710.0011
Fetch class attribute name0.00060.067010.0006
XML
Image XML parsing0.00010.013510.0001
class_abstraction
Instantiating content class attribute0.00000.000310.0000
General
dbfile0.00060.0707100.0001
String conversion0.00000.001140.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
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs