DokuWiki

It's better when it's simple

User Tools

Site Tools


farms

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
farms [2023-02-28 07:32] – Link to new dokuwiki repo saggifarms [2023-09-22 23:11] (current) Klap-in
Line 81: Line 81:
 In the farmer directory, copy ''./inc/preload.php.dist'' to ''./inc/preload.php'', open it and uncomment the two relevant lines and set your farm directory, so that it looks like this: In the farmer directory, copy ''./inc/preload.php.dist'' to ''./inc/preload.php'', open it and uncomment the two relevant lines and set your farm directory, so that it looks like this:
  
-<code php>+<code php inc/preload.php>
 // set this to your farm directory // set this to your farm directory
-if(!defined('DOKU_FARMDIR')) define('DOKU_FARMDIR', '/var/www/farm');+if (!defined('DOKU_FARMDIR')) define('DOKU_FARMDIR', '/var/www/farm');
  
 // 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__)).'/farm.php');+include(fullpath(dirname(__FILE__)) . '/farm.php');
 </code> </code>
- 
-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://raw.github.com/dokuwiki/dokuwiki/master/inc/farm.php|farm.php]] and [[https://raw.github.com/dokuwiki/dokuwiki/master/inc/preload.php.dist|preload.php.dist]]. 
  
 Note: the path that you enter for ''DOKU_FARMDIR'' may need to be based on the "true" path to the server directory (as revealed by the PHP variable ''$_SERVER['DOCUMENT_ROOT']''). Sometimes using a symbolic link does not work. For example, even if you normally access your farm server directory as "/public_html/farm", you might need to enter something like "/home/<htmlusername>/public_html/farm". Note: the path that you enter for ''DOKU_FARMDIR'' may need to be based on the "true" path to the server directory (as revealed by the PHP variable ''$_SERVER['DOCUMENT_ROOT']''). Sometimes using a symbolic link does not work. For example, even if you normally access your farm server directory as "/public_html/farm", you might need to enter something like "/home/<htmlusername>/public_html/farm".
Line 166: Line 164:
 ===== Discussion ===== ===== Discussion =====
  
-You can add questions and requests to the [[farms:discussion|discussion page]].+Please use the [[https://forum.dokuwiki.org|Forum]] to discuss questions regarding farm setup. Be sure to mention if you did a manual setup or used the farmer plugin.
  
 ===== Examples ===== ===== Examples =====
farms.1677565974.txt.gz · Last modified: 2023-02-28 07:32 by saggi

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki