<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Recommended Configuration on Windows systems</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="install.windows.tools.html">PHP Installer Tools on Windows</a></div> <div class="next" style="text-align: right; float: right;"><a href="install.windows.manual.html">Manual PHP Installation on Windows</a></div> <div class="up"><a href="install.windows.html">Installation on Windows systems</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="install.windows.recommended" class="sect1"> <h2 class="title">Recommended Configuration on Windows systems</h2> <div class="sect2"> <h3 class="title">OpCache</h3> <p class="para"> Highly Recommended that you 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. </p> <p class="para"> In your php.ini, set <div class="example" id="install.unix.nginx.configure.nginx"> <p><strong>Example #1 Recommended OpCache configuration</strong></p> <div class="example-contents screen"> <div class="cdata"><pre> zend_extension=php_opcache.dll opcache.enable=On opcache.enable_cli=On </pre></div> </div> </div> And restart your web server. For more info, see: <a href="opcache.configuration.html" class="link">OpCache Configuration</a> </p> </div> <div class="sect2"> <h3 class="title">WinCache</h3> <p class="para"> Recommended that you use WinCache if using IIS, especially if in a shared web hosting environment or using networked file storage (NAS). 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 <var class="varname"><var class="varname">php.exe</var></var> or <var class="varname"><var class="varname">php-cgi.exe</var></var> 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: <a href="http://pecl.php.net/package/WinCache" class="link external">» http://pecl.php.net/package/WinCache</a> to download a WinCache DLL (or tgz) to your PHP extensions directory (extensions_dir in your php.ini). In your php.ini, set <div class="example" id="install.unix.nginx.configure.nginx.location"> <p><strong>Example #2 Recommended WinCache configuration</strong></p> <div class="example-contents screen"> <div class="cdata"><pre> extension=php_wincache.dll wincache.fcenabled=1 wincache.ocenabled=1 ; removed as of wincache 2.0.0.0 </pre></div> </div> </div> For more info, see: <a href="http://php.net/manual/en/wincache.configuration.php" class="link external">» http://php.net/manual/en/wincache.configuration.php</a> </p> </div> <div class="sect2"> <h3 class="title">IIS Configuration</h3> <p class="para">In IIS Manager, Install FastCGI module and add a handler mapping for <var class="varname"><var class="varname">`.php`</var></var> to the path to <var class="varname"><var class="varname">PHP-CGI.exe</var></var> (not <var class="varname"><var class="varname">PHP.exe</var></var>)</p> <p class="para"> You may use the APPCMD command line tool to script IIS configuration. </p> </div> <div class="sect2"> <h3 class="title">Database</h3> <p class="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.</p> <p class="para">PHP includes mysqli and pdo_mysql extensions. PHP 5.5 and 5.6 include mysql extension (deprecated in 7.0).</p> <p class="para">See <a href="https://dev.mysql.com/downloads/windows/" class="link external">» https://dev.mysql.com/downloads/windows/</a></p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="install.windows.tools.html">PHP Installer Tools on Windows</a></div> <div class="next" style="text-align: right; float: right;"><a href="install.windows.manual.html">Manual PHP Installation on Windows</a></div> <div class="up"><a href="install.windows.html">Installation on Windows systems</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>