farms
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
farms [2016-04-07 21:49] – [Virtual host based setup] 143.107.233.110 | farms [2023-09-22 23:11] (current) – Klap-in | ||
---|---|---|---|
Line 3: | Line 3: | ||
A wiki farm is a collection of wikis running on the same web server and sharing one parent wiki engine. So, by running just one single parent wiki, you can power hundreds of independent other wikis (aka " | A wiki farm is a collection of wikis running on the same web server and sharing one parent wiki engine. So, by running just one single parent wiki, you can power hundreds of independent other wikis (aka " | ||
- | There are multiple ways to achieve running a wiki farm. This page only describes the easiest and most straightforward way to run a wiki farm with DokuWiki. More [[farms: | + | ===== Setup with Farmer Plugin ===== |
+ | There are multiple ways to achieve running a wiki farm. Probably the easiest way is to use the [[plugin: | ||
+ | |||
+ | ===== Manually Setup ===== | ||
+ | |||
+ | This page describes | ||
===== Terms ===== | ===== Terms ===== | ||
Line 14: | Line 19: | ||
===== Directory Setup ===== | ===== Directory Setup ===== | ||
- | The following | + | The following |
* ''/ | * ''/ | ||
Line 76: | Line 81: | ||
In the farmer directory, copy '' | In the farmer directory, copy '' | ||
- | <code php> | + | < |
// set this to your farm directory | // set this to your farm directory | ||
- | if(!defined(' | + | if (!defined(' |
// include this after DOKU_FARMDIR if you want to use farms | // include this after DOKU_FARMDIR if you want to use farms | ||
- | include(fullpath(dirname(__FILE__)).'/ | + | include(fullpath(dirname(__FILE__)) . '/ |
</ | </ | ||
- | |||
- | Note: If you don't have DokuWiki version Adora Belle (2012-10-13) or newer, those two files will be missing. In that case you can simply copy them over from here: [[https:// | ||
Note: the path that you enter for '' | Note: the path that you enter for '' | ||
Line 103: | Line 106: | ||
If you're not used to server configuration, | If you're not used to server configuration, | ||
- | === a. Virtual Host Based Setup === | + | The alternatives are presented in processing order in inc/ |
+ | |||
+ | === a. .htaccess Based Setup === | ||
+ | |||
+ | This '' | ||
+ | |||
+ | <code apache .htaccess> | ||
+ | RewriteEngine On | ||
+ | |||
+ | RewriteRule ^/? | ||
+ | RewriteRule ^/? | ||
+ | Options +FollowSymLinks | ||
+ | </ | ||
+ | |||
+ | Change the ''/ | ||
+ | |||
+ | === b. Virtual Host Based Setup === | ||
For this setup you have to configure the [[wp> | For this setup you have to configure the [[wp> | ||
Line 118: | Line 137: | ||
On most shared hosts environments you only need to add the **server name** (your desired domain with or without subdomain) and the **document root** (always pointing to the farmer directory) through their GUI. | On most shared hosts environments you only need to add the **server name** (your desired domain with or without subdomain) and the **document root** (always pointing to the farmer directory) through their GUI. | ||
- | === b. .htaccess Based Setup === | + | In some cases, a **generic approach** may be applied as well. For this, you don't need modifications in the apache configuration when you add a farm animal. Generic Apache configuration: |
- | This '' | + | <code apache> |
- | + | < | |
- | <code apache | + | |
- | RewriteEngine On | + | |
- | + | | |
- | RewriteRule ^/? | + | |
- | RewriteRule ^/?([^/]+)$ | + | </ |
- | Options +FollowSymLinks | + | |
</ | </ | ||
- | Change the '' | + | Each subdomain is automatically mapped to /var/www/ |
+ | Each individual animal itself is in '' | ||
+ | This path must be created and the animal template (see above) may be copied herein. | ||
==== 5. Change the admin password ==== | ==== 5. Change the admin password ==== | ||
Line 144: | Line 164: | ||
===== Discussion ===== | ===== Discussion ===== | ||
- | You can add questions | + | Please use the [[https:// |
+ | |||
+ | ===== Examples ===== | ||
+ | |||
+ | One example for setting a farm has been detailed |
farms.1460058551.txt.gz · Last modified: 2016-04-07 21:49 by 143.107.233.110