mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
1. Changed <orderedlist> to <procedure> with <simpara>.
2. Reduced the size of one big screenshot. 3. Added line breaks to long command lines. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@289817 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
9ee3ebd0e3
commit
8cc8e803f1
3 changed files with 102 additions and 95 deletions
Binary file not shown.
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 53 KiB |
|
@ -88,22 +88,22 @@ cscript %windir%\system32\inetsrv\fcgiconfig.js -add -section:"PHP" ^
|
|||
</para>
|
||||
<para>
|
||||
To determine which user account is used by IIS anonymous authentication, follow these steps:
|
||||
<orderedlist spacing="compact">
|
||||
<listitem>
|
||||
<para>In the Windows Start Menu choose "Run:", type "inetmgr" and click "Ok";</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Expand the list of web sites under the "Web Sites" node in the tree view, right-click on a web
|
||||
<procedure>
|
||||
<step>
|
||||
<simpara>In the Windows Start Menu choose "Run:", type "inetmgr" and click "Ok";</simpara>
|
||||
</step>
|
||||
<step>
|
||||
<simpara>Expand the list of web sites under the "Web Sites" node in the tree view, right-click on a web
|
||||
site that is being used and select "Properties";
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Click the "Directory Security" tab;</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Take note of a "User name:" field in the "Authentication Methods" dialog</para>
|
||||
</listitem>
|
||||
</orderedlist>
|
||||
</simpara>
|
||||
</step>
|
||||
<step>
|
||||
<simpara>Click the "Directory Security" tab;</simpara>
|
||||
</step>
|
||||
<step>
|
||||
<simpara>Take note of a "User name:" field in the "Authentication Methods" dialog</simpara>
|
||||
</step>
|
||||
</procedure>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="en/install/windows/figures/iis6anonauth.png" width="654" depth="461" />
|
||||
|
@ -129,20 +129,20 @@ icacls C:\inetpub\wwwroot\upload /grant IUSR:(OI)(CI)(M)
|
|||
The IIS default documents are used for HTTP requests that do not specify a document name. With PHP applications,
|
||||
<filename>index.php</filename> usually acts as a default document. To add <filename>index.php</filename> to the list of
|
||||
IIS default documents, follow these steps:
|
||||
<orderedlist spacing="compact">
|
||||
<listitem>
|
||||
<para>In the Windows Start Menu choose "Run:", type "inetmgr" and click "Ok";</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Right-click on the "Web Sites" node in the tree view and select "Properties";</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Click the "Documents" tab;</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Click the "Add..." button and enter "index.php" for the "Default content page:".</para>
|
||||
</listitem>
|
||||
</orderedlist>
|
||||
<procedure>
|
||||
<step>
|
||||
<simpara>In the Windows Start Menu choose "Run:", type "inetmgr" and click "Ok";</simpara>
|
||||
</step>
|
||||
<step>
|
||||
<simpara>Right-click on the "Web Sites" node in the tree view and select "Properties";</simpara>
|
||||
</step>
|
||||
<step>
|
||||
<simpara>Click the "Documents" tab;</simpara>
|
||||
</step>
|
||||
<step>
|
||||
<simpara>Click the "Add..." button and enter "index.php" for the "Default content page:".</simpara>
|
||||
</step>
|
||||
</procedure>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="en/install/windows/figures/iis6defaultdoc.png" width="659" depth="465" />
|
||||
|
|
|
@ -18,26 +18,26 @@
|
|||
</para>
|
||||
<para>
|
||||
To enable FastCGI support on Windows Vista SP1 and Windows 7:
|
||||
<orderedlist spacing="compact">
|
||||
<listitem>
|
||||
<para>
|
||||
<procedure>
|
||||
<step>
|
||||
<simpara>
|
||||
In the Windows Start Menu choose "Run:", type "optionalfeatures.exe"
|
||||
and click "Ok";
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
</simpara>
|
||||
</step>
|
||||
<step>
|
||||
<simpara>
|
||||
In the "Windows Features" dialog expand "Internet Information
|
||||
Services", "World Wide Web Services", "Application Development
|
||||
Features" and then enable the "CGI" checkbox;
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
</simpara>
|
||||
</step>
|
||||
<step>
|
||||
<simpara>
|
||||
Click OK and wait until the installation is complete.
|
||||
</para>
|
||||
</listitem>
|
||||
</orderedlist>
|
||||
</simpara>
|
||||
</step>
|
||||
</procedure>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="en/install/windows/figures/iis7vistacgi.png" />
|
||||
|
@ -46,31 +46,31 @@
|
|||
</para>
|
||||
<para>
|
||||
To enable FastCGI support on Windows Server 2008 and Windows Server 2008 R2:
|
||||
<orderedlist spacing="compact">
|
||||
<listitem>
|
||||
<para>
|
||||
<procedure>
|
||||
<step>
|
||||
<simpara>
|
||||
In the Windows Start Menu choose "Run:", type "CompMgmtLauncher"
|
||||
and click "Ok";
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
</simpara>
|
||||
</step>
|
||||
<step>
|
||||
<simpara>
|
||||
If the "Web Server (IIS)" role is not present under the "Roles"
|
||||
node, then add it by clicking "Add Roles";
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
</simpara>
|
||||
</step>
|
||||
<step>
|
||||
<simpara>
|
||||
If the "Web Server (IIS)" role is present, then click "Add Role Services"
|
||||
and then enable the "CGI" checkbox under "Application Development" group;
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
</simpara>
|
||||
</step>
|
||||
<step>
|
||||
<simpara>
|
||||
Click "Next" and then "Install" and wait for the installation to complete.
|
||||
</para>
|
||||
</listitem>
|
||||
</orderedlist>
|
||||
</simpara>
|
||||
</step>
|
||||
</procedure>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="en/install/windows/figures/iis7w2k8cgi.png" />
|
||||
|
@ -112,14 +112,14 @@ cgi.force_redirect = 0
|
|||
<title>Using IIS Manager user interface to create a handler mapping for PHP</title>
|
||||
<para>
|
||||
Follow these steps to create an IIS handler mapping for PHP in IIS Manager user interface:
|
||||
<orderedlist spacing="compact">
|
||||
<listitem>
|
||||
<para>In the Windows Start Menu choose "Run:", type "inetmgr" and click "Ok";</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>In the IIS Manager user interface select the server node in the "Connections" tree view;</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<procedure>
|
||||
<step>
|
||||
<simpara>In the Windows Start Menu choose "Run:", type "inetmgr" and click "Ok";</simpara>
|
||||
</step>
|
||||
<step>
|
||||
<simpara>In the IIS Manager user interface select the server node in the "Connections" tree view;</simpara>
|
||||
</step>
|
||||
<step>
|
||||
<para>
|
||||
In the "Features View" page open the "Handler Mappings" feature;
|
||||
<mediaobject>
|
||||
|
@ -128,11 +128,11 @@ cgi.force_redirect = 0
|
|||
</imageobject>
|
||||
</mediaobject>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>In the "Actions" pane click "Add Module Mapping...";</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
</step>
|
||||
<step>
|
||||
<simpara>In the "Actions" pane click "Add Module Mapping...";</simpara>
|
||||
</step>
|
||||
<step>
|
||||
<para>
|
||||
In the "Add Module Mapping" dialog enter the following:
|
||||
<itemizedlist spacing="compact">
|
||||
|
@ -150,17 +150,17 @@ cgi.force_redirect = 0
|
|||
</listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
</step>
|
||||
<step>
|
||||
<simpara>
|
||||
Click "Request Restrictions" button and then configure the mapping to invoke handler
|
||||
only if request is mapped to a file or a folder;
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Click OK on all the dialogs to save the configuration.</para>
|
||||
</listitem>
|
||||
</orderedlist>
|
||||
</simpara>
|
||||
</step>
|
||||
<step>
|
||||
<simpara>Click OK on all the dialogs to save the configuration.</simpara>
|
||||
</step>
|
||||
</procedure>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="en/install/windows/figures/iis7handlermap.png" />
|
||||
|
@ -178,7 +178,8 @@ cgi.force_redirect = 0
|
|||
<title>Creating IIS FastCGI process pool</title>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
%windir%\system32\inetsrv\appcmd set config /section:system.webServer/fastCGI /+[fullPath='c:\PHP\php-cgi.exe']
|
||||
%windir%\system32\inetsrv\appcmd set config /section:system.webServer/fastCGI ^
|
||||
/+[fullPath='c:\PHP\php-cgi.exe']
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
|
@ -190,8 +191,9 @@ cgi.force_redirect = 0
|
|||
<title>Creating handler mapping for PHP requests</title>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
%windir%\system32\inetsrv\appcmd set config /section:system.webServer/handlers /+[name='PHP_via_FastCGI',
|
||||
path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='c:\PHP\php-cgi.exe',resourceType='Either']
|
||||
%windir%\system32\inetsrv\appcmd set config /section:system.webServer/handlers ^
|
||||
/+[name='PHP_via_FastCGI', path='*.php',verb='*',modules='FastCgiModule',^
|
||||
scriptProcessor='c:\PHP\php-cgi.exe',resourceType='Either']
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
|
@ -235,7 +237,9 @@ path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='c:\PHP\php-cgi.ex
|
|||
<title>Determining the account used as IIS anonymous identity</title>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
%windir%\system32\inetsrv\appcmd.exe list config "Default Web Site" /section:anonymousAuthentication
|
||||
%windir%\system32\inetsrv\appcmd.exe list config "Default Web Site" ^
|
||||
/section:anonymousAuthentication
|
||||
|
||||
<system.webServer>
|
||||
<security>
|
||||
<authentication>
|
||||
|
@ -278,8 +282,9 @@ icacls C:\inetpub\wwwroot\upload /grant IUSR:(OI)(CI)(M)
|
|||
<title>Set <filename>index.php</filename> as a default document in IIS</title>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
%windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/defaultDocument
|
||||
/+"files.[value='index.php']" /commit:apphost
|
||||
%windir%\system32\inetsrv\appcmd.exe set config ^
|
||||
-section:system.webServer/defaultDocument /+"files.[value='index.php']" ^
|
||||
/commit:apphost
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
|
@ -299,10 +304,12 @@ icacls C:\inetpub\wwwroot\upload /grant IUSR:(OI)(CI)(M)
|
|||
<title>Configuring FastCGI and PHP recycling</title>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
%windir%\system32\inetsrv\appcmd set config -section:system.webServer/fastCgi
|
||||
%windir%\system32\inetsrv\appcmd set config ^
|
||||
-section:system.webServer/fastCgi ^
|
||||
/[fullPath='c:\php\php-cgi.exe'].instanceMaxRequests:10000
|
||||
|
||||
%windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/fastCgi
|
||||
%windir%\system32\inetsrv\appcmd.exe set config ^
|
||||
-section:system.webServer/fastCgi ^
|
||||
/+"[fullPath='C:\{php_folder}\php-cgi.exe'].environmentVariables.[name='PHP_FCGI_MAX_REQUESTS',value='10000']"
|
||||
]]>
|
||||
</programlisting>
|
||||
|
@ -321,10 +328,10 @@ icacls C:\inetpub\wwwroot\upload /grant IUSR:(OI)(CI)(M)
|
|||
<title>Configuring FastCGI and PHP recycling</title>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
%windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/fastCgi
|
||||
%windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/fastCgi ^
|
||||
/[fullPath='C:\php\php-cgi.exe',arguments=''].activityTimeout:"90" /commit:apphost
|
||||
|
||||
%windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/fastCgi
|
||||
%windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/fastCgi ^
|
||||
/[fullPath='C:\php\php-cgi.exe',arguments=''].requestTimeout:"90" /commit:apphost
|
||||
]]>
|
||||
</programlisting>
|
||||
|
@ -345,8 +352,8 @@ icacls C:\inetpub\wwwroot\upload /grant IUSR:(OI)(CI)(M)
|
|||
<title>Changing the location of <filename>php.ini</filename> file</title>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
appcmd.exe set config -section:system.webServer/fastCgi
|
||||
/+"[fullPath='C:\php\php.exe',arguments=''].environmentVariables.[name='PHPRC',value='C:\Some\Directory\']"
|
||||
appcmd.exe set config -section:system.webServer/fastCgi ^
|
||||
/+"[fullPath='C:\php\php.exe',arguments=''].environmentVariables.[name='PHPRC',value='C:\Some\Directory\']" ^
|
||||
/commit:apphost
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
Loading…
Reference in a new issue