Éditer - Historique - Imprimer - Rechercher:


Page en lecture seule
connexion


>Introduction


>Traduction


Forum

Fichiers


Liens

WikiFarmStepByStep

Question

å•ã„

Can you give me a step by step instruction on how to set up PmWiki as a WikiFarm from scratch?

スクラッãƒã‹ã‚‰'WikiFarm'ã¨ã—ã¦ã‚»ãƒƒãƒˆã‚¢ãƒƒãƒ—ã™ã‚‹æ–¹æ³•ã‚’ã€æ®µéšŽçš„ã«æ•™ãˆã‚‹ã“ã¨ãŒå‡ºæ¥ã¾ã™ã‹ï¼Ÿ

Answer

回答

  • Install the latest version of PmWiki:
 cd TOP_DIR
 tar xvfz pmwiki-latest.tgz
 chmod 2777 pmwiki-latest      # point browser to home page, and then...
 chmod 755 pmwiki-latest
 ln -sf pmwiki.php index.php
  • 最新ã®PmWikiをインストール:
 cd TOP_DIR
 tar xvfz pmwiki-latest.tgz
 chmod 2777 pmwiki-latest      # point browser to home page, and then...
 chmod 755 pmwiki-latest
 ln -sf pmwiki.php index.php
  • TOP_DIR/pmwiki-latest/local/farmconfig.phpを次ã®å†…容ã§ä½œã‚‹:
 <?php
 $FarmPubDirUrl = 'http://hostname/wiki/pub';
 $WikiTitle = 'My Farm';
 ?>
  • Fieldã®å†…容を作る:
 cd pmwiki-latest
 mkdir fields
 cd fields
 mkdir field.template
 cd field.template/
 ln -sf ../../cookbook .
 ln -sf ../../scripts .
 mkdir local
 mkdir wiki.d
 mkdir uploads
 chmod g+ws uploads wiki.d
 chown apache:root uploads wiki.d
  • fields/field.template/field.phpを次ã®å†…容ã§ä½œã‚‹:
 <?php
 include('../../pmwiki.php');
 ?>
  • fields/field.template/local/config.phpを次ã®å†…容ã§ä½œã‚‹:
 <?php
 $WikiTitle = 'My Field';
 ?>
  • field.phpã«ã‚¤ãƒ³ãƒ‡ãƒƒã‚¯ã‚¹ãƒªãƒ³ã‚¯ã‚’作æˆã™ã‚‹:
 ln -sf field.php index.php
  • ブラウザã§æ–°ã—ã„WikiFarmã®Fieldを指ã—示ã—ã€è¿½åŠ ãƒ•ã‚£ãƒ¼ãƒ«ãƒ‰ã®ã‚»ãƒƒãƒˆã‚¢ãƒƒãƒ—を実行ã™ã‚‹ã“ã¨ã§ãƒ†ãƒ³ãƒ—レートを新ã—ã„フィールドã¨ã§ãã‚‹
 cp -frp field.template newfield

Author

執筆者

Other Contributions

ä»–ã®å†…容

Comments and Feedback

  • Please place your comments and feedback as bullet items in this section.
  • Question: Why is it recommended to use "field.php" (which contains the include to point to pmwiki.php) and then create a symlink to point index.php to field.php?? Is that not an unecessary step? Why not just called the file containing the include index.php (instead of field.php) and be done with it? I can't see a reason for using a symlink when it could be done directly, but maybe I'm missing something? -- ~Peter M.
    • Answer: Peter, out of habit, I reserved index.php to be a symbolic link that can be changed quickly to point to something else. If you have no need for this, it would be just fine to simply call field.php index.php like you suggested. -- Julian I. Kamil?

Category: WikiFarms

Éditer - Historique - Imprimer - Rechercher
Page mise à jour le 13 décembre 2005 à 08h42