version=pmwiki-2.1.beta12 ordered=1 urlencoded=1 agent=Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.8) Gecko/20051111 Firefox/1.5 author= host=202.32.188.9 name=PmWikiJa.Wikiファーム rev=12 targets=PmWikiJa.WikiFarms,PmWikiJa.WikiGroups,PmWikiJa.LocalCustomizations,PmWikiJa.Installation,PmWikiJa.UploadsAdmin,PmWikiJa.アップロード,PmWikiJa.DocumentationIndex text=[[WikiFarms]] are a mechanism for running multiple independent wikis on the same web server from a single PmWiki installation. \\%0aIf a `WikiFarm is a collection of independent wikis, then each independent wiki in the farm is commonly called a ''`WikiField''.\\%0aA person who manages the PmWiki software installation is commonly called a ''farm administrator'', the location of the PmWiki software is called the "farm directory" and any administrators of individual fields are called ''field administrators''. \\%0a Each field must have its own base URL, but can [[Cookbook:SharedPages|share pages]] and [[WikiGroups]], uploads, page templates, passwords, %0aand other [[local customizations]] with other fields. \\%0aFor a quick explanation of what goes where and what it controls, see PmWiki:QuickFarms.%0a%0a%0aWikiFarmsは単一のPm Wikiインストール場所から多数の独立したWikiを動かす為のメカニズムです。\\%0a{+'''Wiki Farm'''+}が独立したWikiのコレクションなら, {+ファーム+}の各Wikiは一般に WikiField と呼ばれます。\\%0a個々のfieldの管理者は''フィールド管理者''と呼ばれるますが, %0aPmWikiのインストールを管理する人は、一般に''ファーム管理者''と呼ばれます。\\%0a各{+フィールド+}は自身の基準URL、ページセット、Wikiグループ、添付, ページテンプレート, パスワード, 及び他のローカルカスタマイズを有することができます。%0a'-簡単な説明と設定については、[[PmWiki:QuickFarms]]を参照してください。(?)-'%0a%0aThe remainder of this document describes how to setup `WikiFarms and individual fields of the farm, and assumes you are already somewhat familiar with the details of PmWiki [[installation]].%0a%0aこの文書の残りはWikiFarmsと{+ファーム+}の各{+フィールド+}のセットアップ方法を説明するが、%0aすでに設置されたPmWikiの詳細を良く知っていることを前提とする。%0a%0aAny PmWiki installation can become the WikiFarm on a particular web server.%0a%0a設置された、どのPmWikiも特定のWebサーバのWikiFarmに出来る。%0a%0a%0a!!!Setting up a `WikiFarm (farm administrator)%0a!!!WikiFarmのセットアップ(ファーム管理者)%0a%0aSetting up a PmWiki installation to act as a `WikiFarm is fairly straightforward. \\%0aThe farm administrator simply creates a ''local/farmconfig.php'' file in the farm's "home directory" (the directory in which pmwiki.php is installed).\\%0a This file would contain any [[local customizations]] that are to be performed for every field in the farm (''farmconfig.php'' replaces the ''config.php'' file of a typical installation). \\%0aUsually, this will mean setting $FarmPubDirUrl to reasonable settings for the new field. \\%0a A minimal ''farmconfig.php'' file might look like this:%0a%0a設置されたPmWikiをWikiFarmとして機能させるセットアップは、とても簡単です。\\%0a''ファーム管理者''は単に、{+ファーム+}の"ホームディレクトリ"(pmwiki.phpがインストールされている)に''local/famconfig.php''を作成します。\\%0aこのファイルは、{+ファーム+}に含まれる全ての{+フィールド+}に有効とするローカルカスタマイズが含まれているべきです(''famconfig.php''は通常の設定ファイルである''config.php''を置き換えます)\\%0a通常、これが新たな{+フィールド+}を設定する為に便利な$FarmPubDirUrlを設定することを意味します。\\%0a最小の''farmconfig.php''は、このように見えるでしょう。%0a%0a [@%3c?php if (!defined('PmWiki')) exit();%0a $FarmPubDirUrl = 'http://www.example.com/pmwiki/pub';%0a @]%0a%0a%0a$FarmPubDirUrl is used to provide fields with the URL location of the farm's ''pub/'' directory.%0a%0a$FarmPubDirUrlは{+フィールド+}に、{+ファーム+}の''pub/''ディレクトリ(公開ディレクトリ)を与えるために使用される。%0a%0a->%25note%25Note: Depending on your setup, you may want to choose to install the main farm script (i.e. pmwiki.php) in a non-web-server-accessible location.\\%0a If you don't, or can't, you may want to control access using .htaccess. See Cookbook:FarmSecurity for more info. %0a%0a注)セットアップ要件によっては、主要なFarmスクリプト(つまりpmwiki.php)をWebサーバの非アクセス領域に設置したいでしょう。もし.htaccessで設定できなければ、詳細はCookbook:FarmSecurityを参照してください。%0a%0aYour PmWiki installation is now set up for farming. \\%0aNow you need to create fields to see it in action.%0a%0a今、PmWikiはファーミングの為にセットアップされています。さっそく動作を見るために{+フィールド+}を作ってみましょう。%0a%0a%0a!!!Setting up a field within the `WikiFarm (field administrator)%0a%0a!!!WikiFarmの{+フィールド+}セットアップ(フィールド管理者)%0a%0aOnce PmWiki has been set up for `WikiFarming, a new field is created by doing the following:%0a%0a一度、PmWikiはWikiFarmingをセットアップするために、以下の手順で新しい{+フィールド+}を作成します。%0a%0a1. Create a directory to hold the field. Normally the field directory goes in a web-accessible directory (e.g., under ''public_html''), but it can be placed anywhere that a PmWiki installation would normally go. This could be a directory outside or inside the farm's home-directory.%0a%0a1. {+フィールド+}を格納する為のディレクトリを作成します。%0a普通、{+フィールド+}ディレクトリはWebアクセス可能とされます(例えば''public_html''以下)が、PmWiki設置場所のどこかに置いても、正常に動作します。%0a{+ファーム+}のホームディレクトリの内側でも外側でも可能です。%0a%0a%0a2. Create a PHP script (e.g., ''field.php'') in the field directory with the following line%0a%0a2. {+フィールド+}ディレクトリに下記のPHPスクリプト(例えば''field.php'')を作成しなさい%0a%0a %3c?php include([='=]''path/to/pmwiki.php'''); ?>%0a%0awhere ''path/to/pmwiki.php'' is the file path to the farm's installation of PmWiki. %0a%0a''path/to/pmwiki.php'' はPmWikiファームの設置場所のパスです。%0a%0aEither an absolute file path ([@/home/username/pmwiki/pmwiki.php@]) or relative file path ([@../pmwiki/pmwiki.php@]) will usually work, although PHP doesn't understand ~username in file paths. %0aDo not use a url path, i.e., there shouldn't be an '[@http://@]' in it anywhere. %0a%0aPHPは ~usenameパスを解釈しないが、絶対パス([@/home/username/pmwiki/pmwiki.php@])でも%0a相対パス([@../pmwiki/pmwiki.php@])でも通常は動作する。%0aURLパスは使用しない、つまり、'[@http://@]'にするべきではない。%0a%0a%0a->%25note%25 Note that it's not sufficient to use symbolic links or file shortcuts to connect to the farm installation of ''pmwiki.php''; one has to use an include statement in order for PmWiki to be able to correctly determine the location of the farm's ''scripts/'' and other directories.%0a%0a注)''pmwiki.php''の設置場所へ接続する為に、シンボリックリンクやファイルショートカットを使用するのは十分でないことに注意してください。PmWikiがファームスクリプトと他のディレクトリの場所を正しく決定できる、include構文でなければならない%0a%0a3. Change the field's directory permissions to 777.%0a%0a3. {+フィールド+}ディレクトリのパーミッションを777に変えてください。%0a%0a4. Open a web browser and execute the ''field.php'' script you created in step #2. This will create the needed directories for the field and should bring up a default PmWiki installation (with any default settings the farm administrator may have set).%0a%0a4. Webブラウザを開いて、手順2.で作成した''field.php''スクリプトを実行してください。%0aこれは{+フィールド+}に必要なディレクトリを作成し、デフォルトのPmWikiインストールを持ち出すでしょう(デフォルト設定はファーム管理者が設定するかも)%0a%0a%0a!!!Local customizations in fields and farms%0a!!!ファームとフィールドのローカルカスタマイズ%0a%0aEach field administrator can create a ''local/'' directory within the field directory for [[local customization(s)]] to be applied to the field. %0aThis works just like a normal PmWiki installation--the file %0a''local/config.php'' holds settings for the entire field, %0aand files of the form ''local/Group.php'' and ''[=local/Group.PageName.php=]'' %0aare used for per-group and per-page customizations (see PerGroupCustomizations).%0a%0a各{+フィールド+}管理者はローカルカスタマイズをフィールドに適用する為、フィールドディレクトリに''local/''ディレクトリを作成できる。%0a通常のPmWikiインストールのように適用することが出来る--''local/config.php'' ファイルは全{+フィールド+}の設定を掌握し、%0a''local/Group.php'' と ''[=local/Group.PageName.php=]'' ファイルはグループごと、ページごとのカスタマイズに使われます。(グループカスタマイズを参照)%0a%0aThe PmWiki variable ''$FarmD'' points to the "home directory" for the PmWiki farm installation; thus a field administrator can use ''$FarmD/scripts/'' and ''$FarmD/pub/'' to refer to the farm's ''scripts/'' and ''pub/'' directories.%0a%0aPmWiki変数''$FarmD''はPmWikiインストールのホームディレクトリを示します。%0aよって、フィールド管理者はファームの''scripts/''、''pub/'' ディレクトリを参照する為に%0a''$FarmD/scripts/''と''$FarmD/pub/'' を使用できます。%0a%0a%0aA farm administrator can use the ''local/farmconfig.php'' file for customizations to be applied to all fields within the farm. %0a By default, farm customizations are performed before any field-customization files; %0ahowever, the farm administrator can override some field-customizations by explicitly calling the field's config.php files (this effects all fields), as in:%0a%0aファーム管理者は''local/farmconfig.php''を%0a{+ファーム+}に含まれる全ての{+フィールド+}に有効とするカスタマイズに使用できます。%0aデフォルトでは、ファームカスタマイズファイルは、任意のフィールドカスタマイズファイルより先に働きます。%0aただし、ファーム管理者はフィールドのconfig.phpを、明示的な呼び出しにより、フィールドカスタマイズを上書きすることが出来ます(これは全てのフィールドに影響します)%0a%0a%0a %3c?php if (!defined('`PmWiki')) exit();%0a # Settings performed before field-customizations%0a $FarmPubDirUrl = 'http://www.example.com/pmwiki/pub';%0a $Skin = 'pmwiki-farm';%0a%0a # load the field's global and per-group customizations%0a include_once('local/config.php');%0a include_once('local/pgcust.php');%0a%0a # Override field customizations here%0a $EnableUpload = 0; # disable uploads%0a ?>%0a%0aIf extension scripts are used farm-wide and they are located in the farm's cookbook directory they should be loaded through entries in local/farmconfig.php like:\\%0a [@include_once("$FarmD/cookbook/scriptname.php");@]\\%0asimilar includes can be done in any field's local/config.php file. Note the double quotes "..."; single quotes do not work.%0a%0a拡張スクリプトが全ファームで使われ、それらがファームのcookbookディレクトリに配置されているならば、local/farmconfig.phpのエントリを通じてロードされるべきです。%0a [@include_once("$FarmD/cookbook/scriptname.php");@]\\%0aどのフィールドのlocal/config.phpでも同じように含めることが出来ます。%0a2重引用符 "..." であることに注意してください、単一引用符では動作しません。%0a%0a%0a!!!Notes%0a!!!注%0a%0a* Field directories can also contain local ''pub/'' (for installing any custom skins for the field for instance) and ''uploads/'' directories. %0aA per-field ''uploads/'' directory will normally be created in the field directory if uploads are enabled (see [[UploadsAdmin]]).%0a%0a* フィールドディレクトリは''pub/''ディレクトリ(フィールド毎のカスタムスキンを設置するため)や''uploads/''ディレクトリを含めることが出来ます。%0a通常、アップロードが有効にされれば([[アップロード]]を参照)、フィールド毎の''uploads/''ディレクトリがフィールドディレクトリ内に生成されます。%0a%0a* Pages distributed with PmWiki (e.g., documentation) are automatically shared among all fields in a farm. This is controlled through the $WikiLibDirs variable, which defaults to looking in the farm's copy of ''wikilib.d/''.%0a%0a* PmWikiで配布されるページ(例えばドキュメント)は、ファーム内の全てのフィールドで自動的に共有されます。%0aこれは$WikiLibDirs変数によって制御され、ファームの''wikilib.d/''のコピーを捜すことを放棄します。%0a%0a* Other pages can be shared by multiple fields in a farm, see Cookbook:SharedPages.%0a%0a* ファームの複数フィールドで他のページを共有することが出来ます。 Cookbook:SharedPages.を参照してください。%0a%0a* The file ''farmmap.txt'' in the farm's ''local/'' directory can be used to provide farm-wide InterMap links. This may be useful for creating links to pages in other fields of the farm.%0a%0a* ファームの''local''ディレクトリの''farmmap.txt''をファーム全域のInterMapリンクとして提供できます。%0aこれは他のフィールドのページへのリンクを生成するのに便利でしょう。%0a%0a%0a* In general, fields can be created and administered from user accounts other than the one maintaining the farm if the underlying operating system permissions and PHP configuration settings allow it. PHP's default configuration normally allows this, but some system administrators and web hosting services change the PHP configuration such that this is not possible.%0a%0a一般的に、オペレーティングシステムのパーミッションとPHPの設定が許可していれば、%0aフィールドはユーザアカウントにより生成され、管理される。通常のPHPのデフォルト設定ではこれを許可しているが、システム管理者やWebホスティングサービスによっては、PHP設定でこれを不可にしている。%0a%0a%25trail%25 %3c%3c|[[DocumentationIndex]]|>> time=1134003608