Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 01:40:01 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
149619 Posts in 21098 Topics by 7537 Members
Latest Member: lotte2
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Multisiting  (Read 3655 times)
maxa

Offline Offline

Posts: 4


« on: April 14, 2008, 05:50:21 AM »

How exactly wiil multiple sites be realised?
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7660



WWW
« Reply #1 on: April 14, 2008, 05:55:07 AM »

Hello,

What did you mean with this?

Matthias
Logged
maxa

Offline Offline

Posts: 4


« Reply #2 on: April 14, 2008, 05:08:42 PM »

For example (citing from some discussion)
"... it comes to my mind that it should be possible to run 2 or more sites which use the same software, but different data and layout completely separated. What it takes is not so much:

-  Depending on the domain WsB would need to pull a different localconfig.php
-  Each domain localconfig would then have a separate database connect information
-  Each domain localconfig would also have a separate file root pointer (-> /tl_files/....)
-  Each domain localconfig would also have a separate custom templates pointer (-> /templates/...)

Of cause there are some mode smaller or bigger issues such as how to automatily update the various databases (runonce.php), but I think those could be solved too. After all it involves however several changes in the core, and may be difficult to keep backward compatibility with this shift, so I would vote to have this implemented in version 3.0"


Taking a step back i think a directory structure like this could be suitable

plugins/... (common for all clients)
system/... (common for all clients, but no localconfig.php here)
websitebaker/... (common for all clients)
clients/
clients/default/... (default client, fallback when no other client domain matched)
clients/foo.com/...   (1st client files: for foo.com and www.foo.com)
clinets/bar.net/... (2nd client files: for bar.net and www.bar.net)

Below each client we would find the directories:

../config/... (localconfig.php, ...)
../logs/... (client dependent log files maybe?)
../templates/.. (custom templates folder)
../tl_files/.. (application and user files)


There is a lot of CMS with some multisiting functionality, i just want to know the way of multisiting idea realisation, in WsB case. What does it mean to the developers?
« Last Edit: April 14, 2008, 05:10:24 PM by maxa » Logged
maxa

Offline Offline

Posts: 4


« Reply #3 on: April 25, 2008, 08:53:39 PM »

Here are some examples of multiple sites support:
1. http://www.bitrixsoft.com/help/index.html?page=source%252Fmain%252Fhelp%252Fen%252Fmultisite.php.html

2. http://drupal.org/search/node/Multisite

3. http://lists.netfielders.de/pipermail/typo3-ch/2005-February/000695.html

4. http://websplanet.com/solutions/yellow_pages.html
WebsPlanet’s Central Management Tool offers directory publishers complete centralized control over their organization’s and customers’ websites. The tool provides one centralized area for building, managing and controlling all websites, saving on operational outlay, while facilitating up-selling and cross-selling.

5. http://www.elearningforce.biz/multisites-site-manager-proftp/multisites-site-manager-proftp.html

6. http://expressionengine.com/downloads/details/multiple_site_manager/
« Last Edit: April 26, 2008, 10:21:47 PM by maxa » Logged
Ryan

Offline Offline

Posts: 2048



WWW
« Reply #4 on: May 20, 2008, 01:22:23 PM »

With PHP, you can include a file from anywhere on your system. However, some servers require you to add the path to open_basedir for it to be allowed.

With WB3, you will simply place an index.php file in the root of your installation/site, and that file will contain configuration and then include that shared system file.

E.g. /var/www/mysite/index.php:

Code:
<?php
$config
['db_host'] = 'localhost';
$config['db_user'] = 'user';
$config['db_pass'] = 'password';
$config['db_name'] = 'wb';
require_once(
'/usr/share/websitebaker3/run.php');
?>


E.g. /usr/share/websitebaker3/run.php

Code:
<?php
// include wb libraries
// execute code
?>


Ryan wink
Logged

Website Baker Project Founder
www.websitebaker.or g

To contact me via email, visit:
www.ryandjurovich.c om
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!