Skip to content

Commit 334ff8e

Browse files
committed
Clarify FPM configuration options
php/doc-en@0a2cede
1 parent 0713b33 commit 334ff8e

File tree

1 file changed

+72
-20
lines changed

1 file changed

+72
-20
lines changed

install/fpm/configuration.xml

Lines changed: 72 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 78cfb58c46cab7bd81921faeacd1c6830d807dbd Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 0a2cede24d8931daf458935665d0cac08d0926c5 Maintainer: takagi Status: ready -->
44
<!-- Credits: mumumu -->
55

66
<sect1 xml:id="install.fpm.configuration" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -822,18 +822,31 @@
822822
</row>
823823
</thead>
824824
<tbody>
825+
<row>
826+
<entry>
827+
<literal>%%</literal>
828+
</entry>
829+
<entry><literal>%</literal> 文字</entry>
830+
</row>
825831
<row>
826832
<entry>
827833
<constant>%C</constant>
828834
</entry>
829-
<entry>%CPU</entry>
835+
<entry>
836+
リクエストが使う %CPU。
837+
以下のフォーマットが使えます:
838+
<literal>%{user}C</literal> user CPU のみ。
839+
<literal>%{system}C</literal> system CPU のみ。
840+
<literal>%{total}C</literal> user + system CPU (デフォルト)
841+
</entry>
830842
</row>
831843
<row>
832844
<entry>
833845
<constant>%d</constant>
834846
</entry>
835847
<entry>
836-
処理時間。精度について、以下のフォーマットが許可されています:
848+
リクエストの処理に掛かる時間。
849+
精度について、以下のフォーマットが許可されています:
837850
<literal>%{seconds}d</literal> (デフォルト), <literal>%{milliseconds}d</literal>,
838851
<literal>%{microseconds}d</literal>.
839852
</entry>
@@ -842,49 +855,79 @@
842855
<entry>
843856
<constant>%e</constant>
844857
</entry>
845-
<entry>fastcgi の環境変数</entry>
858+
<entry>
859+
環境変数 (<varname>$_ENV</varname> や <varname>$_SERVER</varname> と同じ)。
860+
変数の名前は、指定する環境変数の名前を中括弧で囲んだものでなければなりません。
861+
たとえば、サーバの変数として
862+
<literal>%{REQUEST_METHOD}e</literal> や
863+
<literal>%{SERVER_PROTOCOL}e</literal>、
864+
HTTP ヘッダの変数として
865+
<literal>%{HTTP_HOST}e</literal> や
866+
<literal>%{HTTP_USER_AGENT}e</literal> が挙げられます。
867+
</entry>
846868
</row>
847869
<row>
848870
<entry>
849871
<constant>%f</constant>
850872
</entry>
851-
<entry>script</entry>
873+
<entry>script のファイル名</entry>
852874
</row>
853875
<row>
854876
<entry>
855877
<constant>%l</constant>
856878
</entry>
857-
<entry>content length</entry>
879+
<entry>
880+
リクエストの <literal>Content-Length</literal> (HTTP POST のみ)
881+
</entry>
858882
</row>
859883
<row>
860884
<entry>
861885
<constant>%m</constant>
862886
</entry>
863-
<entry>method</entry>
887+
<entry>HTTP リクエストの method</entry>
864888
</row>
865889
<row>
866890
<entry>
867891
<constant>%M</constant>
868892
</entry>
869-
<entry>memory</entry>
893+
<entry>
894+
PHP によって確保されたメモリのピーク値。
895+
以下のフォーマットが使えます:
896+
<literal>%{bytes}M</literal> (デフォルト),
897+
<literal>%{kilobytes}M</literal>,
898+
<literal>%{kilo}M</literal>, <literal>%{megabytes}M</literal>,
899+
<literal>%{mega}M</literal>
900+
</entry>
870901
</row>
871902
<row>
872903
<entry>
873904
<constant>%n</constant>
874905
</entry>
875-
<entry>pool name</entry>
906+
<entry>Pool name</entry>
876907
</row>
877908
<row>
878909
<entry>
879-
<constant>%o</constant>
910+
<literal>%{<replaceable>name</replaceable>}o</literal>
911+
</entry>
912+
<entry>
913+
出力ヘッダ。
914+
ヘッダ名は、中括弧で囲んで指定しなければいけません。
915+
例: <literal>%{Content-Type}o</literal>,
916+
<literal>%{X-Powered-By}o</literal>,
917+
<literal>%{Transfer-Encoding}o</literal>
880918
</entry>
881-
<entry>header output</entry>
882919
</row>
883920
<row>
884921
<entry>
885922
<constant>%p</constant>
886923
</entry>
887-
<entry>PID</entry>
924+
<entry>リクエストを処理した子プロセスの PID</entry>
925+
</row>
926+
<row>
927+
<entry>
928+
<literal>%P</literal>
929+
</entry>
930+
<entry>リクエストを処理した子の親のPID</entry>
888931
</row>
889932
<row>
890933
<entry>
@@ -896,13 +939,22 @@
896939
<entry>
897940
<constant>%Q</constant>
898941
</entry>
899-
<entry>the glue between %q and %r</entry>
942+
<entry>
943+
<literal>'?'</literal> 文字、または
944+
クエリストリングが存在した場合、
945+
<literal>%q</literal> と <literal>%r</literal>,
946+
の間の glue
947+
</entry>
900948
</row>
901949
<row>
902950
<entry>
903951
<constant>%r</constant>
904952
</entry>
905-
<entry>request URI</entry>
953+
<entry>
954+
クエリストリングを除いたリクエストURI。
955+
<literal>%q</literal> と <literal>%Q</literal>
956+
も参照ください。
957+
</entry>
906958
</row>
907959
<row>
908960
<entry>
@@ -914,25 +966,25 @@
914966
<entry>
915967
<constant>%s</constant>
916968
</entry>
917-
<entry>status</entry>
969+
<entry>Status (response code)</entry>
918970
</row>
919971
<row>
920972
<entry>
921-
<constant>%T</constant>
973+
<constant>%t</constant>
922974
</entry>
923-
<entry>time</entry>
975+
<entry>リクエストを受け取ったサーバ側の時刻</entry>
924976
</row>
925977
<row>
926978
<entry>
927-
<constant>%t</constant>
979+
<constant>%T</constant>
928980
</entry>
929-
<entry>time</entry>
981+
<entry>ログが書き込まれた時間(リクエストが終了した時間)</entry>
930982
</row>
931983
<row>
932984
<entry>
933985
<constant>%u</constant>
934986
</entry>
935-
<entry>remote user</entry>
987+
<entry>Remote user</entry>
936988
</row>
937989
</tbody>
938990
</tgroup>

0 commit comments

Comments
 (0)