欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  网络运营

Windows Server 2016 PHP运行环境安装配置

程序员文章站 2022-12-07 19:18:41
1、下载php 官网地址: http://php.net/ 下载地址: http://php.net/downloads.php 2、下载wi...

Windows Server 2016 PHP运行环境安装配置

1、下载php

官网地址:

http://php.net/

下载地址:

http://php.net/downloads.php


Windows Server 2016 PHP运行环境安装配置

Windows Server 2016 PHP运行环境安装配置

2、下载windows service wrapper
官网地址:
https://github.com/kohsuke/winsw/
下载地址:
http://repo.jenkins-ci.org/releases/com/sun/winsw/winsw/


Windows Server 2016 PHP运行环境安装配置


Windows Server 2016 PHP运行环境安装配置

3、解压php压缩包文件到c盘根目录,并且重命名为php

Windows Server 2016 PHP运行环境安装配置

4、将"winsw-1.19-bin.exe"重命名为"php-service.exe",并且复制到php根目录

Windows Server 2016 PHP运行环境安装配置

5、在php根目录编写php-service.xml文件

Windows Server 2016 PHP运行环境安装配置

php-service.xml文件内容

<?xml version="1.0" encoding="utf-8" ?>
<service>
 <id>php</id>
 <name>php</name>
 <description>本服务用于加载php服务,请确保开机启动。</description>
 <logpath>c:\php\logs</logpath>
 <executable>php-cgi.exe</executable>
 <arguments>-b 127.0.0.1:9000 -c php.ini</arguments>
 <logmode>rotate</logmode>
</service>

6、创建服务日志目录

在php根目录创建网站目录,命名为"logs"。

Windows Server 2016 PHP运行环境安装配置

7、配置php
配置php环境变量
按下win+x+y键
进入win系统界面
点击"高级系统设置"—>"高级"—>"环境变量"

Windows Server 2016 PHP运行环境安装配置

Windows Server 2016 PHP运行环境安装配置

Windows Server 2016 PHP运行环境安装配置

在环境变量中,设置三个属性,分别为:

php_home,path

(大小写无所谓),若已存在则点击"编辑",不存在则点击"新建"。

a、设置php_home

变量名:php_home

变量值:c:\php(php安装路径)

Windows Server 2016 PHP运行环境安装配置

b、设置path

变量名:path

变量值:%php_home%

Windows Server 2016 PHP运行环境安装配置

环境变量配置完成之后测试是否成功

按下win+x+c键

打开命令提示符

输入:php -v

看到如下图,说明已经配置成功了。

Windows Server 2016 PHP运行环境安装配置

8、安装php系统服务或者卸载php系统服务
8.1、安装php系统服务
按下win+x+a键
打开命令提示符(管理员)
输入:
c:\php\php-service.exe install


Windows Server 2016 PHP运行环境安装配置

8.2、卸载php系统服务
按下win+x+a键
打开命令提示符(管理员)
输入:
c:\php\php-service.exe uninstall

Windows Server 2016 PHP运行环境安装配置

9、查看系统服务
9.1、进入服务

运行win+r输入:

services.msc

Windows Server 2016 PHP运行环境安装配置

Windows Server 2016 PHP运行环境安装配置

9.2、php系统服务属性

Windows Server 2016 PHP运行环境安装配置

10、编辑php配置文件

php配置文件目录:

c:\php

Windows Server 2016 PHP运行环境安装配置

10.1、将"php.ini-production"文件重命名为"php.ini"。

10.2、编辑php配置文件php.ini

[php]
 
;;;;;;;;;;;;;;;;;;;
; about php.ini  ;
;;;;;;;;;;;;;;;;;;;
; php's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of php's behavior.
 
