tips:lazy_farm
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
tips:lazy_farm [2014-02-27 02:34] – Removed: Not supported and broken. Klap-in | tips:lazy_farm [2014-11-09 07:11] (current) – old revision restored (2014-02-27 02:33) 109.81.209.116 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Lazy DokuWiki Farming ====== | ||
+ | **Currently broken. Do not use this unless you want to experiment heavily. However there are good reasons for this approach. I am going to review the problems and try to fix it or suggest some simple patches to make it all work without problem.** | ||
+ | |||
+ | In a farm, one single copy of wiki engine (the farmer) is used to run several individual wikis (the animals). For a generic introduction, | ||
+ | |||
+ | This page describes a particularly simple approach to setup a farm. However, it is **broken**. | ||
+ | |||
+ | ===== Recipe ===== | ||
+ | |||
+ | This approach consists of three simple steps for each virtual host: | ||
+ | |||
+ | - create directory for new dokuwiki animal | ||
+ | - create subdirectory called " | ||
+ | - put file doku.php in animal directory, edit two lines and set permissions properly | ||
+ | |||
+ | |||
+ | <code php doku.php> | ||
+ | <?php | ||
+ | //you will need to set those lines (and create " | ||
+ | $wiki_installdir=' | ||
+ | $wiki_installurl=' | ||
+ | |||
+ | //get path of this " | ||
+ | $virtual_path=getcwd(); | ||
+ | |||
+ | //load common configuration | ||
+ | chdir($wiki_installdir); | ||
+ | include_once(' | ||
+ | include_once(' | ||
+ | |||
+ | //override common configuration | ||
+ | @include_once(" | ||
+ | $conf[' | ||
+ | define(' | ||
+ | |||
+ | //call main dokuwiki script | ||
+ | require_once(' | ||
+ | </ | ||
+ | |||
+ | ===== Setting up webserver ===== | ||
+ | i can suggest you to use great LigHTTPd server with fastcgi PHP and mod_simple_vhost or mod_evhost, which can simply map subdirectories to domains/ | ||
+ | |||
+ | ===== Troubles ===== | ||
+ | Well. it's not much optimal and not suitable for production use yet, but if there will be few simple modifications in dokuwiki, this can be the best approach of all. we need a way to set wiki homepage url and wiki farmer url separately, then we'll have no need to use plugins or symlinks for farming. instead of it we'll need only this one simple file in each animal directory. see < | ||
+ | |||
+ | Please note that this approach is broken with " |
tips/lazy_farm.txt · Last modified: 2014-11-09 07:11 by 109.81.209.116