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.