; php attempts to find and load this configuration from a number of locations.
; the following is a summary of its search order:
; 1. sapi module specific location.
; 2. the phprc environment variable. (as of php 5.2.0)
; 3. a number of predefined registry keys on windows (as of php 5.2.0)
; 4. current working directory (except cli)
; 5. the web server's directory (for sapi modules), or directory of php
; (otherwise in windows)
; 6. the directory from the --with-config-file-path compile time option, or the
; windows directory (c:\windows or c:\winnt)
; see the php docs for more specific information.
; [url=http://php.net/configuration.file]http://php.net/configuration.file[/url]
 
; the syntax of the file is extremely simple. whitespace and lines
; beginning with a semicolon are silently ignored (as you probably guessed).
; section headers (e.g. [foo]) are also silently ignored, even though
; they might mean something in the future.
 
; directives following the section heading [path=/www/mysite] only
; apply to php files in the /www/mysite directory. directives
; following the section heading [host=www.example.com] only apply to
; php files served from [url=http://www.example.com.]www.example.com.[/url] directives set in these
; special sections cannot be overridden by user-defined ini files or
; at runtime. currently, [path=] and [host=] sections only work under
; cgi/fastcgi.
; [url=http://php.net/ini.sections]http://php.net/ini.sections[/url]
 
; directives are specified using the following syntax:
; directive = value
; directive names are *case sensitive* - foo=bar is different from foo=bar.
; directives are variables used to configure php or php extensions.
; there is no name validation. if php can't find an expected
; directive because it is not set or is mistyped, a default value will be used.
 
; the value can be a string, a number, a php constant (e.g. e_all or m_pi), one
; of the ini constants (on, off, true, false, yes, no and none) or an expression
; (e.g. e_all & ~e_notice), a quoted string ("bar"), or a reference to a
; previously set variable or directive (e.g. ${foo})
 
; expressions in the ini file are limited to bitwise operators and parentheses:
; | bitwise or
; ^ bitwise xor
; & bitwise and
; ~ bitwise not
; ! boolean not
 
; boolean flags can be turned on using the values 1, on, true or yes.
; they can be turned off using the values 0, off, false or no.
 
; an empty string can be denoted by simply not writing anything after the equal
; sign, or by using the none keyword:
 
; foo =     ; sets foo to an empty string
; foo = none  ; sets foo to an empty string
; foo = "none" ; sets foo to the string 'none'
 
; if you use constants in your value, and these constants belong to a
; dynamically loaded extension (either a php extension or a zend extension),
; you may only use these constants *after* the line that loads the extension.
 
;;;;;;;;;;;;;;;;;;;
; about this file ;
;;;;;;;;;;;;;;;;;;;
; php comes packaged with two ini files. one that is recommended to be used
; in production environments and one that is recommended to be used in
; development environments.
 
; php.ini-production contains settings which hold security, performance and
; best practices at its core. but please be aware, these settings may break
; compatibility with older or less security conscience applications. we
; recommending using the production ini in production and testing environments.
 
; php.ini-development is very similar to its production variant, except it is
; much more verbose when it comes to errors. we recommend using the
; development version only in development environments, as errors shown to
; application users can inadvertently leak otherwise secure information.
 
; this is php.ini-production ini file.
 
;;;;;;;;;;;;;;;;;;;
; quick reference ;
;;;;;;;;;;;;;;;;;;;
; the following are all the settings which are different in either the production
; or development versions of the inis with respect to php's default behavior.
; please see the actual settings later in the document for more details as to why
; we recommend these changes in php's behavior.
 
; display_errors
;  default value: on
;  development value: on
;  production value: off
 
; display_startup_errors
;  default value: off
;  development value: on
;  production value: off
 
; error_reporting
;  default value: e_all & ~e_notice & ~e_strict & ~e_deprecated
;  development value: e_all
;  production value: e_all & ~e_deprecated & ~e_strict
 
; html_errors
;  default value: on
;  development value: on
;  production value: on
 
; log_errors
;  default value: off
;  development value: on
;  production value: on
 
; max_input_time
;  default value: -1 (unlimited)
;  development value: 60 (60 seconds)
;  production value: 60 (60 seconds)
 
; output_buffering
;  default value: off
;  development value: 4096
;  production value: 4096
 
; register_argc_argv
;  default value: on
;  development value: off
;  production value: off
 
; request_order
;  default value: none
;  development value: "gp"
;  production value: "gp"
 
; session.gc_divisor
;  default value: 100
;  development value: 1000
;  production value: 1000
 
; session.hash_bits_per_character
;  default value: 4
;  development value: 5
;  production value: 5
 
;开启短标签
short_open_tag
default value: on
development value: off
production value: off
 
; track_errors
;  default value: off
;  development value: on
;  production value: off
 
; url_rewriter.tags
;  default value: "a=href,area=href,frame=src,form=,fieldset="
;  development value: "a=href,area=href,frame=src,input=src,form=fakeentry"
;  production value: "a=href,area=href,frame=src,input=src,form=fakeentry"
 
; variables_order
;  default value: "egpcs"
;  development value: "gpcs"
;  production value: "gpcs"
 
;;;;;;;;;;;;;;;;;;;;
; php.ini options ;
;;;;;;;;;;;;;;;;;;;;
; name for user-defined php.ini (.htaccess) files. default is ".user.ini"
;user_ini.filename = ".user.ini"
 
; to disable this feature set this option to empty value
;user_ini.filename =
 
; ttl for user-defined php.ini files (time-to-live) in seconds. default is 300 seconds (5 minutes)
;user_ini.cache_ttl = 300
 
;;;;;;;;;;;;;;;;;;;;
; language options ;
;;;;;;;;;;;;;;;;;;;;
 
; enable the php scripting language engine under apache.
; [url=http://php.net/engine]http://php.net/engine[/url]
engine = on
 
; this directive determines whether or not php will recognize code between
; <? and ?> tags as php source which should be processed as such. it is
; generally recommended that <?php and ?> should be used and that this feature
; should be disabled, as enabling it may result in issues when generating xml
; documents, however this remains supported for backward compatibility reasons.
; note that this directive does not control the <?= shorthand tag, which can be
; used regardless of this directive.
; default value: on
; development value: off
; production value: off
; [url=http://php.net/short-open-tag]http://php.net/short-open-tag[/url]
;开启短语标签
short_open_tag = on
 
; the number of significant digits displayed in floating point numbers.
; [url=http://php.net/precision]http://php.net/precision[/url]
precision = 14
 
; output buffering is a mechanism for controlling how much output data
; (excluding headers and cookies) php should keep internally before pushing that
; data to the client. if your application's output exceeds this setting, php
; will send that data in chunks of roughly the size you specify.
; turning on this setting and managing its maximum buffer size can yield some
; interesting side-effects depending on your application and web server.
; you may be able to send headers and cookies after you've already sent output
; through print or echo. you also may see performance benefits if your server is
; emitting less packets due to buffered output versus php streaming the output
; as it gets it. on production servers, 4096 bytes is a good setting for performance
; reasons.
; note: output buffering can also be controlled via output buffering control
;  functions.
; possible values:
;  on = enabled and buffer is unlimited. (use with caution)
;  off = disabled
;  integer = enables the buffer and sets its maximum size in bytes.
; note: this directive is hardcoded to off for the cli sapi
; default value: off
; development value: 4096
; production value: 4096
; [url=http://php.net/output-buffering]http://php.net/output-buffering[/url]
output_buffering = 4096
 
; you can redirect all of the output of your scripts to a function. for
; example, if you set output_handler to "mb_output_handler", character
; encoding will be transparently converted to the specified encoding.
; setting any output handler automatically turns on output buffering.
; note: people who wrote portable scripts should not depend on this ini
;  directive. instead, explicitly set the output handler using ob_start().
;  using this ini directive may cause problems unless you know what script
;  is doing.
; note: you cannot use both "mb_output_handler" with "ob_iconv_handler"
;  and you cannot use both "ob_gzhandler" and "zlib.output_compression".
; note: output_handler must be empty if this is set 'on' !!!!
;  instead you must use zlib.output_handler.
; [url=http://php.net/output-handler]http://php.net/output-handler[/url]
;output_handler =
 
; transparent output compression using the zlib library
; valid values for this option are 'off', 'on', or a specific buffer size
; to be used for compression (default is 4kb)
; note: resulting chunk size may vary due to nature of compression. php
;  outputs chunks that are few hundreds bytes each as a result of
;  compression. if you prefer a larger chunk size for better
;  performance, enable output_buffering in addition.
; note: you need to use zlib.output_handler instead of the standard
;  output_handler, or otherwise the output will be corrupted.
; [url=http://php.net/zlib.output-compression]http://php.net/zlib.output-compression[/url]
zlib.output_compression = off
 
; [url=http://php.net/zlib.output-compression-level]http://php.net/zlib.output-compression-level[/url]
;zlib.output_compression_level = -1
 
; you cannot specify additional output handlers if zlib.output_compression
; is activated here. this setting does the same as output_handler but in
; a different order.
; [url=http://php.net/zlib.output-handler]http://php.net/zlib.output-handler[/url]
;zlib.output_handler =
 
; implicit flush tells php to tell the output layer to flush itself
; automatically after every output block. this is equivalent to calling the
; php function flush() after each and every call to print() or echo() and each
; and every html block. turning this option on has serious performance
; implications and is generally recommended for debugging purposes only.
; [url=http://php.net/implicit-flush]http://php.net/implicit-flush[/url]
; note: this directive is hardcoded to on for the cli sapi
implicit_flush = off
 
; the unserialize callback function will be called (with the undefined class'
; name as parameter), if the unserializer finds an undefined class
; which should be instantiated. a warning appears if the specified function is
; not defined, or if the function doesn't include/implement the missing class.
; so only set this entry, if you really want to implement such a
; callback-function.
unserialize_callback_func =
 
; when floats & doubles are serialized store serialize_precision significant
; digits after the floating point. the default value ensures that when floats
; are decoded with unserialize, the data will remain the same.
serialize_precision = 17
 
; open_basedir, if set, limits all file operations to the defined directory
; and below. this directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file.
; [url=http://php.net/open-basedir]http://php.net/open-basedir[/url]
;open_basedir =
 
; this directive allows you to disable certain functions for security reasons.
; it receives a comma-delimited list of function names.
; [url=http://php.net/disable-functions]http://php.net/disable-functions[/url]
disable_functions =
 
; this directive allows you to disable certain classes for security reasons.
; it receives a comma-delimited list of class names.
; [url=http://php.net/disable-classes]http://php.net/disable-classes[/url]
disable_classes =
 
; colors for syntax highlighting mode. anything that's acceptable in
; <span style="color: ???????"> would work.
; [url=http://php.net/syntax-highlighting]http://php.net/syntax-highlighting[/url]
;highlight.string = #dd0000
;highlight.comment = #ff9900
;highlight.keyword = #007700
;highlight.default = #0000bb
;highlight.html  = #000000
 
; if enabled, the request will be allowed to complete even if the user aborts
; the request. consider enabling it if executing long requests, which may end up
; being interrupted by the user or a browser timing out. php's default behavior
; is to disable this feature.
; [url=http://php.net/ignore-user-abort]http://php.net/ignore-user-abort[/url]
;ignore_user_abort = on
 
; determines the size of the realpath cache to be used by php. this value should
; be increased on systems where php opens many files to reflect the quantity of
; the file operations performed.
; [url=http://php.net/realpath-cache-size]http://php.net/realpath-cache-size[/url]
;realpath_cache_size = 16k
 
; duration of time, in seconds for which to cache realpath information for a given
; file or directory. for systems with rarely changing files, consider increasing this
; value.
; [url=http://php.net/realpath-cache-ttl]http://php.net/realpath-cache-ttl[/url]
;realpath_cache_ttl = 120
 
; enables or disables the circular reference collector.
; [url=http://php.net/zend.enable-gc]http://php.net/zend.enable-gc[/url]
zend.enable_gc = on
 
; if enabled, scripts may be written in encodings that are incompatible with
; the scanner. cp936, big5, cp949 and shift_jis are the examples of such
; encodings. to use this feature, mbstring extension must be enabled.
; default: off
;zend.multibyte = off
 
; allows to set the default encoding for the scripts. this value will be used
; unless "declare(encoding=...)" directive appears at the top of the script.
; only affects if zend.multibyte is set.
; default: ""
;zend.script_encoding =
 
;;;;;;;;;;;;;;;;;
; miscellaneous ;
;;;;;;;;;;;;;;;;;
 
; decides whether php may expose the fact that it is installed on the server
; (e.g. by adding its signature to the web server header). it is no security
; threat in any way, but it makes it possible to determine whether you use php
; on your server or not.
; [url=http://php.net/expose-php]http://php.net/expose-php[/url]
expose_php = on
 
;;;;;;;;;;;;;;;;;;;
; resource limits ;
;;;;;;;;;;;;;;;;;;;
 
; maximum execution time of each script, in seconds
; [url=http://php.net/max-execution-time]http://php.net/max-execution-time[/url]
; note: this directive is hardcoded to 0 for the cli sapi
;php页面运行的最大时间值
max_execution_time = 600
 
; maximum amount of time each script may spend parsing request data. it's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
; long running scripts.
; note: this directive is hardcoded to -1 for the cli sapi
; default value: -1 (unlimited)
; development value: 60 (60 seconds)
; production value: 60 (60 seconds)
; [url=http://php.net/max-input-time]http://php.net/max-input-time[/url]
;php脚本解析请求数据所用的时间
max_input_time = 600
 
; maximum input variable nesting level
; [url=http://php.net/max-input-nesting-level]http://php.net/max-input-nesting-level[/url]
;max_input_nesting_level = 64
 
; how many get/post/cookie input variables may be accepted
; max_input_vars = 1000
 
; maximum amount of memory a script may consume (128mb)
; [url=http://php.net/memory-limit]http://php.net/memory-limit[/url]
memory_limit = 128m
 
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
; this directive informs php of which errors, warnings and notices you would like
; it to take action for. the recommended way of setting values for this
; directive is through the use of the error level constants and bitwise
; operators. the error level constants are below here for convenience as well as
; some common settings and their meanings.
; by default, php is set to take action on all errors, notices and warnings except
; those related to e_notice and e_strict, which together cover best practices and
; recommended coding standards in php. for performance reasons, this is the
; recommend error reporting setting. your production server shouldn't be wasting
; resources complaining about best practices and coding standards. that's what
; development servers and development settings are for.
; note: the php.ini-development file has this setting as e_all. this
; means it pretty much reports everything which is exactly what you want during
; development and early testing.
;
; error level constants:
; e_all       - all errors and warnings (includes e_strict as of php 5.4.0)
; e_error      - fatal run-time errors
; e_recoverable_error - almost fatal run-time errors
; e_warning     - run-time warnings (non-fatal errors)
; e_parse      - compile-time parse errors
; e_notice     - run-time notices (these are warnings which often result
;           from a bug in your code, but it's possible that it was
;           intentional (e.g., using an uninitialized variable and
;           relying on the fact it is automatically initialized to an
;           empty string)
; e_strict     - run-time notices, enable to have php suggest changes
;           to your code which will ensure the best interoperability
;           and forward compatibility of your code
; e_core_error   - fatal errors that occur during php's initial startup
; e_core_warning  - warnings (non-fatal errors) that occur during php's
;           initial startup
; e_compile_error  - fatal compile-time errors
; e_compile_warning - compile-time warnings (non-fatal errors)
; e_user_error   - user-generated error message
; e_user_warning  - user-generated warning message
; e_user_notice   - user-generated notice message
; e_deprecated   - warn about code that will not work in future versions
;           of php
; e_user_deprecated - user-generated deprecation warnings
;
; common values:
;  e_all (show all errors, warnings and notices including coding standards.)
;  e_all & ~e_notice (show all errors, except for notices)
;  e_all & ~e_notice & ~e_strict (show all errors, except for notices and coding standards warnings.)
;  e_compile_error|e_recoverable_error|e_error|e_core_error (show only errors)
; default value: e_all & ~e_notice & ~e_strict & ~e_deprecated
; development value: e_all
; production value: e_all & ~e_deprecated & ~e_strict
; [url=http://php.net/error-reporting]http://php.net/error-reporting[/url]
;消除警告
error_reporting = e_all & ~e_notice
 
; this directive controls whether or not and where php will output errors,
; notices and warnings too. error output is very useful during development, but
; it could be very dangerous in production environments. depending on the code
; which is triggering the error, sensitive information could potentially leak
; out of your application such as database usernames and passwords or worse.
; for production environments, we recommend logging errors rather than
; sending them to stdout.
; possible values:
;  off = do not display any errors
;  stderr = display errors to stderr (affects only cgi/cli binaries!)
;  on or stdout = display errors to stdout
; default value: on
; development value: on
; production value: off
; [url=http://php.net/display-errors]http://php.net/display-errors[/url]
display_errors = off
 
; the display of errors which occur during php's startup sequence are handled
; separately from display_errors. php's default behavior is to suppress those
; errors from clients. turning the display of startup errors on can be useful in
; debugging configuration problems. we strongly recommend you
; set this to 'off' for production servers.
; default value: off
; development value: on
; production value: off
; [url=http://php.net/display-startup-errors]http://php.net/display-startup-errors[/url]
display_startup_errors = off
 
; besides displaying errors, php can also log errors to locations such as a
; server-specific log, stderr, or a location specified by the error_log
; directive found below. while errors should not be displayed on productions
; servers they should still be monitored and logging is a great way to do that.
; default value: off
; development value: on
; production value: on
; [url=http://php.net/log-errors]http://php.net/log-errors[/url]
log_errors = on
 
; set maximum length of log_errors. in error_log information about the source is
; added. the default is 1024 and 0 allows to not apply any maximum length at all.
; [url=http://php.net/log-errors-max-len]http://php.net/log-errors-max-len[/url]
log_errors_max_len = 1024
 
; do not log repeated messages. repeated errors must occur in same file on same
; line unless ignore_repeated_source is set true.
; [url=http://php.net/ignore-repeated-errors]http://php.net/ignore-repeated-errors[/url]
ignore_repeated_errors = off
 
; ignore source of message when ignoring repeated messages. when this setting
; is on you will not log errors with repeated messages from different files or
; source lines.
; [url=http://php.net/ignore-repeated-source]http://php.net/ignore-repeated-source[/url]
ignore_repeated_source = off
 
; if this parameter is set to off, then memory leaks will not be shown (on
; stdout or in the log). this has only effect in a debug compile, and if
; error reporting includes e_warning in the allowed list
; [url=http://php.net/report-memleaks]http://php.net/report-memleaks[/url]
report_memleaks = on
 
; this setting is on by default.
;report_zend_debug = 0
 
; store the last error/warning message in $php_errormsg (boolean). setting this value
; to on can assist in debugging and is appropriate for development servers. it should
; however be disabled on production servers.
; default value: off
; development value: on
; production value: off
; [url=http://php.net/track-errors]http://php.net/track-errors[/url]
track_errors = off
 
; turn off normal error reporting and emit xml-rpc error xml
; [url=http://php.net/xmlrpc-errors]http://php.net/xmlrpc-errors[/url]
;xmlrpc_errors = 0
 
; an xml-rpc faultcode
;xmlrpc_error_number = 0
 
; when php displays or logs an error, it has the capability of formatting the
; error message as html for easier reading. this directive controls whether
; the error message is formatted as html or not.
; note: this directive is hardcoded to off for the cli sapi
; default value: on
; development value: on
; production value: on
; [url=http://php.net/html-errors]http://php.net/html-errors[/url]
html_errors = on
 
; if html_errors is set to on *and* docref_root is not empty, then php
; produces clickable error messages that direct to a page describing the error
; or function causing the error in detail.
; you can download a copy of the php manual from [url=http://php.net/docs]http://php.net/docs[/url]
; and change docref_root to the base url of your local copy including the
; leading '/'. you must also specify the file extension being used including
; the dot. php's default behavior is to leave these settings empty, in which
; case no links to documentation are generated.
; note: never use this feature for production boxes.
; [url=http://php.net/docref-root]http://php.net/docref-root[/url]
; examples
;docref_root = "/phpmanual/"
 
; [url=http://php.net/docref-ext]http://php.net/docref-ext[/url]
;docref_ext = .html
 
; string to output before an error message. php's default behavior is to leave
; this setting blank.
; [url=http://php.net/error-prepend-string]http://php.net/error-prepend-string[/url]
; example:
;error_prepend_string = "<span style='color: #ff0000'>"
 
; string to output after an error message. php's default behavior is to leave
; this setting blank.
; [url=http://php.net/error-append-string]http://php.net/error-append-string[/url]
; example:
;error_append_string = "</span>"
 
; log errors to specified file. php's default behavior is to leave this value
; empty.
; [url=http://php.net/error-log]http://php.net/error-log[/url]
; example:
;error_log = php_errors.log
; log errors to syslog (event log on windows).
;error_log = syslog
 
;windows.show_crt_warning
; default value: 0
; development value: 0
; production value: 0
 
;;;;;;;;;;;;;;;;;
; data handling ;
;;;;;;;;;;;;;;;;;
 
; the separator used in php generated urls to separate arguments.
; php's default setting is "&".
; [url=http://php.net/arg-separator.output]http://php.net/arg-separator.output[/url]
; example:
;arg_separator.output = "&"
 
; list of separator(s) used by php to parse input urls into variables.
; php's default setting is "&".
; note: every character in this directive is considered as separator!
; [url=http://php.net/arg-separator.input]http://php.net/arg-separator.input[/url]
; example:
;arg_separator.input = ";&"
 
; this directive determines which super global arrays are registered when php
; starts up. g,p,c,e & s are abbreviations for the following respective super
; globals: get, post, cookie, env and server. there is a performance penalty
; paid for the registration of these arrays and because env is not as commonly
; used as the others, env is not recommended on productions servers. you
; can still get access to the environment variables through getenv() should you
; need to.
; default value: "egpcs"
; development value: "gpcs"
; production value: "gpcs";
; [url=http://php.net/variables-order]http://php.net/variables-order[/url]
variables_order = "gpcs"
 
; this directive determines which super global data (g,p & c) should be
; registered into the super global array request. if so, it also determines
; the order in which that data is registered. the values for this directive
; are specified in the same manner as the variables_order directive,
; except one. leaving this value empty will cause php to use the value set
; in the variables_order directive. it does not mean it will leave the super
; globals array request empty.
; default value: none
; development value: "gp"
; production value: "gp"
; [url=http://php.net/request-order]http://php.net/request-order[/url]
request_order = "gp"
 
; this directive determines whether php registers $argv & $argc each time it
; runs. $argv contains an array of all the arguments passed to php when a script
; is invoked. $argc contains an integer representing the number of arguments
; that were passed when the script was invoked. these arrays are extremely
; useful when running scripts from the command line. when this directive is
; enabled, registering these variables consumes cpu cycles and memory each time
; a script is executed. for performance reasons, this feature should be disabled
; on production servers.
; note: this directive is hardcoded to on for the cli sapi
; default value: on
; development value: off
; production value: off
; [url=http://php.net/register-argc-argv]http://php.net/register-argc-argv[/url]
register_argc_argv = off
 
; when enabled, the env, request and server variables are created when they're
; first used (just in time) instead of when the script starts. if these
; variables are not used within a script, having this directive on will result
; in a performance gain. the php directive register_argc_argv must be disabled
; for this directive to have any affect.
; [url=http://php.net/auto-globals-jit]http://php.net/auto-globals-jit[/url]
auto_globals_jit = on
 
; whether php will read the post data.
; this option is enabled by default.
; most likely, you won't want to disable this option globally. it causes $_post
; and $_files to always be empty; the only way you will be able to read the
; post data will be through the php://input stream wrapper. this can be useful
; to proxy requests or to process the post data in a memory efficient fashion.
; [url=http://php.net/enable-post-data-reading]http://php.net/enable-post-data-reading[/url]
;enable_post_data_reading = off
 
; maximum size of post data that php will accept.
; its value may be 0 to disable the limit. it is ignored if post data reading
; is disabled through enable_post_data_reading.
; [url=http://php.net/post-max-size]http://php.net/post-max-size[/url]
;表单post给php的所能接收的最大值
post_max_size = 100m
 
; automatically add files before php document.
; [url=http://php.net/auto-prepend-file]http://php.net/auto-prepend-file[/url]
auto_prepend_file =
 
; automatically add files after php document.
; [url=http://php.net/auto-append-file]http://php.net/auto-append-file[/url]
auto_append_file =
 
; by default, php will output a media type using the content-type header. to
; disable this, simply set it to be empty.
;
; php's built-in default media type is set to text/html.
; [url=http://php.net/default-mimetype]http://php.net/default-mimetype[/url]
default_mimetype = "text/html"
 
; php's default character set is set to utf-8.
; [url=http://php.net/default-charset]http://php.net/default-charset[/url]
default_charset = "utf-8"
 
; php internal character encoding is set to empty.
; if empty, default_charset is used.
; [url=http://php.net/internal-encoding]http://php.net/internal-encoding[/url]
;internal_encoding =
 
; php input character encoding is set to empty.
; if empty, default_charset is used.
; [url=http://php.net/input-encoding]http://php.net/input-encoding[/url]
;input_encoding =
 
; php output character encoding is set to empty.
; if empty, default_charset is used.
; see also output_buffer.
; [url=http://php.net/output-encoding]http://php.net/output-encoding[/url]
;output_encoding =
 
;;;;;;;;;;;;;;;;;;;;;;;;;
; paths and directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
 
; unix: "/path1:/path2"
;include_path = ".:/php/includes"
;
; windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
;
; php's default setting for include_path is ".;/path/to/php/pear"
; [url=http://php.net/include-path]http://php.net/include-path[/url]
 
; the root of the php pages, used only if nonempty.
; if php was not compiled with force_redirect, you should set doc_root
; if you are running php as a cgi under any web server (other than iis)
; see documentation for security issues. the alternate is to use the
; cgi.force_redirect configuration below
; [url=http://php.net/doc-root]http://php.net/doc-root[/url]
doc_root =
 
; the directory under which php opens the script using /~username used only
; if nonempty.
; [url=http://php.net/user-dir]http://php.net/user-dir[/url]
user_dir =
 
; directory in which the loadable extensions (modules) reside.
; [url=http://php.net/extension-dir]http://php.net/extension-dir[/url]
; extension_dir = "./"
; on windows:
;模块路径
extension_dir = "c:\php\ext"
 
; directory where the temporary files should be placed.
; defaults to the system default (see sys_get_temp_dir)
; sys_temp_dir = "/tmp"
 
; whether or not to enable the dl() function. the dl() function does not work
; properly in multithreaded servers, such as iis or zeus, and is automatically
; disabled on them.
; [url=http://php.net/enable-dl]http://php.net/enable-dl[/url]
;允许用户在运行时加载php扩展,即在脚本运行期间加载。
enable_dl = off
 
; cgi.force_redirect is necessary to provide security running php as a cgi under
; most web servers. left undefined, php turns this on by default. you can
; turn it off here at your own risk
; **you can safely turn this off for iis, in fact, you must.**
; [url=http://php.net/cgi.force-redirect]http://php.net/cgi.force-redirect[/url]
;以fast—cgi模式运行php
cgi.force_redirect = 0
 
; if cgi.nph is enabled it will force cgi to always sent status: 200 with
; every request. php's default behavior is to disable this feature.
;cgi.nph = 1
 
; if cgi.force_redirect is turned on, and you are not running under apache or netscape
; (iplanet) web servers, you may need to set an environment variable name that php
; will look for to know it is ok to continue execution. setting this variable may
; cause security issues, know what you are doing first.
; [url=http://php.net/cgi.redirect-status-env]http://php.net/cgi.redirect-status-env[/url]
;cgi.redirect_status_env =
 
; cgi.fix_pathinfo provides *real* path_info/path_translated support for cgi. php's
; previous behaviour was to set path_translated to script_filename, and to not grok
; what path_info is. for more information on path_info, see the cgi specs. setting
; this to 1 will cause php cgi to fix its paths to conform to the spec. a setting
; of zero causes php to behave as before. default is 1. you should fix your scripts
; to use script_filename rather than path_translated.
; [url=http://php.net/cgi.fix-pathinfo]http://php.net/cgi.fix-pathinfo[/url]
;cgi.fix_pathinfo=1
 
; if cgi.discard_path is enabled, the php cgi binary can safely be placed outside
; of the web tree and people will not be able to circumvent .htaccess security.
; [url=http://php.net/cgi.dicard-path]http://php.net/cgi.dicard-path[/url]
;cgi.discard_path=1
 
; fastcgi under iis (on winnt based os) supports the ability to impersonate
; security tokens of the calling client. this allows iis to define the
; security context that the request runs under. mod_fastcgi under apache
; does not currently support this feature (03/17/2002)
; set to 1 if running under iis. default is zero.
; [url=http://php.net/fastcgi.impersonate]http://php.net/fastcgi.impersonate[/url]
fastcgi.impersonate = 1
 
; disable logging through fastcgi connection. php's default behavior is to enable
; this feature.
;fastcgi.logging = 0
 
; cgi.rfc2616_headers configuration option tells php what type of headers to
; use when sending http response code. if set to 0, php sends status: header that
; is supported by apache. when this option is set to 1, php will send
; rfc2616 compliant header.
; default is zero.
; [url=http://php.net/cgi.rfc2616-headers]http://php.net/cgi.rfc2616-headers[/url]
cgi.rfc2616_headers = 1
 
; cgi.check_shebang_line controls whether cgi php checks for line starting with #!
; (shebang) at the top of the running script. this line might be needed if the
; script support running both as stand-alone script and via php cgi<. php in cgi
; mode skips this line and ignores its content if this directive is turned on.
; [url=http://php.net/cgi.check-shebang-line]http://php.net/cgi.check-shebang-line[/url]
;cgi.check_shebang_line=1
 
;;;;;;;;;;;;;;;;
; file uploads ;
;;;;;;;;;;;;;;;;
 
; whether to allow http file uploads.
; [url=http://php.net/file-uploads]http://php.net/file-uploads[/url]
file_uploads = on
 
; temporary directory for http uploaded files (will use system default if not
; specified).
; [url=http://php.net/upload-tmp-dir]http://php.net/upload-tmp-dir[/url]
;文件临时目录
upload_tmp_dir ="c:\wwwroot\tmp"
 
; maximum allowed size for uploaded files.
; [url=http://php.net/upload-max-filesize]http://php.net/upload-max-filesize[/url]
;上传文件最大值
upload_max_filesize = 50m
 
; maximum number of files that can be uploaded via a single request
max_file_uploads = 20
 
;;;;;;;;;;;;;;;;;;
; fopen wrappers ;
;;;;;;;;;;;;;;;;;;
 
; whether to allow the treatment of urls (like http:// or ftp://) as files.
; [url=http://php.net/allow-url-fopen]http://php.net/allow-url-fopen[/url]
allow_url_fopen = on
 
; whether to allow include/require to open urls (like http:// or ftp://) as files.
; [url=http://php.net/allow-url-include]http://php.net/allow-url-include[/url]
allow_url_include = off
 
; define the anonymous ftp password (your email address). php's default setting
; for this is empty.
; [url=http://php.net/from]http://php.net/from[/url]
;from="john@doe.com"
 
; define the user-agent string. php's default setting for this is empty.
; [url=http://php.net/user-agent]http://php.net/user-agent[/url]
;user_agent="php"
 
; default timeout for socket based streams (seconds)
; [url=http://php.net/default-socket-timeout]http://php.net/default-socket-timeout[/url]
default_socket_timeout = 60
 
; if your scripts have to deal with files from macintosh systems,
; or you are running on a mac and need to deal with files from
; unix or win32 systems, setting this flag will cause php to
; automatically detect the eol character in those files so that
; fgets() and file() will work regardless of the source of the file.
; [url=http://php.net/auto-detect-line-endings]http://php.net/auto-detect-line-endings[/url]
;auto_detect_line_endings = off
 
;;;;;;;;;;;;;;;;;;;;;;
; dynamic extensions ;
;;;;;;;;;;;;;;;;;;;;;;
 
; if you wish to have an extension loaded automatically, use the following
; syntax:
;
;  extension=modulename.extension
;
; for example, on windows:
;
;  extension=msql.dll
;
; ... or under unix:
;
;  extension=msql.so
;
; ... or with a path:
;
;  extension=/path/to/extension/msql.so
;
; if you only provide the name of the extension, php will look for it in its
; default extension directory.
;
; windows extensions
; note that odbc support is built in, so no dll is needed for it.
; note that many dll files are located in the extensions/ (php 4) ext/ (php 5+)
; extension folders as well as the separate pecl dll download (php 5+).
; be sure to appropriately set the extension_dir directive.
;
extension=php_bz2.dll
extension=php_curl.dll
extension=php_fileinfo.dll
extension=php_ftp.dll
extension=php_gd2.dll
extension=php_gettext.dll
extension=php_gmp.dll
extension=php_intl.dll
extension=php_imap.dll
;extension=php_interbase.dll
extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_exif.dll   ; must be after mbstring as it depends on it
extension=php_mysqli.dll
;extension=php_oci8_12c.dll ; use with oracle database 12c instant client
extension=php_openssl.dll
;extension=php_pdo_firebird.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
extension=php_pdo_odbc.dll
extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
extension=php_pgsql.dll
extension=php_shmop.dll
 
; the mibs data available in the php distribution must be installed.
; see [url=http://www.php.net/manual/en/snmp.installation.php]http://www.php.net/manual/en/snmp.installation.php[/url]
;extension=php_snmp.dll
 
extension=php_soap.dll
extension=php_sockets.dll
extension=php_sqlite3.dll
extension=php_tidy.dll
extension=php_xmlrpc.dll
extension=php_xsl.dll
 
;;;;;;;;;;;;;;;;;;;
; module settings ;
;;;;;;;;;;;;;;;;;;;
 
[cli server]
; whether the cli web server uses ansi color coding in its terminal output.
cli_server.color = on
 
[date]
; defines the default timezone used by the date functions
; [url=http://php.net/date.timezone]http://php.net/date.timezone[/url]
;时区
date.timezone =asia/shanghai
 
; [url=http://php.net/date.default-latitude]http://php.net/date.default-latitude[/url]
;date.default_latitude = 31.7667
 
; [url=http://php.net/date.default-longitude]http://php.net/date.default-longitude[/url]
;date.default_longitude = 35.2333
 
; [url=http://php.net/date.sunrise-zenith]http://php.net/date.sunrise-zenith[/url]
;date.sunrise_zenith = 90.583333
 
; [url=http://php.net/date.sunset-zenith]http://php.net/date.sunset-zenith[/url]
;date.sunset_zenith = 90.583333
 
[filter]
; [url=http://php.net/filter.default]http://php.net/filter.default[/url]
;filter.default = unsafe_raw
 
; [url=http://php.net/filter.default-flags]http://php.net/filter.default-flags[/url]
;filter.default_flags =
 
[iconv]
; use of this ini entry is deprecated, use global input_encoding instead.
; if empty, default_charset or input_encoding or iconv.input_encoding is used.
; the precedence is: default_charset < intput_encoding < iconv.input_encoding
;iconv.input_encoding =
 
; use of this ini entry is deprecated, use global internal_encoding instead.
; if empty, default_charset or internal_encoding or iconv.internal_encoding is used.
; the precedence is: default_charset < internal_encoding < iconv.internal_encoding
;iconv.internal_encoding =
 
; use of this ini entry is deprecated, use global output_encoding instead.
; if empty, default_charset or output_encoding or iconv.output_encoding is used.
; the precedence is: default_charset < output_encoding < iconv.output_encoding
; to use an output encoding conversion, iconv's output handler must be set
; otherwise output encoding conversion cannot be performed.
;iconv.output_encoding =
 
[intl]
;intl.default_locale =
; this directive allows you to produce php errors when some error
; happens within intl functions. the value is the level of the error produced.
; default is 0, which does not produce any errors.
;intl.error_level = e_warning
;intl.use_exceptions = 0
 
[sqlite3]
;sqlite3.extension_dir =
 
[pcre]
;pcre library backtracking limit.
; [url=http://php.net/pcre.backtrack-limit]http://php.net/pcre.backtrack-limit[/url]
;pcre.backtrack_limit=100000
 
;pcre library recursion limit.
;please note that if you set this value to a high number you may consume all
;the available process stack and eventually crash php (due to reaching the
;stack size limit imposed by the operating system).
; [url=http://php.net/pcre.recursion-limit]http://php.net/pcre.recursion-limit[/url]
;pcre.recursion_limit=100000
 
;enables or disables jit compilation of patterns. this requires the pcre
;library to be compiled with jit support.
;pcre.jit=1
 
[pdo]
; whether to pool odbc connections. can be one of "strict", "relaxed" or "off"
; [url=http://php.net/pdo-odbc.connection-pooling]http://php.net/pdo-odbc.connection-pooling[/url]
;pdo_odbc.connection_pooling=strict
 
;pdo_odbc.db2_instance_name
 
[pdo_mysql]
; if mysqlnd is used: number of cache slots for the internal result set cache
; [url=http://php.net/pdo_mysql.cache_size]http://php.net/pdo_mysql.cache_size[/url]
pdo_mysql.cache_size = 2000
 
; default socket name for local mysql connects. if empty, uses the built-in
; mysql defaults.
; [url=http://php.net/pdo_mysql.default-socket]http://php.net/pdo_mysql.default-socket[/url]
pdo_mysql.default_socket=
 
[phar]
; [url=http://php.net/phar.readonly]http://php.net/phar.readonly[/url]
;phar.readonly = on
 
; [url=http://php.net/phar.require-hash]http://php.net/phar.require-hash[/url]
;phar.require_hash = on
 
;phar.cache_list =
 
[mail function]
; for win32 only.
; [url=http://php.net/smtp]http://php.net/smtp[/url]
smtp = localhost
; [url=http://php.net/smtp-port]http://php.net/smtp-port[/url]
smtp_port = 25
 
; for win32 only.
; [url=http://php.net/sendmail-from]http://php.net/sendmail-from[/url]
;sendmail_from = [url=mailto:me@example.com]me@example.com[/url]
 
; for unix only. you may supply arguments as well (default: "sendmail -t -i").
; [url=http://php.net/sendmail-path]http://php.net/sendmail-path[/url]
;sendmail_path =
 
; force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. these parameters will always replace the value of
; the 5th parameter to mail().
;mail.force_extra_parameters =
 
; add x-php-originating-script: that will include uid of the script followed by the filename
mail.add_x_header = on
 
; the path to a log file that will log all mail() calls. log entries include
; the full path of the script, line number, to address and headers.
;mail.log =
; log mail to syslog (event log on windows).
;mail.log = syslog
 
[sql]
; [url=http://php.net/sql.safe-mode]http://php.net/sql.safe-mode[/url]
sql.safe_mode = off
 
[odbc]
; [url=http://php.net/odbc.default-db]http://php.net/odbc.default-db[/url]
;odbc.default_db  = not yet implemented
 
; [url=http://php.net/odbc.default-user]http://php.net/odbc.default-user[/url]
;odbc.default_user = not yet implemented
 
; [url=http://php.net/odbc.default-pw]http://php.net/odbc.default-pw[/url]
;odbc.default_pw  = not yet implemented
 
; controls the odbc cursor model.
; default: sql_cursor_static (default).
;odbc.default_cursortype
 
; allow or prevent persistent links.
; [url=http://php.net/odbc.allow-persistent]http://php.net/odbc.allow-persistent[/url]
odbc.allow_persistent = on
 
; check that a connection is still valid before reuse.
; [url=http://php.net/odbc.check-persistent]http://php.net/odbc.check-persistent[/url]
odbc.check_persistent = on
 
; maximum number of persistent links. -1 means no limit.
; [url=http://php.net/odbc.max-persistent]http://php.net/odbc.max-persistent[/url]
odbc.max_persistent = -1
 
; maximum number of links (persistent + non-persistent). -1 means no limit.
; [url=http://php.net/odbc.max-links]http://php.net/odbc.max-links[/url]
odbc.max_links = -1
 
; handling of long fields. returns number of bytes to variables. 0 means
; passthru.
; [url=http://php.net/odbc.defaultlrl]http://php.net/odbc.defaultlrl[/url]
odbc.defaultlrl = 4096
 
; handling of binary data. 0 means passthru, 1 return as is, 2 convert to char.
; see the documentation on odbc_binmode and odbc_longreadlen for an explanation
; of odbc.defaultlrl and odbc.defaultbinmode
; [url=http://php.net/odbc.defaultbinmode]http://php.net/odbc.defaultbinmode[/url]
odbc.defaultbinmode = 1
 
;birdstep.max_links = -1
 
[interbase]
; allow or prevent persistent links.
ibase.allow_persistent = 1
 
; maximum number of persistent links. -1 means no limit.
ibase.max_persistent = -1
 
; maximum number of links (persistent + non-persistent). -1 means no limit.
ibase.max_links = -1
 
; default database name for ibase_connect().
;ibase.default_db =
 
; default username for ibase_connect().
;ibase.default_user =
 
; default password for ibase_connect().
;ibase.default_password =
 
; default charset for ibase_connect().
;ibase.default_charset =
 
; default timestamp format.
ibase.timestampformat = "%y-%m-%d %h:%m:%s"
 
; default date format.
ibase.dateformat = "%y-%m-%d"
 
; default time format.
ibase.timeformat = "%h:%m:%s"
 
[mysqli]
 
; maximum number of persistent links. -1 means no limit.
; [url=http://php.net/mysqli.max-persistent]http://php.net/mysqli.max-persistent[/url]
mysqli.max_persistent = -1
 
; allow accessing, from php's perspective, local files with load data statements
; [url=http://php.net/mysqli.allow_local_infile]http://php.net/mysqli.allow_local_infile[/url]
;mysqli.allow_local_infile = on
 
; allow or prevent persistent links.
; [url=http://php.net/mysqli.allow-persistent]http://php.net/mysqli.allow-persistent[/url]
mysqli.allow_persistent = on
 
; maximum number of links. -1 means no limit.
; [url=http://php.net/mysqli.max-links]http://php.net/mysqli.max-links[/url]
mysqli.max_links = -1
 
; if mysqlnd is used: number of cache slots for the internal result set cache
; [url=http://php.net/mysqli.cache_size]http://php.net/mysqli.cache_size[/url]
mysqli.cache_size = 2000
 
; default port number for mysqli_connect(). if unset, mysqli_connect() will use
; the $mysql_tcp_port or the mysql-tcp entry in /etc/services or the
; compile-time value defined mysql_port (in that order). win32 will only look
; at mysql_port.
; [url=http://php.net/mysqli.default-port]http://php.net/mysqli.default-port[/url]
mysqli.default_port = 3306
 
; default socket name for local mysql connects. if empty, uses the built-in
; mysql defaults.
; [url=http://php.net/mysqli.default-socket]http://php.net/mysqli.default-socket[/url]
mysqli.default_socket =
 
; default host for mysql_connect() (doesn't apply in safe mode).
; [url=http://php.net/mysqli.default-host]http://php.net/mysqli.default-host[/url]
mysqli.default_host =
 
; default user for mysql_connect() (doesn't apply in safe mode).
; [url=http://php.net/mysqli.default-user]http://php.net/mysqli.default-user[/url]
mysqli.default_user =
 
; default password for mysqli_connect() (doesn't apply in safe mode).
; note that this is generally a *bad* idea to store passwords in this file.
; *any* user with php access can run 'echo get_cfg_var("mysqli.default_pw")
; and reveal this password! and of course, any users with read access to this
; file will be able to reveal the password as well.
; [url=http://php.net/mysqli.default-pw]http://php.net/mysqli.default-pw[/url]
mysqli.default_pw =
 
; allow or prevent reconnect
mysqli.reconnect = off
 
[mysqlnd]
; enable / disable collection of general statistics by mysqlnd which can be
; used to tune and monitor mysql operations.
; [url=http://php.net/mysqlnd.collect_statistics]http://php.net/mysqlnd.collect_statistics[/url]
mysqlnd.collect_statistics = on
 
; enable / disable collection of memory usage statistics by mysqlnd which can be
; used to tune and monitor mysql operations.
; [url=http://php.net/mysqlnd.collect_memory_statistics]http://php.net/mysqlnd.collect_memory_statistics[/url]
mysqlnd.collect_memory_statistics = off
 
; size of a pre-allocated buffer used when sending commands to mysql in bytes.
; [url=http://php.net/mysqlnd.net_cmd_buffer_size]http://php.net/mysqlnd.net_cmd_buffer_size[/url]
;mysqlnd.net_cmd_buffer_size = 2048
 
; size of a pre-allocated buffer used for reading data sent by the server in
; bytes.
; [url=http://php.net/mysqlnd.net_read_buffer_size]http://php.net/mysqlnd.net_read_buffer_size[/url]
;mysqlnd.net_read_buffer_size = 32768
 
[oci8]
 
; connection: enables privileged connections using external
; credentials (oci_sysoper, oci_sysdba)
; [url=http://php.net/oci8.privileged-connect]http://php.net/oci8.privileged-connect[/url]
;oci8.privileged_connect = off
 
; connection: the maximum number of persistent oci8 connections per
; process. using -1 means no limit.
; [url=http://php.net/oci8.max-persistent]http://php.net/oci8.max-persistent[/url]
;oci8.max_persistent = -1
 
; connection: the maximum number of seconds a process is allowed to
; maintain an idle persistent connection. using -1 means idle
; persistent connections will be maintained forever.
; [url=http://php.net/oci8.persistent-timeout]http://php.net/oci8.persistent-timeout[/url]
;oci8.persistent_timeout = -1
 
; connection: the number of seconds that must pass before issuing a
; ping during oci_pconnect() to check the connection validity. when
; set to 0, each oci_pconnect() will cause a ping. using -1 disables
; pings completely.
; [url=http://php.net/oci8.ping-interval]http://php.net/oci8.ping-interval[/url]
;oci8.ping_interval = 60
 
; connection: set this to a user chosen connection class to be used
; for all pooled server requests with oracle 11g database resident
; connection pooling (drcp). to use drcp, this value should be set to
; the same string for all web servers running the same application,
; the database pool must be configured, and the connection string must
; specify to use a pooled server.
;oci8.connection_class =
 
; high availability: using on lets php receive fast application
; notification (fan) events generated when a database node fails. the
; database must also be configured to post fan events.
;oci8.events = off
 
; tuning: this option enables statement caching, and specifies how
; many statements to cache. using 0 disables statement caching.
; [url=http://php.net/oci8.statement-cache-size]http://php.net/oci8.statement-cache-size[/url]
;oci8.statement_cache_size = 20
 
; tuning: enables statement prefetching and sets the default number of
; rows that will be fetched automatically after statement execution.
; [url=http://php.net/oci8.default-prefetch]http://php.net/oci8.default-prefetch[/url]
;oci8.default_prefetch = 100
 
; compatibility. using on means oci_close() will not close
; oci_connect() and oci_new_connect() connections.
; [url=http://php.net/oci8.old-oci-close-semantics]http://php.net/oci8.old-oci-close-semantics[/url]
;oci8.old_oci_close_semantics = off
 
[postgresql]
; allow or prevent persistent links.
; [url=http://php.net/pgsql.allow-persistent]http://php.net/pgsql.allow-persistent[/url]
pgsql.allow_persistent = on
 
; detect broken persistent links always with pg_pconnect().
; auto reset feature requires a little overheads.
; [url=http://php.net/pgsql.auto-reset-persistent]http://php.net/pgsql.auto-reset-persistent[/url]
pgsql.auto_reset_persistent = off
 
; maximum number of persistent links. -1 means no limit.
; [url=http://php.net/pgsql.max-persistent]http://php.net/pgsql.max-persistent[/url]
pgsql.max_persistent = -1
 
; maximum number of links (persistent+non persistent). -1 means no limit.
; [url=http://php.net/pgsql.max-links]http://php.net/pgsql.max-links[/url]
pgsql.max_links = -1
 
; ignore postgresql backends notice message or not.
; notice message logging require a little overheads.
; [url=http://php.net/pgsql.ignore-notice]http://php.net/pgsql.ignore-notice[/url]
pgsql.ignore_notice = 0
 
; log postgresql backends notice message or not.
; unless pgsql.ignore_notice=0, module cannot log notice message.
; [url=http://php.net/pgsql.log-notice]http://php.net/pgsql.log-notice[/url]
pgsql.log_notice = 0
 
[bcmath]
; number of decimal digits for all bcmath functions.
; [url=http://php.net/bcmath.scale]http://php.net/bcmath.scale[/url]
bcmath.scale = 0
 
[browscap]
; [url=http://php.net/browscap]http://php.net/browscap[/url]
;browscap = extra/browscap.ini
 
[session]
; handler used to store/retrieve data.
; [url=http://php.net/session.save-handler]http://php.net/session.save-handler[/url]
session.save_handler = files
 
; argument passed to save_handler. in the case of files, this is the path
; where data files are stored. note: windows users have to change this
; variable in order to use php's session functions.
;
; the path can be defined as:
;
;   session.save_path = "n;/path"
;
; where n is an integer. instead of storing all the session files in
; /path, what this will do is use subdirectories n-levels deep, and
; store the session data in those directories. this is useful if
; your os has problems with many files in one directory, and is
; a more efficient layout for servers that handle many sessions.
;
; note 1: php will not create this directory structure automatically.
;     you can use the script in the ext/session dir for that purpose.
; note 2: see the section on garbage collection below if you choose to
;     use subdirectories for session storage
;
; the file storage module creates files using mode 600 by default.
; you can change that by using
;
;   session.save_path = "n;mode;/path"
;
; where mode is the octal representation of the mode. note that this
; does not overwrite the process's umask.
; [url=http://php.net/session.save-path]http://php.net/session.save-path[/url]
;session.save_path = "/tmp"
 
; whether to use strict session mode.
; strict session mode does not accept uninitialized session id and regenerate
; session id if browser sends uninitialized session id. strict mode protects
; applications from session fixation via session adoption vulnerability. it is
; disabled by default for maximum compatibility, but enabling it is encouraged.
; [url=https://wiki.php.net/rfc/strict_sessions]https://wiki.php.net/rfc/strict_sessions[/url]
session.use_strict_mode = 0
 
; whether to use cookies.
; [url=http://php.net/session.use-cookies]http://php.net/session.use-cookies[/url]
session.use_cookies = 1
 
; [url=http://php.net/session.cookie-secure]http://php.net/session.cookie-secure[/url]
;session.cookie_secure =
 
; this option forces php to fetch and use a cookie for storing and maintaining
; the session id. we encourage this operation as it's very helpful in combating
; session hijacking when not specifying and managing your own session id. it is
; not the be-all and end-all of session hijacking defense, but it's a good start.
; [url=http://php.net/session.use-only-cookies]http://php.net/session.use-only-cookies[/url]
session.use_only_cookies = 1
 
; name of the session (used as cookie name).
; [url=http://php.net/session.name]http://php.net/session.name[/url]
session.name = phpsessid
 
; initialize session on request startup.
; [url=http://php.net/session.auto-start]http://php.net/session.auto-start[/url]
session.auto_start = 0
 
; lifetime in seconds of cookie or, if 0, until browser is restarted.
; [url=http://php.net/session.cookie-lifetime]http://php.net/session.cookie-lifetime[/url]
session.cookie_lifetime = 0
 
; the path for which the cookie is valid.
; [url=http://php.net/session.cookie-path]http://php.net/session.cookie-path[/url]
session.cookie_path = /
 
; the domain for which the cookie is valid.
; [url=http://php.net/session.cookie-domain]http://php.net/session.cookie-domain[/url]
session.cookie_domain =
 
; whether or not to add the httponly flag to the cookie, which makes it inaccessible to browser scripting languages such as javascript.
; [url=http://php.net/session.cookie-httponly]http://php.net/session.cookie-httponly[/url]
session.cookie_httponly =
 
; handler used to serialize data. php is the standard serializer of php.
; [url=http://php.net/session.serialize-handler]http://php.net/session.serialize-handler[/url]
session.serialize_handler = php
 
; defines the probability that the 'garbage collection' process is started
; on every session initialization. the probability is calculated by using
; gc_probability/gc_divisor. where session.gc_probability is the numerator
; and gc_divisor is the denominator in the equation. setting this value to 1
; when the session.gc_divisor value is 100 will give you approximately a 1% chance
; the gc will run on any give request.
; default value: 1
; development value: 1
; production value: 1
; [url=http://php.net/session.gc-probability]http://php.net/session.gc-probability[/url]
session.gc_probability = 1
 
; defines the probability that the 'garbage collection' process is started on every
; session initialization. the probability is calculated by using the following equation:
; gc_probability/gc_divisor. where session.gc_probability is the numerator and
; session.gc_divisor is the denominator in the equation. setting this value to 1
; when the session.gc_divisor value is 100 will give you approximately a 1% chance
; the gc will run on any give request. increasing this value to 1000 will give you
; a 0.1% chance the gc will run on any give request. for high volume production servers,
; this is a more efficient approach.
; default value: 100
; development value: 1000
; production value: 1000
; [url=http://php.net/session.gc-divisor]http://php.net/session.gc-divisor[/url]
session.gc_divisor = 1000
 
; after this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
; [url=http://php.net/session.gc-maxlifetime]http://php.net/session.gc-maxlifetime[/url]
session.gc_maxlifetime = 1440
 
; note: if you are using the subdirectory option for storing session files
;    (see session.save_path above), then garbage collection does *not*
;    happen automatically. you will need to do your own garbage
;    collection through a shell script, cron entry, or some other method.
;    for example, the following script would is the equivalent of
;    setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
;     find /path/to/sessions -cmin +24 -type f | xargs rm
 
; check http referer to invalidate externally stored urls containing ids.
; http_referer has to contain this substring for the session to be
; considered as valid.
; [url=http://php.net/session.referer-check]http://php.net/session.referer-check[/url]
session.referer_check =
 
; how many bytes to read from the file.
; [url=http://php.net/session.entropy-length]http://php.net/session.entropy-length[/url]
;session.entropy_length = 32
 
; specified here to create the session id.
; [url=http://php.net/session.entropy-file]http://php.net/session.entropy-file[/url]
; defaults to /dev/urandom
; on systems that don't have /dev/urandom but do have /dev/arandom, this will default to /dev/arandom
; if neither are found at compile time, the default is no entropy file.
; on windows, setting the entropy_length setting will activate the
; windows random source (using the cryptoapi)
;session.entropy_file = /dev/urandom
 
; set to {nocache,private,public,} to determine http caching aspects
; or leave this empty to avoid sending anti-caching headers.
; [url=http://php.net/session.cache-limiter]http://php.net/session.cache-limiter[/url]
session.cache_limiter = nocache
 
; document expires after n minutes.
; [url=http://php.net/session.cache-expire]http://php.net/session.cache-expire[/url]
session.cache_expire = 180
 
; trans sid support is disabled by default.
; use of trans sid may risk your users' security.
; use this option with caution.
; - user may send url contains active session id
;  to other person via. email/irc/etc.
; - url that contains active session id may be stored
;  in publicly accessible computer.
; - user may access your site with the same session id
;  always using url stored in browser's history or bookmarks.
; [url=http://php.net/session.use-trans-sid]http://php.net/session.use-trans-sid[/url]
session.use_trans_sid = 0
 
; select a hash function for use in generating session ids.
; possible values
;  0 (md5 128 bits)
;  1 (sha-1 160 bits)
; this option may also be set to the name of any hash function supported by
; the hash extension. a list of available hashes is returned by the hash_algos()
; function.
; [url=http://php.net/session.hash-function]http://php.net/session.hash-function[/url]
session.hash_function = 0
 
; define how many bits are stored in each character when converting
; the binary hash data to something readable.
; possible values:
;  4 (4 bits: 0-9, a-f)
;  5 (5 bits: 0-9, a-v)
;  6 (6 bits: 0-9, a-z, a-z, "-", ",")
; default value: 4
; development value: 5
; production value: 5
; [url=http://php.net/session.hash-bits-per-character]http://php.net/session.hash-bits-per-character[/url]
session.hash_bits_per_character = 5
 
; the url rewriter will look for urls in a defined set of html tags.
; form/fieldset are special; if you include them here, the rewriter will
; add a hidden <input> field with the info which is otherwise appended
; to urls. if you want xhtml conformity, remove the form entry.
; note that all valid entries require a "=", even if no value follows.
; default value: "a=href,area=href,frame=src,form=,fieldset="
; development value: "a=href,area=href,frame=src,input=src,form=fakeentry"
; production value: "a=href,area=href,frame=src,input=src,form=fakeentry"
; [url=http://php.net/url-rewriter.tags]http://php.net/url-rewriter.tags[/url]
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
 
; enable upload progress tracking in $_session
; default value: on
; development value: on
; production value: on
; [url=http://php.net/session.upload-progress.enabled]http://php.net/session.upload-progress.enabled[/url]
;session.upload_progress.enabled = on
 
; cleanup the progress information as soon as all post data has been read
; (i.e. upload completed).
; default value: on
; development value: on
; production value: on
; [url=http://php.net/session.upload-progress.cleanup]http://php.net/session.upload-progress.cleanup[/url]
;session.upload_progress.cleanup = on
 
; a prefix used for the upload progress key in $_session
; default value: "upload_progress_"
; development value: "upload_progress_"
; production value: "upload_progress_"
; [url=http://php.net/session.upload-progress.prefix]http://php.net/session.upload-progress.prefix[/url]
;session.upload_progress.prefix = "upload_progress_"
 
; the index name (concatenated with the prefix) in $_session
; containing the upload progress information
; default value: "php_session_upload_progress"
; development value: "php_session_upload_progress"
; production value: "php_session_upload_progress"
; [url=http://php.net/session.upload-progress.name]http://php.net/session.upload-progress.name[/url]
;session.upload_progress.name = "php_session_upload_progress"
 
; how frequently the upload progress should be updated.
; given either in percentages (per-file), or in bytes
; default value: "1%"
; development value: "1%"
; production value: "1%"
; [url=http://php.net/session.upload-progress.freq]http://php.net/session.upload-progress.freq[/url]
;session.upload_progress.freq = "1%"
 
; the minimum delay between updates, in seconds
; default value: 1
; development value: 1
; production value: 1
; [url=http://php.net/session.upload-progress.min-freq]http://php.net/session.upload-progress.min-freq[/url]
;session.upload_progress.min_freq = "1"
 
; only write session data when session data is changed. enabled by default.
; [url=http://php.net/session.lazy-write]http://php.net/session.lazy-write[/url]
;session.lazy_write = on
 
[assertion]
; switch whether to compile assertions at all (to have no overhead at run-time)
; -1: do not compile at all
; 0: jump over assertion at run-time
; 1: execute assertions
; changing from or to a negative value is only possible in php.ini! (for turning assertions on and off at run-time, see assert.active, when zend.assertions = 1)
; default value: 1
; development value: 1
; production value: -1
; [url=http://php.net/zend.assertions]http://php.net/zend.assertions[/url]
zend.assertions = -1
 
; assert(expr); active by default.
; [url=http://php.net/assert.active]http://php.net/assert.active[/url]
;assert.active = on
 
; throw an assertationexception on failed assertions
; [url=http://php.net/assert.exception]http://php.net/assert.exception[/url]
;assert.exception = on
 
; issue a php warning for each failed assertion. (overridden by assert.exception if active)
; [url=http://php.net/assert.warning]http://php.net/assert.warning[/url]
;assert.warning = on
 
; don't bail out by default.
; [url=http://php.net/assert.bail]http://php.net/assert.bail[/url]
;assert.bail = off
 
; user-function to be called if an assertion fails.
; [url=http://php.net/assert.callback]http://php.net/assert.callback[/url]
;assert.callback = 0
 
; eval the expression with current error_reporting(). set to true if you want
; error_reporting(0) around the eval().
; [url=http://php.net/assert.quiet-eval]http://php.net/assert.quiet-eval[/url]
;assert.quiet_eval = 0
 
[com]
; path to a file containing guids, iids or filenames of files with typelibs
; [url=http://php.net/com.typelib-file]http://php.net/com.typelib-file[/url]
;com.typelib_file =
 
; allow distributed-com calls
; [url=http://php.net/com.allow-dcom]http://php.net/com.allow-dcom[/url]
;com.allow_dcom = true
 
; autoregister constants of a components typlib on com_load()
; [url=http://php.net/com.autoregister-typelib]http://php.net/com.autoregister-typelib[/url]
;com.autoregister_typelib = true
 
; register constants casesensitive
; [url=http://php.net/com.autoregister-casesensitive]http://php.net/com.autoregister-casesensitive[/url]
;com.autoregister_casesensitive = false
 
; show warnings on duplicate constant registrations
; [url=http://php.net/com.autoregister-verbose]http://php.net/com.autoregister-verbose[/url]
;com.autoregister_verbose = true
 
; the default character set code-page to use when passing strings to and from com objects.
; default: system ansi code page
;com.code_page=
 
[mbstring]
; language for internal character representation.
; this affects mb_send_mail() and mbstring.detect_order.
; [url=http://php.net/mbstring.language]http://php.net/mbstring.language[/url]
;mbstring.language = japanese
 
; use of this ini entry is deprecated, use global internal_encoding instead.
; internal/script encoding.
; some encoding cannot work as internal encoding. (e.g. sjis, big5, iso-2022-*)
; if empty, default_charset or internal_encoding or iconv.internal_encoding is used.
; the precedence is: default_charset < internal_encoding < iconv.internal_encoding
;mbstring.internal_encoding =
 
; use of this ini entry is deprecated, use global input_encoding instead.
; http input encoding.
; mbstring.encoding_traslation = on is needed to use this setting.
; if empty, default_charset or input_encoding or mbstring.input is used.
; the precedence is: default_charset < intput_encoding < mbsting.http_input
; [url=http://php.net/mbstring.http-input]http://php.net/mbstring.http-input[/url]
;mbstring.http_input =
 
; use of this ini entry is deprecated, use global output_encoding instead.
; http output encoding.
; mb_output_handler must be registered as output buffer to function.
; if empty, default_charset or output_encoding or mbstring.http_output is used.
; the precedence is: default_charset < output_encoding < mbstring.http_output
; to use an output encoding conversion, mbstring's output handler must be set
; otherwise output encoding conversion cannot be performed.
; [url=http://php.net/mbstring.http-output]http://php.net/mbstring.http-output[/url]
;mbstring.http_output =
 
; enable automatic encoding translation according to
; mbstring.internal_encoding setting. input chars are
; converted to internal encoding by setting this to on.
; note: do _not_ use automatic encoding translation for
;    portable libs/applications.
; [url=http://php.net/mbstring.encoding-translation]http://php.net/mbstring.encoding-translation[/url]
;mbstring.encoding_translation = off
 
; automatic encoding detection order.
; "auto" detect order is changed according to mbstring.language
; [url=http://php.net/mbstring.detect-order]http://php.net/mbstring.detect-order[/url]
;mbstring.detect_order = auto
 
; substitute_character used when character cannot be converted
; one from another
; [url=http://php.net/mbstring.substitute-character]http://php.net/mbstring.substitute-character[/url]
;mbstring.substitute_character = none
 
; overload(replace) single byte functions by mbstring functions.
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
; etc. possible values are 0,1,2,4 or combination of them.
; for example, 7 for overload everything.
; 0: no overload
; 1: overload mail() function
; 2: overload str*() functions
; 4: overload ereg*() functions
; [url=http://php.net/mbstring.func-overload]http://php.net/mbstring.func-overload[/url]
;mbstring.func_overload = 0
 
; enable strict encoding detection.
; default: off
;mbstring.strict_detection = on
 
; this directive specifies the regex pattern of content types for which mb_output_handler()
; is activated.
; default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml)
;mbstring.http_output_conv_mimetype=
 
[gd]
; tell the jpeg decode to ignore warnings and try to create
; a gd image. the warning will then be displayed as notices
; disabled by default
; [url=http://php.net/gd.jpeg-ignore-warning]http://php.net/gd.jpeg-ignore-warning[/url]
;gd.jpeg_ignore_warning = 0
 
[exif]
; exif unicode user comments are handled as ucs-2be/ucs-2le and jis as jis.
; with mbstring support this will automatically be converted into the encoding
; given by corresponding encode setting. when empty mbstring.internal_encoding
; is used. for the decode settings you can distinguish between motorola and
; intel byte order. a decode setting cannot be empty.
; [url=http://php.net/exif.encode-unicode]http://php.net/exif.encode-unicode[/url]
;exif.encode_unicode = iso-8859-15
 
; [url=http://php.net/exif.decode-unicode-motorola]http://php.net/exif.decode-unicode-motorola[/url]
;exif.decode_unicode_motorola = ucs-2be
 
; [url=http://php.net/exif.decode-unicode-intel]http://php.net/exif.decode-unicode-intel[/url]
;exif.decode_unicode_intel  = ucs-2le
 
; [url=http://php.net/exif.encode-jis]http://php.net/exif.encode-jis[/url]
;exif.encode_jis =
 
; [url=http://php.net/exif.decode-jis-motorola]http://php.net/exif.decode-jis-motorola[/url]
;exif.decode_jis_motorola = jis
 
; [url=http://php.net/exif.decode-jis-intel]http://php.net/exif.decode-jis-intel[/url]
;exif.decode_jis_intel  = jis
 
[tidy]
; the path to a default tidy configuration file to use when using tidy
; [url=http://php.net/tidy.default-config]http://php.net/tidy.default-config[/url]
;tidy.default_config = /usr/local/lib/php/default.tcfg
 
; should tidy clean and repair output automatically?
; warning: do not use this option if you are generating non-html content
; such as dynamic images
; [url=http://php.net/tidy.clean-output]http://php.net/tidy.clean-output[/url]
tidy.clean_output = off
 
[soap]
; enables or disables wsdl caching feature.
; [url=http://php.net/soap.wsdl-cache-enabled]http://php.net/soap.wsdl-cache-enabled[/url]
soap.wsdl_cache_enabled=1
 
; sets the directory name where soap extension will put cache files.
; [url=http://php.net/soap.wsdl-cache-dir]http://php.net/soap.wsdl-cache-dir[/url]
soap.wsdl_cache_dir="/tmp"
 
; (time to live) sets the number of second while cached file will be used
; instead of original one.
; [url=http://php.net/soap.wsdl-cache-ttl]http://php.net/soap.wsdl-cache-ttl[/url]
soap.wsdl_cache_ttl=86400
 
; sets the size of the cache limit. (max. number of wsdl files to cache)
soap.wsdl_cache_limit = 5
 
[sysvshm]
; a default size of the shared memory segment
;sysvshm.init_mem = 10000
 
[ldap]
; sets the maximum number of open links or -1 for unlimited.
ldap.max_links = -1
 
[mcrypt]
; for more information about mcrypt settings see [url=http://php.net/mcrypt-module-open]http://php.net/mcrypt-module-open[/url]
 
; directory where to load mcrypt algorithms
; default: compiled in into libmcrypt (usually /usr/local/lib/libmcrypt)
;mcrypt.algorithms_dir=
 
; directory where to load mcrypt modes
; default: compiled in into libmcrypt (usually /usr/local/lib/libmcrypt)
;mcrypt.modes_dir=
 
[dba]
;dba.default_handler=
 
[opcache]
;加载zend opcache模块
zend_extension = php_opcache.dll
 
;启用zend opcache模块
opcache.enable=1
 
; determines if zend opcache is enabled for the cli version of php
opcache.enable_cli=1
 
;opcache共享内存存储大小
opcache.memory_consumption=128
 
;在mb内存实际字符串的数量
opcache.interned_strings_buffer=8
 
; 最大数量opcache哈希表中的键
; only numbers between 200 and 100000 are allowed.
opcache.max_accelerated_files=4096
 
; the maximum percentage of "wasted" memory until a restart is scheduled.
;opcache.max_wasted_percentage=5
 
; when this directive is enabled, the opcache appends the current working
; directory to the script key, thus eliminating possible collisions between
; files with the same name (basename). disabling the directive improves
; performance, but may break existing applications.
;opcache.use_cwd=1
 
; when disabled, you must reset the opcache manually or restart the
; webserver for changes to the filesystem to take effect.
;opcache.validate_timestamps=1
 
; how often (in seconds) to check file timestamps for changes to the shared
; memory storage allocation. ("1" means validate once per second, but only
; once per request. "0" means always validate)
opcache.revalidate_freq=60
 
; enables or disables file search in include_path optimization
;opcache.revalidate_path=0
 
; if disabled, all phpdoc comments are dropped from the code to reduce the
; size of the optimized code.
;opcache.save_comments=1
 
; if enabled, a fast shutdown sequence is used for the accelerated code
opcache.fast_shutdown=1
 
; allow file existence override (file_exists, etc.) performance feature.
;opcache.enable_file_override=0
 
; a bitmask, where each bit enables or disables the appropriate opcache
; passes
opcache.optimization_level=1
 
;opcache.inherited_hack=1
;opcache.dups_fix=0
 
; the location of the opcache blacklist file (wildcards allowed).
; each opcache blacklist file is a text file that holds the names of files
; that should not be accelerated. the file format is to add each filename
; to a new line. the filename may be a full path or just a file prefix
; (i.e., /var/www/x blacklists all the files and directories in /var/www
; that start with 'x'). line starting with a ; are ignored (comments).
;opcache.blacklist_filename=
 
; allows exclusion of large files from being cached. by default all files
; are cached.
;opcache.max_file_size=0
 
; check the cache checksum each n requests.
; the default value of "0" means that the checks are disabled.
;opcache.consistency_checks=0
 
; how long to wait (in seconds) for a scheduled restart to begin if the cache
; is not being accessed.
;opcache.force_restart_timeout=180
 
; opcache error_log file name. empty string assumes "stderr".
;opcache.error_log=
 
; all opcache errors go to the web server log.
; by default, only fatal errors (level 0) or errors (level 1) are logged.
; you can also enable warnings (level 2), info messages (level 3) or
; debug messages (level 4).
;opcache.log_verbosity_level=1
 
; preferred shared memory back-end. leave empty and let the system decide.
;opcache.preferred_memory_model=
 
; protect the shared memory from unexpected writing during script execution.
; useful for internal debugging only.
;opcache.protect_memory=0
 
; allows calling opcache api functions only from php scripts which path is
; started from specified string. the default "" means no restriction
;opcache.restrict_api=
 
; mapping base of shared memory segments (for windows only). all the php
; processes have to map shared memory into the same address space. this
; directive allows to manually fix the "unable to reattach to base address"
; errors.
;opcache.mmap_base=
 
; enables and sets the second level cache directory.
; it should improve performance when shm memory is full, at server restart or
; shm reset. the default "" disables file based caching.
;opcache.file_cache=
 
; enables or disables opcode caching in shared memory.
;opcache.file_cache_only=0
 
; enables or disables checksum validation when script loaded from file cache.
;opcache.file_cache_consistency_checks=1
 
; implies opcache.file_cache_only=1 for a certain process that failed to
; reattach to the shared memory (for windows only). explicitly enabled file
; cache is required.
;opcache.file_cache_fallback=1
 
; enables or disables copying of php code (text segment) into huge pages.
; this should improve performance, but requires appropriate os configuration.
;opcache.huge_code_pages=1
 
[curl]
; a default value for the curlopt_cainfo option. this is required to be an
; absolute path.
;curl.cainfo =
 
[openssl]
; the location of a certificate authority (ca) file on the local filesystem
; to use when verifying the identity of ssl/tls peers. most users should
; not specify a value for this directive as php will attempt to use the
; os-managed cert stores in its absence. if specified, this value may still
; be overridden on a per-stream basis via the "cafile" ssl stream context
; option.
;openssl.cafile=
 
; if openssl.cafile is not specified or if the ca file is not found, the
; directory pointed to by openssl.capath is searched for a suitable
; certificate. this value must be a correctly hashed certificate directory.
; most users should not specify a value for this directive as php will
; attempt to use the os-managed cert stores in its absence. if specified,
; this value may still be overridden on a per-stream basis via the "capath"
; ssl stream context option.
;openssl.capath=
 
; local variables:
; tab-width: 4
; end:

11、创建网站根目录

11.1、在c盘根目录创建网站目录,命名为"wwwroot"。

Windows Server 2016 PHP运行环境安装配置

11.2、在网站根目录创建php网站临时目录,命名为"tmp"。

Windows Server 2016 PHP运行环境安装配置

11.3、在网站根目录放入站点目录,命名为"php"。

Windows Server 2016 PHP运行环境安装配置

11.4、在站点目创建一个页面文件,命名为"index.php"。

Windows Server 2016 PHP运行环境安装配置

index.php文件内容

<?php
phpinfo();
?>

12、编辑nginx虚拟主机配置文件vhosts.conf

#php演示站点
server {
    listen    80;
    server_name 127.0.0.1;
    root  "c:/wwwroot/php";
    location / {
      index index.html index.htm index.php;
      #autoindex on;
    }
    location ~ \.php(.*)$ {
      fastcgi_pass  127.0.0.1:9000;
      fastcgi_index index.php;
      fastcgi_split_path_info ^((?u).+\.php)(/?.+)$;
      fastcgi_param script_filename $document_root$fastcgi_script_name;
      fastcgi_param path_info $fastcgi_path_info;
      fastcgi_param path_translated $document_root$fastcgi_path_info;
      include    fastcgi_params;
    }
}

13、用命令方式启动、关闭nginx服务

13.1、启动nginx服务
按下win+x+a键
打开命令提示符(管理员)
输入:net start php

Windows Server 2016 PHP运行环境安装配置

13.2、关闭nginx服务
按下win+x+a键
打开命令提示符(管理员)
输入:net stop php

Windows Server 2016 PHP运行环境安装配置

14、浏览网页

在ie浏览器中输入:http://127.0.0.1/

Windows Server 2016 PHP运行环境安装配置