Forums / Install & configuration / Different site-access directories?

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>

eZ debug

Timing: Jan 18 2025 18:39:01
Script start
Timing: Jan 18 2025 18:39:01
Module start 'content'
Timing: Jan 18 2025 18:39:02
Module end 'content'
Timing: Jan 18 2025 18:39:02
Script end

Main resources:

Total runtime0.9152 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0104 587.8359180.8203
Module start 'content' 0.01040.7419 768.6563604.1719
Module end 'content' 0.75240.1628 1,372.8281337.3750
Script end 0.9151  1,710.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00530.5753210.0003
Check MTime0.00190.2093210.0001
Mysql Total
Database connection0.00130.139210.0013
Mysqli_queries0.825490.19432020.0041
Looping result0.00230.24772000.0000
Template Total0.877495.920.4387
Template load0.00230.247720.0011
Template processing0.875195.619020.4375
Template load and register function0.00020.021610.0002
states
state_id_array0.00140.151910.0014
state_identifier_array0.00130.145220.0007
Override
Cache load0.00190.2077340.0001
Sytem overhead
Fetch class attribute can translate value0.00130.146140.0003
Fetch class attribute name0.00200.215170.0003
XML
Image XML parsing0.00170.184740.0004
class_abstraction
Instantiating content class attribute0.00000.001870.0000
General
dbfile0.00250.2714330.0001
String conversion0.00000.001030.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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