Different site-access directories?

Author Message

William Steenbergh

Monday 02 January 2006 7:18:28 am

Hi

I was wondering if it would be possible to install eZ Publish some place, and have the actual site-sensitive content somewhere else? Something like:

/var/www/sites/ezpublish <= kernel, libraries, extensions etc
/var/www/sites/site1 <= Design, cache, storage, template overrides etc
/var/www/sites/site2 <= Design, cache, storage, template overrides etc

I don't need optical tricks to accomplish this in Apache, or symbolic links in Linux, I really need this to be a physical reality on my hard drive.

Thanks

William

Thomas Nunninger

Monday 02 January 2006 7:32:36 am

A short grep shows: settings/ and design/ are hardcoded all over the code. I think it's no fun to fix this :-)

Can you explain the reasons, why you need it this way and why symlinks are not usable? I have a similar setting with links in design/, settings/, extension/ and var/ folders. I can't imagine any situation where it should not be possible to write a small shell script which creates symlinks in the original folders to

  site1/
    design/
    setings/
    ...

If you describe your reasons and targets it's perhaps possible to find a solution.

Have a nice day

Thomas

William Steenbergh

Monday 02 January 2006 8:31:37 am

Hey Thomas

Thanks for the swift reply! I wish not to use links, because I'm afraid of the tangled mess this might become... If this thimg could be settled phisically, then that would have been ideal. Since it can't, I can either go hack the EP core (and hope I don't miss a thing...) or accept it as is...

Xavier Dutoit

Tuesday 03 January 2006 3:50:00 am

Hi,

On one config, I have installed ez with symlinks for kernel, share (this one is taught as a shared folder on svn, that's an external for instance), lib and a few others.

It works and that's not too messy.

X+

http://www.sydesy.com

William Steenbergh

Tuesday 10 January 2006 5:18:39 am

Hey

I have now used sym-links all over the system, with the actual files in the customer's directory. Mysql doesn't seem to mind working with a link instead of the actual database directory, apache keeps a VHost-specific logfile in the right directory, and all of ez publish's variable parts are accessible.

I had some trouble however starting ez publish. I had set the apache's DirectoryIndex to /home/customer/index.php. Index.php was a symlink to /var/www/ezpub/index.php. I got the most exotic php-errors i ever saw!

One nasty, low, dirty trick: Make an actual /home/customer/index.php, but instead of linking to ez publish, include it in a frameset:

<!-- /home/customer/index.php -->
<html>
<head>
<title>
Foo
</title>
</head>

<frameset>
  <frame src="http://[host]/index.php/[siteaccess]">
</frameset>
</html>

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

Main resources:

Total runtime0.8170 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.0391152.6406
Module start 'layout' 0.00570.0039 740.679739.4766
Module start 'content' 0.00960.8058 780.1563599.0781
Module end 'content' 0.81530.0016 1,379.234412.1406
Script end 0.8170  1,391.3750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4542160.0002
Check MTime0.00160.1955160.0001
Mysql Total
Database connection0.00090.114110.0009
Mysqli_queries0.753292.1885650.0116
Looping result0.00070.0909630.0000
Template Total0.779595.420.3897
Template load0.00220.274720.0011
Template processing0.777295.130620.3886
Template load and register function0.00030.031710.0003
states
state_id_array0.00120.144810.0012
state_identifier_array0.00100.119020.0005
Override
Cache load0.00190.2300340.0001
Sytem overhead
Fetch class attribute can translate value0.00060.074230.0002
Fetch class attribute name0.00180.218770.0003
XML
Image XML parsing0.00130.153530.0004
class_abstraction
Instantiating content class attribute0.00000.001870.0000
General
dbfile0.00090.1128220.0000
String conversion0.00000.001040.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs