Skip to content

Commit 58ee6f9

Browse files
author
Yoshinari Takaoka
committed
Fix #80044: Script in documentation fails
Improve Windows installation docsParticulary wrt. proper sectioning and personalization. git-svn-id: https://svn.php.net/repository/phpdoc/ja/trunk@350487 c90b9560-bf6c-de11-be94-00142212c4b1
1 parent 496b5f0 commit 58ee6f9

File tree

1 file changed

+44
-49
lines changed

1 file changed

+44
-49
lines changed

install/windows/manual.xml

Lines changed: 44 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,80 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 6ccdace91b727bd0f32214d1670a5e765fd28a09 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: cd118fcbd8ac516b4f2bbe20a2eec7bcf7573b08 Maintainer: takagi Status: ready -->
44
<!-- Credits: mumumu -->
55
<sect1 xml:id="install.windows.manual" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
6-
<title>Windows 上での PHP の手動インストール</title>
7-
<sect2>
8-
<title>ウェブサーバーの選択</title>
9-
<para>
10-
<itemizedlist spacing="compact">
11-
<listitem>
12-
<para>
6+
<title>Windows 上での PHP の手動インストール</title>
7+
<sect2>
8+
<title>ウェブサーバーの選択</title>
9+
<sect3>
10+
<title>IIS</title>
11+
<para>
1312
IIS は Windows に標準で組み込まれています。
13+
Windows サーバーの場合は、サーバーマネージャーを使って IIS ロールを追加します。CGI ロールを含める必要があります。
14+
Windows デスクトップの場合は、コントロールパネルの「プログラムの追加と削除」を使って IIS を追加します。
15+
Microsoft のドキュメントに <link xlink:href="https://docs.microsoft.com/en-us/previous-versions/ms181052(v=vs.80)">詳細な手順があります</link>。
16+
デスクトップウェブアプリケーションやウェブ開発の場合は、IIS/Express や PHP Desktop も使えます。
1417

