php-doc-en/install/windows/recommended.xml
George Peter Banyard 8e732e84a1
Remove legacy Windows docs (#661)
Also fix the very weird indentation (sorry translations)

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-06-13 23:20:58 +01:00

111 lines
3.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<sect1 xml:id="install.windows.recommended" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Recommended Configuration on Windows systems</title>
<sect2>
<title>OpCache</title>
<para>
It is highly recommended to enable OpCache.
This extension is included with PHP for Windows.
It compiles and optimizes PHP scripts and caches them in memory so that
they aren't compiled every time the page is loaded.
</para>
<para>
Set the &php.ini; to:
<example>
<title>Recommended OpCache configuration</title>
<screen>
<![CDATA[
opcache.enable=On
opcache.enable_cli=On
]]>
</screen>
</example>
And restart the web server.
For more info, see: <link linkend="opcache.configuration">OpCache Configuration</link>
</para>
</sect2>
<sect2>
<title>WinCache</title>
<para>
It is recommended to use WinCache if using IIS, especially if in a shared
web hosting environment or using networked file storage (NAS).
Note that WinCache is no longer supported as of PHP 8.0.0.
All PHP Applications automatically benefit from WinCache's file cache feature. File system operations are cached in memory.
WinCache also can cache user objects in memory and share them between <varname>php.exe</varname> or <varname>php-cgi.exe</varname> processes (share objects between requests).
Many major web applications have a plugin or extension or configuration option to make use of the WinCache user object cache.
If you need high performance, you should use the object cache in your applications.
See: <link xlink:href="http://pecl.php.net/package/WinCache">http://pecl.php.net/package/WinCache</link> to download a WinCache DLL (or tgz) to your PHP extensions directory (extensions_dir in your php.ini).
Set the &php.ini; to:
<example>
<title>Recommended WinCache configuration</title>
<screen>
<![CDATA[
extension=php_wincache.dll
wincache.fcenabled=1
wincache.ocenabled=1 ; removed as of wincache 2.0.0.0
]]>
</screen>
</example>
For more info, see:
<link linkend="wincache.configuration">WinCache Configuration</link>
</para>
</sect2>
<sect2>
<title>IIS Configuration</title>
<para>
In IIS Manager, Install FastCGI module and add a handler mapping for
<varname>`.php`</varname> to the path to <varname>PHP-CGI.exe</varname>
(not <varname>PHP.exe</varname>)
</para>
<para>
You may use the APPCMD command line tool to script IIS configuration.
</para>
</sect2>
<sect2>
<title>Database</title>
<para>
You'll probably need a Database Server.
Popular databases provide PHP extensions to use them.
If your web site doesn't get a lot of traffic,
you can run your database server on the same server as your web server.
Many popular database servers run on Windows.
</para>
<para>PHP includes mysqli and pdo_mysql extensions.</para>
<para>
See <link xlink:href="https://dev.mysql.com/downloads/windows/">https://dev.mysql.com/downloads/windows/</link>
</para>
</sect2>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->