15-
Windows サーバーの場合は、サーバーマネージャーを使って IIS ロールを追加します。CGI ロールを含めることを忘れないようにしましょう。
18+
<example>
19+
<title>IIS と PHP の設定をするためのコマンドライン</title>
20+
<programlisting>
21+
<![CDATA[
1622
17-
Windows デスクトップの場合は、コントロールパネルの「プログラムの追加と削除」を使って IIS を追加します。<link xlink:href="https://msdn.microsoft.com/en-us/library/ms181052%28v=vs.80%29.aspx?f=255&amp;MSPPError=-2147217396">https://msdn.microsoft.com/en-us/library/ms181052%28v=vs.80%29.aspx?f=255&amp;MSPPError=-2147217396</link> を参照ください。
23+
@echo off
1824
19-
デスクトップウェブアプリケーションやウェブ開発の場合は、IIS/Express や PHP Desktop も使えます。
20-
21-
<example>
22-
<title>IIS と PHP の設定をするためのコマンドライン</title>
23-
<programlisting>
24-
<![CDATA[
25+
REM download .ZIP file of PHP build from http://windows.php.net/downloads/
2526
26-
@echo off
27+
REM path to directory you decompressed PHP .ZIP file into (no trailing \)
28+
set phppath=c:\php
2729
28-
REM download .ZIP file of PHP build from http://windows.php.net/downloads/
29-
REM
30-
REM path to directory you decompressed PHP .ZIP file into
31-
set phpdir=c:\php
32-
set phppath=php-5.6.19-nts-Win32-VC11-x86
3330
3431
REM Clear current PHP handlers
3532
%windir%\system32\inetsrv\appcmd clear config /section:system.webServer/fastCGI
33+
REM The following command will generate an error message if PHP is not installed. This can be ignored.
3634
%windir%\system32\inetsrv\appcmd set config /section:system.webServer/handlers /-[name='PHP_via_FastCGI']
3735
3836
REM Set up the PHP handler
39-
%windir%\system32\inetsrv\appcmd set config /section:system.webServer/fastCGI /+[fullPath='%phpdir%\%phppath%\php-cgi.exe']
40-
%windir%\system32\inetsrv\appcmd set config /section:system.webServer/handlers /+[name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='%phpdir%\%phppath%\php-cgi.exe',resourceType='Unspecified']
37+
%windir%\system32\inetsrv\appcmd set config /section:system.webServer/fastCGI /+[fullPath='%phppath%\php-cgi.exe']
38+
%windir%\system32\inetsrv\appcmd set config /section:system.webServer/handlers /+[name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='%phppath%\php-cgi.exe',resourceType='Unspecified']
4139
%windir%\system32\inetsrv\appcmd set config /section:system.webServer/handlers /accessPolicy:Read,Script
4240
4341
REM Configure FastCGI Variables
44-
%windir%\system32\inetsrv\appcmd set config -section:system.webServer/fastCgi /[fullPath='%phpdir%\%phppath%\php-cgi.exe'].instanceMaxRequests:10000
45-
%windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/fastCgi /+"[fullPath='%phpdir%\%phppath%\php-cgi.exe'].environmentVariables.[name='PHP_FCGI_MAX_REQUESTS',value='10000']"
46-
%windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/fastCgi /+"[fullPath='%phpdir%\%phppath%\php-cgi.exe'].environmentVariables.[name='PHPRC',value='%phpdir%\%phppath%\php.ini']"
47-
42+
%windir%\system32\inetsrv\appcmd set config -section:system.webServer/fastCgi /[fullPath='%phppath%\php-cgi.exe'].instanceMaxRequests:10000
43+
%windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/fastCgi /+"[fullPath='%phppath%\php-cgi.exe'].environmentVariables.[name='PHP_FCGI_MAX_REQUESTS',value='10000']"
44+
%windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/fastCgi /+"[fullPath='%phppath%\php-cgi.exe'].environmentVariables.[name='PHPRC',value='%phppath%\php.ini']"
4845
]]>
49-
</programlisting>
50-
</example>
46+
</programlisting>
47+
</example>
5148

52-
<link linkend="install.windows.legacy.iis7">IIS を手動で設定する方法</link>
53-
</para>
54-
</listitem>
55-
<listitem>
56-
<para>
49+
<link linkend="install.windows.legacy.iis7">古い IIS のインストール方法</link> も参照して下さい。
50+
</para>
51+
</sect3>
5752

53+
<sect3>
54+
<title>Apache</title>
55+
<para>
5856
Windows 用の Apache2 のビルドには、いくつかの種類があります。
5957

60-
PHP が公式にサポートするのは ApacheLounge ですが、それ以外にも XAMPP や WampServer や BitNami といったものがあり、これらはインストーラがついています。
58+
ApacheLounge がおすすめですが、それ以外にも XAMPP や WampServer や BitNami といったものがあり、これらはインストーラがついています。
6159

62-
PHP を Apache に読み込みには、mod_php あるいは mod_fastcgi を用います。
60+
Apache で PHP を使うには、mod_php あるいは mod_fastcgi を用います。
6361

6462
mod_php を使う場合は、スレッドセーフ版の Apache を使う必要があります。また、同じバージョンの Visual C、同じ CPU (x86 あるいは x64) のビルドでなければいけません。
6563

66-
<link linkend="install.windows.legacy.apache2">Apache2 を手動で設定する方法</link>
67-
</para>
68-
</listitem>
69-
</itemizedlist>
70-
</para>
64+
<link linkend="install.windows.legacy.apache2">古いApache のインストール手順</link> も参照して下さい。
65+
</para>
66+
</sect3>
7167
</sect2>
7268

7369
<sect2>
7470
<title>ビルド方法の選択</title>
7571
<para>
76-
77-
PHP のリリースは <link xlink:href="http://windows.php.net/download/">http://windows.php.net/download/</link> からダウンロードできます。
78-
79-
これまでのスナップショットリリースや QA リリースで数多くのテストや最適化がなされていますが、さらに手助けしてくださるのも大歓迎です。
72+
Windows 向けのビルドは <link xlink:href="http://windows.php.net/download/">http://windows.php.net/download/</link> からダウンロードできます。
8073

74+
全てのビルドは最適化(<abbrev>PGO</abbrev>) されており、 QA や GA リリースで数多くのテストがなされています。
75+
</para>
76+
<para>
8177
PHP には四種類のビルドがあります。
82-
8378
<itemizedlist spacing="compact">
8479
<listitem>
8580
<para>Thread-Safe(TS) - Apache と mod_php のような、シングルプロセスのウェブサービス用</para>
@@ -88,10 +83,10 @@ REM Configure FastCGI Variables
8883
<para>Non-Thread-Safe(NTS) - IIS やその他の FastCGI ウェブサーバー (Apache と mod_fastcgi など) 用。また、コマンドラインのスクリプト用にもおすすめ。</para>
8984
</listitem>
9085
<listitem>
91-
<para>x86 - PHP 5.5、5.6、7.0 の実運用環境用。</para>
86+
<para>x86 - PHP 5.5 以上の実運用環境用。</para>
9287
</listitem>
9388
<listitem>
94-
<para>x64 - PHP 7.0+ の実運用環境用 (ただし、32ビット版のWindowsでは使えない)。5.5 と 5.6 の x64 版は実験的なもの。</para>
89+
<para>x64 - PHP 7.0 の実運用環境用 (ただし、32ビット版のWindowsでは使えない)。5.5 と 5.6 の x64 版は実験的なもの。</para>
9590
</listitem>
9691
</itemizedlist>
9792
</para>

0 commit comments

Comments
 (0)