公司需要升级PHP版本至PHP7,对于用惯了wamp的来说,添加一下PHP扩展应该是很容易的,看我以前的文章(WampServer自己DIY添加apache、php、mysql版本)。
不过再配置的当中并不顺利,要集成php7.1.15花了一点时间,因为使用的是 wampserver2.2e-php5.3.13-httpd2.2.22-mysql5.5.24-32b.exe 这个版本,导致集成出现两个问题:
1.php7版本提供的apache扩展dll文件并不支持apache2.2,只支持apache2.4,
2.apache2.4版本不兼容apache2.2的配置。
但功夫不负有心人,通过观察 phpStudy 的安装目录。看到了apache使用FastCGI的方式运行的例子,该形式是CGI的加强版本(Windows下详解PHP三种运行方式php_mod、cgi、fastcgi)。
诚然,你不想这么麻烦,也可以使用 phpStudy 提供的php5.3、php7的版本切换。
爱折腾的话就依葫芦画瓢,按下面的步骤来:
一.文件列表
WAMP: wampserver2.2e-php5.3.13-httpd2.2.22-mysql5.5.24-32b.exe
apache_mod_fcgid: mod_fcgid-2.3.6-win32-x86.zip
php: php-7.1.15-Win32-VC14-x86.zip
ps:
二、集成步骤
1.安装下载好的 wampserver2.2e,安装至 D:/wamp。
2.复制 D:\wamp\bin\apahce\apache2.2.22 目录文件至同级目录下,重命名为 D:\wamp\bin\apahce\apache2.2.22-fcgid 。
3.解压 mod_fcgid-2.3.6-win32-x86.zip 文件中的 mod_fcgid.so 文件 至 D:\wamp\bin\apache\apache2.2.22-fcgid\modules 目录下。
4.编辑 D:\wamp\bin\apache\apache2.2.22-fcgid\conf\httpd.conf 文件,调整服务器根目录路径,开启 httpd-mpm 配置的加载,加载fcgid文件配置。
#1.屏蔽或删除这一行配置文件#LoadModule php5_module "D:/wamp/bin/php/php5.3.13/php5apache2_2.dll" #2.调整服务器根目录路径ServerRoot "D:/wamp/bin/apache/apache2.2.22-fcgid" #3.开启http-mpm配置加载# Server-pool management (MPM specific) Include conf/extra/httpd-mpm.conf #4.文件内容末尾添加该句,加载fcgid模块配置 Include conf/extra/httpd-php.conf
最终文件内容如下:
1 # 2 # This is the main Apache HTTP server configuration file. It contains the 3 # configuration directives that give the server its instructions. 4 # See <URL:http://httpd.apache.org/docs/2.2> for detailed information. 5 # In particular, see 6 # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html> 7 # for a discussion of each configuration directive. 8 # 9 # Do NOT simply read the instructions in here without understanding 10 # what they do. They‘re here only as hints or reminders. If you are unsure 11 # consult the online docs. You have been warned. 12 # 13 # Configuration and logfile names: If the filenames you specify for many 14 # of the server‘s control files begin with "/" (or "drive:/" for Win32), the 15 # server will use that explicit path. If the filenames do *not* begin 16 # with "/", the value of ServerRoot is prepended -- so "logs/foo.log" 17 # with ServerRoot set to "C:/Program Files/Apache Software Foundation/Apache2.2" will be interpreted by the 18 # server as "C:/Program Files/Apache Software Foundation/Apache2.2/logs/foo.log". 19 # 20 # NOTE: Where filenames are specified, you must use forward slashes 21 # instead of backslashes (e.g., "c:/apache" instead of "c:\apache"). 22 # If a drive letter is omitted, the drive on which Apache.exe is located 23 # will be used by default. It is recommended that you always supply 24 # an explicit drive letter in absolute paths to avoid confusion. 25 26 # 27 # ServerRoot: The top of the directory tree under which the server‘s 28 # configuration, error, and log files are kept. 29 # 30 # Do not add a slash at the end of the directory path. If you point 31 # ServerRoot at a non-local disk, be sure to point the LockFile directive 32 # at a local disk. If you wish to share the same ServerRoot for multiple 33 # httpd daemons, you will need to change at least LockFile and PidFile. 34 # 35 ServerRoot "D:/wamp/bin/apache/apache2.2.22-fcgid" 36 37 # 38 # Listen: Allows you to bind Apache to specific IP addresses and/or 39 # ports, instead of the default. See also the <VirtualHost> 40 # directive. 41 # 42 # Change this to Listen on specific IP addresses as shown below to 43 # prevent Apache from glomming onto all bound IP addresses. 44 # 45 #Listen 12.34.56.78:80 46 Listen 80 47 48 # 49 # Dynamic Shared Object (DSO) Support 50 # 51 # To be able to use the functionality of a module which was built as a DSO you 52 # have to place corresponding `LoadModule‘ lines at this location so the 53 # directives contained in it are actually available _before_ they are used. 54 # Statically compiled modules (those listed by `httpd -l‘) do not need 55 # to be loaded here. 56 # 57 # Example: 58 # LoadModule foo_module modules/mod_foo.so 59 # 60 LoadModule actions_module modules/mod_actions.so 61 LoadModule alias_module modules/mod_alias.so 62 LoadModule asis_module modules/mod_asis.so 63 LoadModule auth_basic_module modules/mod_auth_basic.so 64 #LoadModule auth_digest_module modules/mod_auth_digest.so 65 #LoadModule authn_alias_module modules/mod_authn_alias.so 66 #LoadModule authn_anon_module modules/mod_authn_anon.so 67 #LoadModule authn_dbd_module modules/mod_authn_dbd.so 68 #LoadModule authn_dbm_module modules/mod_authn_dbm.so 69 LoadModule authn_default_module modules/mod_authn_default.so 70 LoadModule authn_file_module modules/mod_authn_file.so 71 #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so 72 #LoadModule authz_dbm_module modules/mod_authz_dbm.so 73 LoadModule authz_default_module modules/mod_authz_default.so 74 LoadModule authz_groupfile_module modules/mod_authz_groupfile.so 75 LoadModule authz_host_module modules/mod_authz_host.so 76 #LoadModule authz_owner_module modules/mod_authz_owner.so 77 LoadModule authz_user_module modules/mod_authz_user.so 78 LoadModule autoindex_module modules/mod_autoindex.so 79 #LoadModule cache_module modules/mod_cache.so 80 #LoadModule cern_meta_module modules/mod_cern_meta.so 81 LoadModule cgi_module modules/mod_cgi.so 82 #LoadModule charset_lite_module modules/mod_charset_lite.so 83 #LoadModule dav_module modules/mod_dav.so 84 #LoadModule dav_fs_module modules/mod_dav_fs.so 85 #LoadModule dav_lock_module modules/mod_dav_lock.so 86 #LoadModule dbd_module modules/mod_dbd.so 87 #LoadModule deflate_module modules/mod_deflate.so 88 LoadModule dir_module modules/mod_dir.so 89 #LoadModule disk_cache_module modules/mod_disk_cache.so 90 #LoadModule dumpio_module modules/mod_dumpio.so 91 LoadModule env_module modules/mod_env.so 92 #LoadModule expires_module modules/mod_expires.so 93 #LoadModule ext_filter_module modules/mod_ext_filter.so 94 #LoadModule file_cache_module modules/mod_file_cache.so 95 #LoadModule filter_module modules/mod_filter.so 96 #LoadModule headers_module modules/mod_headers.so 97 #LoadModule ident_module modules/mod_ident.so 98 #LoadModule imagemap_module modules/mod_imagemap.so 99 LoadModule include_module modules/mod_include.so 100 #LoadModule info_module modules/mod_info.so 101 LoadModule isapi_module modules/mod_isapi.so 102 #LoadModule ldap_module modules/mod_ldap.so 103 #LoadModule logio_module modules/mod_logio.so 104 LoadModule log_config_module modules/mod_log_config.so 105 #LoadModule log_forensic_module modules/mod_log_forensic.so 106 #LoadModule mem_cache_module modules/mod_mem_cache.so 107 LoadModule mime_module modules/mod_mime.so 108 #LoadModule mime_magic_module modules/mod_mime_magic.so 109 LoadModule negotiation_module modules/mod_negotiation.so 110 #LoadModule proxy_module modules/mod_proxy.so 111 #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so 112 #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so 113 #LoadModule proxy_connect_module modules/mod_proxy_connect.so 114 #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so 115 #LoadModule proxy_http_module modules/mod_proxy_http.so 116 LoadModule rewrite_module modules/mod_rewrite.so 117 LoadModule setenvif_module modules/mod_setenvif.so 118 #LoadModule speling_module modules/mod_speling.so 119 #LoadModule ssl_module modules/mod_ssl.so 120 #LoadModule status_module modules/mod_status.so 121 #LoadModule substitute_module modules/mod_substitute.so 122 #LoadModule unique_id_module modules/mod_unique_id.so 123 #LoadModule userdir_module modules/mod_userdir.so 124 #LoadModule usertrack_module modules/mod_usertrack.so 125 #LoadModule version_module modules/mod_version.so 126 LoadModule vhost_alias_module modules/mod_vhost_alias.so 127 128 <IfModule !mpm_netware_module> 129 <IfModule !mpm_winnt_module> 130 # 131 # If you wish httpd to run as a different user or group, you must run 132 # httpd as root initially and it will switch. 133 # 134 # User/Group: The name (or #number) of the user/group to run httpd as. 135 # It is usually good practice to create a dedicated user and group for 136 # running httpd, as with most system services. 137 # 138 User daemon 139 Group daemon 140 141 </IfModule> 142 </IfModule> 143 144 # ‘Main‘ server configuration 145 # 146 # The directives in this section set up the values used by the ‘main‘ 147 # server, which responds to any requests that aren‘t handled by a 148 # <VirtualHost> definition. These values also provide defaults for 149 # any <VirtualHost> containers you may define later in the file. 150 # 151 # All of these directives may appear inside <VirtualHost> containers, 152 # in which case these default settings will be overridden for the 153 # virtual host being defined. 154 # 155 156 # 157 # ServerAdmin: Your address, where problems with the server should be 158 # e-mailed. This address appears on some server-generated pages, such 159 # as error documents. e.g. [email protected] 160 # 161 ServerAdmin [email protected] 162 163 # 164 # ServerName gives the name and port that the server uses to identify itself. 165 # This can often be determined automatically, but we recommend you specify 166 # it explicitly to prevent problems during startup. 167 # 168 # If your host doesn‘t have a registered DNS name, enter its IP address here. 169 # 170 ServerName localhost:80 171 172 # 173 # DocumentRoot: The directory out of which you will serve your 174 # documents. By default, all requests are taken from this directory, but 175 # symbolic links and aliases may be used to point to other locations. 176 # 177 DocumentRoot "D:/wamp/www/" 178 179 # 180 # Each directory to which Apache has access can be configured with respect 181 # to which services and features are allowed and/or disabled in that 182 # directory (and its subdirectories). 183 # 184 # First, we configure the "default" to be a very restrictive set of 185 # features. 186 # 187 <Directory /> 188 Options FollowSymLinks 189 AllowOverride None 190 Order deny,allow 191 Deny from all 192 </Directory> 193 194 # 195 # Note that from this point forward you must specifically allow 196 # particular features to be enabled - so if something‘s not working as 197 # you might expect, make sure that you have specifically enabled it 198 # below. 199 # 200 201 # 202 # This should be changed to whatever you set DocumentRoot to. 203 # 204 <Directory "D:/wamp/www/"> 205 # 206 # Possible values for the Options directive are "None", "All", 207 # or any combination of: 208 # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews 209 # 210 # Note that "MultiViews" must be named *explicitly* --- "Options All" 211 # doesn‘t give it to you. 212 # 213 # The Options directive is both complicated and important. Please see 214 # http://httpd.apache.org/docs/2.2/mod/core.html#options 215 # for more information. 216 # 217 Options Indexes FollowSymLinks +ExecCGI 218 219 # 220 # AllowOverride controls what directives may be placed in .htaccess files. 221 # It can be "All", "None", or any combination of the keywords: 222 # Options FileInfo AuthConfig Limit 223 # 224 AllowOverride all 225 226 # 227 # Controls who can get stuff from this server. 228 # 229 230 # onlineoffline tag - don‘t remove 231 Order Allow,Deny 232 Allow from all 233 234 </Directory> 235 236 # 237 # DirectoryIndex: sets the file that Apache will serve if a directory 238 # is requested. 239 # 240 <IfModule dir_module> 241 DirectoryIndex index.php index.php3 index.html index.htm 242 </IfModule> 243 244 # 245 # The following lines prevent .htaccess and .htpasswd files from being 246 # viewed by Web clients. 247 # 248 <FilesMatch "^\.ht"> 249 Order allow,deny 250 Deny from all 251 Satisfy All 252 </FilesMatch> 253 254 # 255 # ErrorLog: The location of the error log file. 256 # If you do not specify an ErrorLog directive within a <VirtualHost> 257 # container, error messages relating to that virtual host will be 258 # logged here. If you *do* define an error logfile for a <VirtualHost> 259 # container, that host‘s errors will be logged there and not here. 260 # 261 ErrorLog "D:/wamp/logs/apache_error.log" 262 263 # 264 # LogLevel: Control the number of messages logged to the error_log. 265 # Possible values include: debug, info, notice, warn, error, crit, 266 # alert, emerg. 267 # 268 LogLevel warn 269 270 <IfModule log_config_module> 271 # 272 # The following directives define some format nicknames for use with 273 # a CustomLog directive (see below). 274 # 275 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined 276 LogFormat "%h %l %u %t \"%r\" %>s %b" common 277 278 <IfModule logio_module> 279 # You need to enable mod_logio.c to use %I and %O 280 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio 281 </IfModule> 282 283 # 284 # The location and format of the access logfile (Common Logfile Format). 285 # If you do not define any access logfiles within a <VirtualHost> 286 # container, they will be logged here. Contrariwise, if you *do* 287 # define per-<VirtualHost> access logfiles, transactions will be 288 # logged therein and *not* in this file. 289 # 290 CustomLog "D:/wamp/logs/access.log" common 291 292 # 293 # If you prefer a logfile with access, agent, and referer information 294 # (Combined Logfile Format) you can use the following directive. 295 # 296 #CustomLog "logs/access.log" combined 297 </IfModule> 298 299 <IfModule alias_module> 300 # 301 # Redirect: Allows you to tell clients about documents that used to 302 # exist in your server‘s namespace, but do not anymore. The client 303 # will make a new request for the document at its new location. 304 # Example: 305 # Redirect permanent /foo http://localhost/bar 306 307 # 308 # Alias: Maps web paths into filesystem paths and is used to 309 # access content that does not live under the DocumentRoot. 310 # Example: 311 # Alias /webpath /full/filesystem/path 312 # 313 # If you include a trailing / on /webpath then the server will 314 # require it to be present in the URL. You will also likely 315 # need to provide a <Directory> section to allow access to 316 # the filesystem path. 317 318 # 319 # ScriptAlias: This controls which directories contain server scripts. 320 # ScriptAliases are essentially the same as Aliases, except that 321 # documents in the target directory are treated as applications and 322 # run by the server when requested rather than as documents sent to the 323 # client. The same rules about trailing "/" apply to ScriptAlias 324 # directives as to Alias. 325 # 326 ScriptAlias /cgi-bin/ "cgi-bin/" 327 328 </IfModule> 329 330 <IfModule cgid_module> 331 # 332 # ScriptSock: On threaded servers, designate the path to the UNIX 333 # socket used to communicate with the CGI daemon of mod_cgid. 334 # 335 #Scriptsock logs/cgisock 336 </IfModule> 337 338 # 339 # "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin" should be changed to whatever your ScriptAliased 340 # CGI directory exists, if you have that configured. 341 # 342 <Directory "cgi-bin"> 343 AllowOverride None 344 Options None 345 Order allow,deny 346 Allow from all 347 </Directory> 348 349 # 350 # DefaultType: the default MIME type the server will use for a document 351 # if it cannot otherwise determine one, such as from filename extensions. 352 # If your server contains mostly text or HTML documents, "text/plain" is 353 # a good value. If most of your content is binary, such as applications 354 # or images, you may want to use "application/octet-stream" instead to 355 # keep browsers from trying to display binary files as though they are 356 # text. 357 # 358 DefaultType text/plain 359 360 <IfModule mime_module> 361 # 362 # TypesConfig points to the file containing the list of mappings from 363 # filename extension to MIME-type. 364 # 365 TypesConfig conf/mime.types 366 367 # 368 # AddType allows you to add to or override the MIME configuration 369 # file specified in TypesConfig for specific file types. 370 # 371 #AddType application/x-gzip .tgz 372 # 373 # AddEncoding allows you to have certain browsers uncompress 374 # information on the fly. Note: Not all browsers support this. 375 # 376 #AddEncoding x-compress .Z 377 #AddEncoding x-gzip .gz .tgz 378 # 379 # If the AddEncoding directives above are commented-out, then you 380 # probably should define those extensions to indicate media types: 381 # 382 AddType application/x-compress .Z 383 AddType application/x-gzip .gz .tgz 384 AddType application/x-httpd-php .php 385 AddType application/x-httpd-php .php3 386 387 # 388 # AddHandler allows you to map certain file extensions to "handlers": 389 # actions unrelated to filetype. These can be either built into the server 390 # or added with the Action directive (see below) 391 # 392 # To use CGI scripts outside of ScriptAliased directories: 393 # (You will also need to add "ExecCGI" to the "Options" directive.) 394 # 395 #AddHandler cgi-script .cgi 396 397 # For type maps (negotiated resources): 398 #AddHandler type-map var 399 400 # 401 # Filters allow you to process content before it is sent to the client. 402 # 403 # To parse .shtml files for server-side includes (SSI): 404 # (You will also need to add "Includes" to the "Options" directive.) 405 # 406 #AddType text/html .shtml 407 #AddOutputFilter INCLUDES .shtml 408 </IfModule> 409 410 # 411 # The mod_mime_magic module allows the server to use various hints from the 412 # contents of the file itself to determine its type. The MIMEMagicFile 413 # directive tells the module where the hint definitions are located. 414 # 415 #MIMEMagicFile conf/magic 416 417 # 418 # Customizable error responses come in three flavors: 419 # 1) plain text 2) local redirects 3) external redirects 420 # 421 # Some examples: 422 #ErrorDocument 500 "The server made a boo boo." 423 #ErrorDocument 404 /missing.html 424 #ErrorDocument 404 "/cgi-bin/missing_handler.pl" 425 #ErrorDocument 402 http://localhost/subscription_info.html 426 # 427 428 # 429 # EnableMMAP and EnableSendfile: On systems that support it, 430 # memory-mapping or the sendfile syscall is used to deliver 431 # files. This usually improves server performance, but must 432 # be turned off when serving from networked-mounted 433 # filesystems or if support for these functions is otherwise 434 # broken on your system. 435 # 436 #EnableMMAP off 437 #EnableSendfile off 438 439 # Supplemental configuration 440 # 441 # The configuration files in the conf/extra/ directory can be 442 # included to add extra features or to modify the default configuration of 443 # the server, or you may simply copy their contents here and change as 444 # necessary. 445 446 # Server-pool management (MPM specific) 447 Include conf/extra/httpd-mpm.conf 448 449 # Multi-language error messages 450 #Include conf/extra/httpd-multilang-errordoc.conf 451 452 # Fancy directory listings 453 Include conf/extra/httpd-autoindex.conf 454 455 # Language settings 456 #Include conf/extra/httpd-languages.conf 457 458 # User home directories 459 #Include conf/extra/httpd-userdir.conf 460 461 # Real-time info on requests and configuration 462 #Include conf/extra/httpd-info.conf 463 464 # Virtual hosts 465 Include conf/extra/httpd-vhosts.conf 466 467 # Local access to the Apache HTTP Server Manual 468 #Include conf/extra/httpd-manual.conf 469 470 # Distributed authoring and versioning (WebDAV) 471 #Include conf/extra/httpd-dav.conf 472 473 # Various default settings 474 #Include conf/extra/httpd-default.conf 475 476 # Secure (SSL/TLS) connections 477 #Include conf/extra/httpd-ssl.conf 478 # 479 # Note: The following must must be present to support 480 # starting without SSL on platforms with no /dev/random equivalent 481 # but a statically compiled-in mod_ssl. 482 # 483 <IfModule ssl_module> 484 SSLRandomSeed startup builtin 485 SSLRandomSeed connect builtin 486 </IfModule> 487 488 Include "D:/wamp/alias/*" 489 490 491 Include conf/extra/httpd-php.conf
5.新建 D:\wamp\bin\apache\apache2.2.22-fcgid\conf\extra\httpd-php.conf 文件,编辑内容如下:
LoadModule fcgid_module modules/mod_fcgid.so <IfModule fcgid_module> Include conf/extra/httpd-fcgid.conf FcgidInitialEnv PHPRC "D:/wamp/bin/php/php7.1.15/" AddHandler fcgid-script .php FcgidWrapper "D:/wamp/bin/php/php7.1.15/php-cgi.exe" .php </IfModule>
6.新建 D:\wamp\bin\apache\apache2.2.22-fcgid\conf\extra\httpd-fcgid.conf 文件,编辑内容如下:
FcgidIOTimeout 384 FcgidConnectTimeout 360 FcgidOutputBufferSize 128 FcgidMaxRequestsPerProcess 1000 FcgidMinProcessesPerClass 0 FcgidMaxProcesses 16 FcgidMaxRequestLen 268435456 ProcessLifeTime 360 FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 1000
7.解压 php-7.1.15-Win32-VC14-x86.zip 至 D:\wamp\bin\php\ 目录下。
8.复制 D:\wamp\bin\php\php7.1.15\php.ini-development 文件并重命名为 D:\wamp\bin\php\php7.1.15\php.ini ,编辑其内容如下:
1 [PHP] 2 ; ************************************************************** 3 ; ****** DO NOT EDIT THIS FILE **** DO NOT EDIT THIS FILE ****** 4 ; * This file is only use by PHP CLI (Command Line Interface) * 5 ; * that is to say by Wampserver internal PHP scripts * 6 ; * THE CORRECT FILE TO EDIT is Wampmanager Icon->PHP->php.ini * 7 ; * that is wamp/bin/apache/apache2.x.y/bin/php.ini * 8 ; ************************************************************** 9 10 ;;;;;;;;;;;;;;;;;;; 11 ; About php.ini ; 12 ;;;;;;;;;;;;;;;;;;; 13 ; PHP‘s initialization file, generally called php.ini, is responsible for 14 ; configuring many of the aspects of PHP‘s behavior. 15 16 ; PHP attempts to find and load this configuration from a number of locations. 17 ; The following is a summary of its search order: 18 ; 1. SAPI module specific location. 19 ; 2. The PHPRC environment variable. (As of PHP 5.2.0) 20 ; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0) 21 ; 4. Current working directory (except CLI) 22 ; 5. The web server‘s directory (for SAPI modules), or directory of PHP 23 ; (otherwise in Windows) 24 ; 6. The directory from the --with-config-file-path compile time option, or the 25 ; Windows directory (C:\windows or C:\winnt) 26 ; See the PHP docs for more specific information. 27 ; http://php.net/configuration.file 28 29 ; The syntax of the file is extremely simple. Whitespace and lines 30 ; beginning with a semicolon are silently ignored (as you probably guessed). 31 ; Section headers (e.g. [Foo]) are also silently ignored, even though 32 ; they might mean something in the future. 33 34 ; Directives following the section heading [PATH=/www/mysite] only 35 ; apply to PHP files in the /www/mysite directory. Directives 36 ; following the section heading [HOST=www.example.com] only apply to 37 ; PHP files served from www.example.com. Directives set in these 38 ; special sections cannot be overridden by user-defined INI files or 39 ; at runtime. Currently, [PATH=] and [HOST=] sections only work under 40 ; CGI/FastCGI. 41 ; http://php.net/ini.sections 42 43 ; Directives are specified using the following syntax: 44 ; directive = value 45 ; Directive names are *case sensitive* - foo=bar is different from FOO=bar. 46 ; Directives are variables used to configure PHP or PHP extensions. 47 ; There is no name validation. If PHP can‘t find an expected 48 ; directive because it is not set or is mistyped, a default value will be used. 49 50 ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one 51 ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression 52 ; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a 53 ; previously set variable or directive (e.g. ${foo}) 54 55 ; Expressions in the INI file are limited to bitwise operators and parentheses: 56 ; | bitwise OR 57 ; ^ bitwise XOR 58 ; & bitwise AND 59 ; ~ bitwise NOT 60 ; ! boolean NOT 61 62 ; Boolean flags can be turned on using the values 1, On, True or Yes. 63 ; They can be turned off using the values 0, Off, False or No. 64 65 ; An empty string can be denoted by simply not writing anything after the equal 66 ; sign, or by using the None keyword: 67 68 ; foo = ; sets foo to an empty string 69 ; foo = None ; sets foo to an empty string 70 ; foo = "None" ; sets foo to the string ‘None‘ 71 72 ; If you use constants in your value, and these constants belong to a 73 ; dynamically loaded extension (either a PHP extension or a Zend extension), 74 ; you may only use these constants *after* the line that loads the extension. 75 76 ;;;;;;;;;;;;;;;;;;; 77 ; About this file ; 78 ;;;;;;;;;;;;;;;;;;; 79 ; PHP comes packaged with two INI files. One that is recommended to be used 80 ; in production environments and one that is recommended to be used in 81 ; development environments. 82 83 ; php.ini-production contains settings which hold security, performance and 84 ; best practices at its core. But please be aware, these settings may break 85 ; compatibility with older or less security conscience applications. We 86 ; recommending using the production ini in production and testing environments. 87 88 ; php.ini-development is very similar to its production variant, except it is 89 ; much more verbose when it comes to errors. We recommend using the 90 ; development version only in development environments, as errors shown to 91 ; application users can inadvertently leak otherwise secure information. 92 93 ; This is php.ini-development INI file. 94 95 ;;;;;;;;;;;;;;;;;;; 96 ; Quick Reference ; 97 ;;;;;;;;;;;;;;;;;;; 98 ; The following are all the settings which are different in either the production 99 ; or development versions of the INIs with respect to PHP‘s default behavior. 100 ; Please see the actual settings later in the document for more details as to why 101 ; we recommend these changes in PHP‘s behavior. 102 103 ; display_errors 104 ; Default Value: On 105 ; Development Value: On 106 ; Production Value: Off 107 108 ; display_startup_errors 109 ; Default Value: Off 110 ; Development Value: On 111 ; Production Value: Off 112 113 ; error_reporting 114 ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED 115 ; Development Value: E_ALL 116 ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT 117 118 ; html_errors 119 ; Default Value: On 120 ; Development Value: On 121 ; Production value: On 122 123 ; log_errors 124 ; Default Value: Off 125 ; Development Value: On 126 ; Production Value: On 127 128 ; max_input_time 129 ; Default Value: -1 (Unlimited) 130 ; Development Value: 60 (60 seconds) 131 ; Production Value: 60 (60 seconds) 132 133 ; output_buffering 134 ; Default Value: Off 135 ; Development Value: 4096 136 ; Production Value: 4096 137 138 ; register_argc_argv 139 ; Default Value: On 140 ; Development Value: Off 141 ; Production Value: Off 142 143 ; request_order 144 ; Default Value: None 145 ; Development Value: "GP" 146 ; Production Value: "GP" 147 148 ; session.gc_divisor 149 ; Default Value: 100 150 ; Development Value: 1000 151 ; Production Value: 1000 152 153 ; session.sid_bits_per_character 154 ; Default Value: 4 155 ; Development Value: 5 156 ; Production Value: 5 157 158 ; short_open_tag 159 ; Default Value: On 160 ; Development Value: Off 161 ; Production Value: Off 162 163 ; track_errors 164 ; Default Value: Off 165 ; Development Value: On 166 ; Production Value: Off 167 168 ; variables_order 169 ; Default Value: "EGPCS" 170 ; Development Value: "GPCS" 171 ; Production Value: "GPCS" 172 173 ;;;;;;;;;;;;;;;;;;;; 174 ; php.ini Options ; 175 ;;;;;;;;;;;;;;;;;;;; 176 ; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini" 177 ;user_ini.filename = ".user.ini" 178 179 ; To disable this feature set this option to empty value 180 ;user_ini.filename = 181 182 ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes) 183 ;user_ini.cache_ttl = 300 184 185 ;;;;;;;;;;;;;;;;;;;; 186 ; Language Options ; 187 ;;;;;;;;;;;;;;;;;;;; 188 189 ; Enable the PHP scripting language engine under Apache. 190 ; http://php.net/engine 191 engine = On 192 193 ; This directive determines whether or not PHP will recognize code between 194 ; <? and ?> tags as PHP source which should be processed as such. It is 195 ; generally recommended that <?php and ?> should be used and that this feature 196 ; should be disabled, as enabling it may result in issues when generating XML 197 ; documents, however this remains supported for backward compatibility reasons. 198 ; Note that this directive does not control the <?= shorthand tag, which can be 199 ; used regardless of this directive. 200 ; Default Value: On 201 ; Development Value: Off 202 ; Production Value: Off 203 ; http://php.net/short-open-tag 204 short_open_tag = Off 205 206 ; The number of significant digits displayed in floating point numbers. 207 ; http://php.net/precision 208 precision = 14 209 210 ; Output buffering is a mechanism for controlling how much output data 211 ; (excluding headers and cookies) PHP should keep internally before pushing that 212 ; data to the client. If your application‘s output exceeds this setting, PHP 213 ; will send that data in chunks of roughly the size you specify. 214 ; Turning on this setting and managing its maximum buffer size can yield some 215 ; interesting side-effects depending on your application and web server. 216 ; You may be able to send headers and cookies after you‘ve already sent output 217 ; through print or echo. You also may see performance benefits if your server is 218 ; emitting less packets due to buffered output versus PHP streaming the output 219 ; as it gets it. On production servers, 4096 bytes is a good setting for performance 220 ; reasons. 221 ; Note: Output buffering can also be controlled via Output Buffering Control 222 ; functions. 223 ; Possible Values: 224 ; On = Enabled and buffer is unlimited. (Use with caution) 225 ; Off = Disabled 226 ; Integer = Enables the buffer and sets its maximum size in bytes. 227 ; Note: This directive is hardcoded to Off for the CLI SAPI 228 ; Default Value: Off 229 ; Development Value: 4096 230 ; Production Value: 4096 231 ; http://php.net/output-buffering 232 output_buffering = 4096 233 234 ; You can redirect all of the output of your scripts to a function. For 235 ; example, if you set output_handler to "mb_output_handler", character 236 ; encoding will be transparently converted to the specified encoding. 237 ; Setting any output handler automatically turns on output buffering. 238 ; Note: People who wrote portable scripts should not depend on this ini 239 ; directive. Instead, explicitly set the output handler using ob_start(). 240 ; Using this ini directive may cause problems unless you know what script 241 ; is doing. 242 ; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler" 243 ; and you cannot use both "ob_gzhandler" and "zlib.output_compression". 244 ; Note: output_handler must be empty if this is set ‘On‘ !!!! 245 ; Instead you must use zlib.output_handler. 246 ; http://php.net/output-handler 247 ;output_handler = 248 249 ; URL rewriter function rewrites URL on the fly by using 250 ; output buffer. You can set target tags by this configuration. 251 ; "form" tag is special tag. It will add hidden input tag to pass values. 252 ; Refer to session.trans_sid_tags for usage. 253 ; Default Value: "form=" 254 ; Development Value: "form=" 255 ; Production Value: "form=" 256 ;url_rewriter.tags 257 258 ; URL rewriter will not rewrites absolute URL nor form by default. To enable 259 ; absolute URL rewrite, allowed hosts must be defined at RUNTIME. 260 ; Refer to session.trans_sid_hosts for more details. 261 ; Default Value: "" 262 ; Development Value: "" 263 ; Production Value: "" 264 ;url_rewriter.hosts 265 266 ; Transparent output compression using the zlib library 267 ; Valid values for this option are ‘off‘, ‘on‘, or a specific buffer size 268 ; to be used for compression (default is 4KB) 269 ; Note: Resulting chunk size may vary due to nature of compression. PHP 270 ; outputs chunks that are few hundreds bytes each as a result of 271 ; compression. If you prefer a larger chunk size for better 272 ; performance, enable output_buffering in addition. 273 ; Note: You need to use zlib.output_handler instead of the standard 274 ; output_handler, or otherwise the output will be corrupted. 275 ; http://php.net/zlib.output-compression 276 zlib.output_compression = Off 277 278 ; http://php.net/zlib.output-compression-level 279 ;zlib.output_compression_level = -1 280 281 ; You cannot specify additional output handlers if zlib.output_compression 282 ; is activated here. This setting does the same as output_handler but in 283 ; a different order. 284 ; http://php.net/zlib.output-handler 285 ;zlib.output_handler = 286 287 ; Implicit flush tells PHP to tell the output layer to flush itself 288 ; automatically after every output block. This is equivalent to calling the 289 ; PHP function flush() after each and every call to print() or echo() and each 290 ; and every HTML block. Turning this option on has serious performance 291 ; implications and is generally recommended for debugging purposes only. 292 ; http://php.net/implicit-flush 293 ; Note: This directive is hardcoded to On for the CLI SAPI 294 implicit_flush = Off 295 296 ; The unserialize callback function will be called (with the undefined class‘ 297 ; name as parameter), if the unserializer finds an undefined class 298 ; which should be instantiated. A warning appears if the specified function is 299 ; not defined, or if the function doesn‘t include/implement the missing class. 300 ; So only set this entry, if you really want to implement such a 301 ; callback-function. 302 unserialize_callback_func = 303 304 ; When floats & doubles are serialized store serialize_precision significant 305 ; digits after the floating point. The default value ensures that when floats 306 ; are decoded with unserialize, the data will remain the same. 307 ; The value is also used for json_encode when encoding double values. 308 ; If -1 is used, then dtoa mode 0 is used which automatically select the best 309 ; precision. 310 serialize_precision = -1 311 312 ; open_basedir, if set, limits all file operations to the defined directory 313 ; and below. This directive makes most sense if used in a per-directory 314 ; or per-virtualhost web server configuration file. 315 ; http://php.net/open-basedir 316 ;open_basedir = 317 318 ; This directive allows you to disable certain functions for security reasons. 319 ; It receives a comma-delimited list of function names. 320 ; http://php.net/disable-functions 321 disable_functions = 322 323 ; This directive allows you to disable certain classes for security reasons. 324 ; It receives a comma-delimited list of class names. 325 ; http://php.net/disable-classes 326 disable_classes = 327 328 ; Colors for Syntax Highlighting mode. Anything that‘s acceptable in 329 ; <span style="color: ???????"> would work. 330 ; http://php.net/syntax-highlighting 331 ;highlight.string = #DD0000 332 ;highlight.comment = #FF9900 333 ;highlight.keyword = #007700 334 ;highlight.default = #0000BB 335 ;highlight.html = #000000 336 337 ; If enabled, the request will be allowed to complete even if the user aborts 338 ; the request. Consider enabling it if executing long requests, which may end up 339 ; being interrupted by the user or a browser timing out. PHP‘s default behavior 340 ; is to disable this feature. 341 ; http://php.net/ignore-user-abort 342 ;ignore_user_abort = On 343 344 ; Determines the size of the realpath cache to be used by PHP. This value should 345 ; be increased on systems where PHP opens many files to reflect the quantity of 346 ; the file operations performed. 347 ; http://php.net/realpath-cache-size 348 ;realpath_cache_size = 4096k 349 350 ; Duration of time, in seconds for which to cache realpath information for a given 351 ; file or directory. For systems with rarely changing files, consider increasing this 352 ; value. 353 ; http://php.net/realpath-cache-ttl 354 ;realpath_cache_ttl = 120 355 356 ; Enables or disables the circular reference collector. 357 ; http://php.net/zend.enable-gc 358 zend.enable_gc = On 359 360 ; If enabled, scripts may be written in encodings that are incompatible with 361 ; the scanner. CP936, Big5, CP949 and Shift_JIS are the examples of such 362 ; encodings. To use this feature, mbstring extension must be enabled. 363 ; Default: Off 364 ;zend.multibyte = Off 365 366 ; Allows to set the default encoding for the scripts. This value will be used 367 ; unless "declare(encoding=...)" directive appears at the top of the script. 368 ; Only affects if zend.multibyte is set. 369 ; Default: "" 370 ;zend.script_encoding = 371 372 ;;;;;;;;;;;;;;;;; 373 ; Miscellaneous ; 374 ;;;;;;;;;;;;;;;;; 375 376 ; Decides whether PHP may expose the fact that it is installed on the server 377 ; (e.g. by adding its signature to the Web server header). It is no security 378 ; threat in any way, but it makes it possible to determine whether you use PHP 379 ; on your server or not. 380 ; http://php.net/expose-php 381 expose_php = On 382 383 ;;;;;;;;;;;;;;;;;;; 384 ; Resource Limits ; 385 ;;;;;;;;;;;;;;;;;;; 386 387 ; Maximum execution time of each script, in seconds 388 ; http://php.net/max-execution-time 389 ; Note: This directive is hardcoded to 0 for the CLI SAPI 390 max_execution_time = 120 391 392 ; Maximum amount of time each script may spend parsing request data. It‘s a good 393 ; idea to limit this time on productions servers in order to eliminate unexpectedly 394 ; long running scripts. 395 ; Note: This directive is hardcoded to -1 for the CLI SAPI 396 ; Default Value: -1 (Unlimited) 397 ; Development Value: 60 (60 seconds) 398 ; Production Value: 60 (60 seconds) 399 ; http://php.net/max-input-time 400 max_input_time = 60 401 402 ; Maximum input variable nesting level 403 ; http://php.net/max-input-nesting-level 404 ;max_input_nesting_level = 64 405 406 ; How many GET/POST/COOKIE input variables may be accepted 407 max_input_vars = 2500 408 409 ; Maximum amount of memory a script may consume (128MB) 410 ; http://php.net/memory-limit 411 memory_limit = 128M 412 413 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 414 ; Error handling and logging ; 415 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 416 417 ; This directive informs PHP of which errors, warnings and notices you would like 418 ; it to take action for. The recommended way of setting values for this 419 ; directive is through the use of the error level constants and bitwise 420 ; operators. The error level constants are below here for convenience as well as 421 ; some common settings and their meanings. 422 ; By default, PHP is set to take action on all errors, notices and warnings EXCEPT 423 ; those related to E_NOTICE and E_STRICT, which together cover best practices and 424 ; recommended coding standards in PHP. For performance reasons, this is the 425 ; recommend error reporting setting. Your production server shouldn‘t be wasting 426 ; resources complaining about best practices and coding standards. That‘s what 427 ; development servers and development settings are for. 428 ; Note: The php.ini-development file has this setting as E_ALL. This 429 ; means it pretty much reports everything which is exactly what you want during 430 ; development and early testing. 431 ; 432 ; Error Level Constants: 433 ; E_ALL - All errors and warnings (includes E_STRICT as of PHP 5.4.0) 434 ; E_ERROR - fatal run-time errors 435 ; E_RECOVERABLE_ERROR - almost fatal run-time errors 436 ; E_WARNING - run-time warnings (non-fatal errors) 437 ; E_PARSE - compile-time parse errors 438 ; E_NOTICE - run-time notices (these are warnings which often result 439 ; from a bug in your code, but it‘s possible that it was 440 ; intentional (e.g., using an uninitialized variable and 441 ; relying on the fact it is automatically initialized to an 442 ; empty string) 443 ; E_STRICT - run-time notices, enable to have PHP suggest changes 444 ; to your code which will ensure the best interoperability 445 ; and forward compatibility of your code 446 ; E_CORE_ERROR - fatal errors that occur during PHP‘s initial startup 447 ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP‘s 448 ; initial startup 449 ; E_COMPILE_ERROR - fatal compile-time errors 450 ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors) 451 ; E_USER_ERROR - user-generated error message 452 ; E_USER_WARNING - user-generated warning message 453 ; E_USER_NOTICE - user-generated notice message 454 ; E_DEPRECATED - warn about code that will not work in future versions 455 ; of PHP 456 ; E_USER_DEPRECATED - user-generated deprecation warnings 457 ; 458 ; Common Values: 459 ; E_ALL (Show all errors, warnings and notices including coding standards.) 460 ; E_ALL & ~E_NOTICE (Show all errors, except for notices) 461 ; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding standards warnings.) 462 ; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors) 463 ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED 464 ; Development Value: E_ALL 465 ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT 466 ; http://php.net/error-reporting 467 error_reporting = E_ALL 468 469 ; This directive controls whether or not and where PHP will output errors, 470 ; notices and warnings too. Error output is very useful during development, but 471 ; it could be very dangerous in production environments. Depending on the code 472 ; which is triggering the error, sensitive information could potentially leak 473 ; out of your application such as database usernames and passwords or worse. 474 ; For production environments, we recommend logging errors rather than 475 ; sending them to STDOUT. 476 ; Possible Values: 477 ; Off = Do not display any errors 478 ; stderr = Display errors to STDERR (affects only CGI/CLI binaries!) 479 ; On or stdout = Display errors to STDOUT 480 ; Default Value: On 481 ; Development Value: On 482 ; Production Value: Off 483 ; http://php.net/display-errors 484 display_errors = On 485 486 ; The display of errors which occur during PHP‘s startup sequence are handled 487 ; separately from display_errors. PHP‘s default behavior is to suppress those 488 ; errors from clients. Turning the display of startup errors on can be useful in 489 ; debugging configuration problems. We strongly recommend you 490 ; set this to ‘off‘ for production servers. 491 ; Default Value: Off 492 ; Development Value: On 493 ; Production Value: Off 494 ; http://php.net/display-startup-errors 495 display_startup_errors = On 496 497 ; Besides displaying errors, PHP can also log errors to locations such as a 498 ; server-specific log, STDERR, or a location specified by the error_log 499 ; directive found below. While errors should not be displayed on productions 500 ; servers they should still be monitored and logging is a great way to do that. 501 ; Default Value: Off 502 ; Development Value: On 503 ; Production Value: On 504 ; http://php.net/log-errors 505 log_errors = On 506 507 ; Set maximum length of log_errors. In error_log information about the source is 508 ; added. The default is 1024 and 0 allows to not apply any maximum length at all. 509 ; http://php.net/log-errors-max-len 510 log_errors_max_len = 1024 511 512 ; Do not log repeated messages. Repeated errors must occur in same file on same 513 ; line unless ignore_repeated_source is set true. 514 ; http://php.net/ignore-repeated-errors 515 ignore_repeated_errors = Off 516 517 ; Ignore source of message when ignoring repeated messages. When this setting 518 ; is On you will not log errors with repeated messages from different files or 519 ; source lines. 520 ; http://php.net/ignore-repeated-source 521 ignore_repeated_source = Off 522 523 ; If this parameter is set to Off, then memory leaks will not be shown (on 524 ; stdout or in the log). This has only effect in a debug compile, and if 525 ; error reporting includes E_WARNING in the allowed list 526 ; http://php.net/report-memleaks 527 report_memleaks = On 528 529 ; This setting is on by default. 530 ;report_zend_debug = 0 531 532 ; Store the last error/warning message in $php_errormsg (boolean). Setting this value 533 ; to On can assist in debugging and is appropriate for development servers. It should 534 ; however be disabled on production servers. 535 ; Default Value: Off 536 ; Development Value: On 537 ; Production Value: Off 538 ; http://php.net/track-errors 539 track_errors = On 540 541 ; Turn off normal error reporting and emit XML-RPC error XML 542 ; http://php.net/xmlrpc-errors 543 ;xmlrpc_errors = 0 544 545 ; An XML-RPC faultCode 546 ;xmlrpc_error_number = 0 547 548 ; When PHP displays or logs an error, it has the capability of formatting the 549 ; error message as HTML for easier reading. This directive controls whether 550 ; the error message is formatted as HTML or not. 551 ; Note: This directive is hardcoded to Off for the CLI SAPI 552 ; Default Value: On 553 ; Development Value: On 554 ; Production value: On 555 ; http://php.net/html-errors 556 html_errors = On 557 558 ; If html_errors is set to On *and* docref_root is not empty, then PHP 559 ; produces clickable error messages that direct to a page describing the error 560 ; or function causing the error in detail. 561 ; You can download a copy of the PHP manual from http://php.net/docs 562 ; and change docref_root to the base URL of your local copy including the 563 ; leading ‘/‘. You must also specify the file extension being used including 564 ; the dot. PHP‘s default behavior is to leave these settings empty, in which 565 ; case no links to documentation are generated. 566 ; Note: Never use this feature for production boxes. 567 ; http://php.net/docref-root 568 ; Examples 569 ;docref_root = "/phpmanual/" 570 571 ; http://php.net/docref-ext 572 ;docref_ext = .html 573 574 ; String to output before an error message. PHP‘s default behavior is to leave 575 ; this setting blank. 576 ; http://php.net/error-prepend-string 577 ; Example: 578 ;error_prepend_string = "<span style=‘color: #ff0000‘>" 579 580 ; String to output after an error message. PHP‘s default behavior is to leave 581 ; this setting blank. 582 ; http://php.net/error-append-string 583 ; Example: 584 ;error_append_string = "</span>" 585 586 ; Log errors to specified file. PHP‘s default behavior is to leave this value 587 ; empty. 588 ; http://php.net/error-log 589 ; Example: 590 error_log ="D:/wamp/logs/php_error.log" 591 ; Log errors to syslog (Event Log on Windows). 592 ;error_log = syslog 593 594 ;windows.show_crt_warning 595 ; Default value: 0 596 ; Development value: 0 597 ; Production value: 0 598 599 ;;;;;;;;;;;;;;;;; 600 ; Data Handling ; 601 ;;;;;;;;;;;;;;;;; 602 603 ; The separator used in PHP generated URLs to separate arguments. 604 ; PHP‘s default setting is "&". 605 ; http://php.net/arg-separator.output 606 ; Example: 607 ;arg_separator.output = "&" 608 609 ; List of separator(s) used by PHP to parse input URLs into variables. 610 ; PHP‘s default setting is "&". 611 ; NOTE: Every character in this directive is considered as separator! 612 ; http://php.net/arg-separator.input 613 ; Example: 614 ;arg_separator.input = ";&" 615 616 ; This directive determines which super global arrays are registered when PHP 617 ; starts up. G,P,C,E & S are abbreviations for the following respective super 618 ; globals: GET, POST, COOKIE, ENV and SERVER. There is a performance penalty 619 ; paid for the registration of these arrays and because ENV is not as commonly 620 ; used as the others, ENV is not recommended on productions servers. You 621 ; can still get access to the environment variables through getenv() should you 622 ; need to. 623 ; Default Value: "EGPCS" 624 ; Development Value: "GPCS" 625 ; Production Value: "GPCS"; 626 ; http://php.net/variables-order 627 variables_order = "GPCS" 628 629 ; This directive determines which super global data (G,P & C) should be 630 ; registered into the super global array REQUEST. If so, it also determines 631 ; the order in which that data is registered. The values for this directive 632 ; are specified in the same manner as the variables_order directive, 633 ; EXCEPT one. Leaving this value empty will cause PHP to use the value set 634 ; in the variables_order directive. It does not mean it will leave the super 635 ; globals array REQUEST empty. 636 ; Default Value: None 637 ; Development Value: "GP" 638 ; Production Value: "GP" 639 ; http://php.net/request-order 640 request_order = "GP" 641 642 ; This directive determines whether PHP registers $argv & $argc each time it 643 ; runs. $argv contains an array of all the arguments passed to PHP when a script 644 ; is invoked. $argc contains an integer representing the number of arguments 645 ; that were passed when the script was invoked. These arrays are extremely 646 ; useful when running scripts from the command line. When this directive is 647 ; enabled, registering these variables consumes CPU cycles and memory each time 648 ; a script is executed. For performance reasons, this feature should be disabled 649 ; on production servers. 650 ; Note: This directive is hardcoded to On for the CLI SAPI 651 ; Default Value: On 652 ; Development Value: Off 653 ; Production Value: Off 654 ; http://php.net/register-argc-argv 655 register_argc_argv = Off 656 657 ; When enabled, the ENV, REQUEST and SERVER variables are created when they‘re 658 ; first used (Just In Time) instead of when the script starts. If these 659 ; variables are not used within a script, having this directive on will result 660 ; in a performance gain. The PHP directive register_argc_argv must be disabled 661 ; for this directive to have any affect. 662 ; http://php.net/auto-globals-jit 663 auto_globals_jit = Off 664 665 ; Whether PHP will read the POST data. 666 ; This option is enabled by default. 667 ; Most likely, you won‘t want to disable this option globally. It causes $_POST 668 ; and $_FILES to always be empty; the only way you will be able to read the 669 ; POST data will be through the php://input stream wrapper. This can be useful 670 ; to proxy requests or to process the POST data in a memory efficient fashion. 671 ; http://php.net/enable-post-data-reading 672 ;enable_post_data_reading = Off 673 674 ; Maximum size of POST data that PHP will accept. 675 ; Its value may be 0 to disable the limit. It is ignored if POST data reading 676 ; is disabled through enable_post_data_reading. 677 ; http://php.net/post-max-size 678 post_max_size = 8M 679 680 ; Automatically add files before PHP document. 681 ; http://php.net/auto-prepend-file 682 auto_prepend_file = 683 684 ; Automatically add files after PHP document. 685 ; http://php.net/auto-append-file 686 auto_append_file = 687 688 ; By default, PHP will output a media type using the Content-Type header. To 689 ; disable this, simply set it to be empty. 690 ; 691 ; PHP‘s built-in default media type is set to text/html. 692 ; http://php.net/default-mimetype 693 default_mimetype = "text/html" 694 695 ; PHP‘s default character set is set to UTF-8. 696 ; http://php.net/default-charset 697 default_charset = "UTF-8" 698 699 ; PHP internal character encoding is set to empty. 700 ; If empty, default_charset is used. 701 ; http://php.net/internal-encoding 702 ;internal_encoding = 703 704 ; PHP input character encoding is set to empty. 705 ; If empty, default_charset is used. 706 ; http://php.net/input-encoding 707 ;input_encoding = 708 709 ; PHP output character encoding is set to empty. 710 ; If empty, default_charset is used. 711 ; See also output_buffer. 712 ; http://php.net/output-encoding 713 ;output_encoding = 714 715 ;;;;;;;;;;;;;;;;;;;;;;;;; 716 ; Paths and Directories ; 717 ;;;;;;;;;;;;;;;;;;;;;;;;; 718 719 ; UNIX: "/path1:/path2" 720 ;include_path = ".:/php/includes" 721 ; 722 ; Windows: "\path1;\path2" 723 ;include_path = ".;c:\php\includes" 724 ; 725 ; PHP‘s default setting for include_path is ".;/path/to/php/pear" 726 ; http://php.net/include-path 727 728 ; The root of the PHP pages, used only if nonempty. 729 ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root 730 ; if you are running php as a CGI under any web server (other than IIS) 731 ; see documentation for security issues. The alternate is to use the 732 ; cgi.force_redirect configuration below 733 ; http://php.net/doc-root 734 doc_root = 735 736 ; The directory under which PHP opens the script using /~username used only 737 ; if nonempty. 738 ; http://php.net/user-dir 739 user_dir = 740 741 ; Directory in which the loadable extensions (modules) reside. 742 ; http://php.net/extension-dir 743 ; extension_dir = "./" 744 ; On windows: 745 ; extension_dir = "ext" 746 extension_dir ="D:/wamp/bin/php/php7.1.15/ext/" 747 748 ; Directory where the temporary files should be placed. 749 ; Defaults to the system default (see sys_get_temp_dir) 750 ; sys_temp_dir = "/tmp" 751 752 ; Whether or not to enable the dl() function. The dl() function does NOT work 753 ; properly in multithreaded servers, such as IIS or Zeus, and is automatically 754 ; disabled on them. 755 ; http://php.net/enable-dl 756 enable_dl = Off 757 758 ; cgi.force_redirect is necessary to provide security running PHP as a CGI under 759 ; most web servers. Left undefined, PHP turns this on by default. You can 760 ; turn it off here AT YOUR OWN RISK 761 ; **You CAN safely turn this off for IIS, in fact, you MUST.** 762 ; http://php.net/cgi.force-redirect 763 ;cgi.force_redirect = 1 764 765 ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with 766 ; every request. PHP‘s default behavior is to disable this feature. 767 ;cgi.nph = 1 768 769 ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape 770 ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP 771 ; will look for to know it is OK to continue execution. Setting this variable MAY 772 ; cause security issues, KNOW WHAT YOU ARE DOING FIRST. 773 ; http://php.net/cgi.redirect-status-env 774 ;cgi.redirect_status_env = 775 776 ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP‘s 777 ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok 778 ; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting 779 ; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting 780 ; of zero causes PHP to behave as before. Default is 1. You should fix your scripts 781 ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED. 782 ; http://php.net/cgi.fix-pathinfo 783 ;cgi.fix_pathinfo=1 784 785 ; if cgi.discard_path is enabled, the PHP CGI binary can safely be placed outside 786 ; of the web tree and people will not be able to circumvent .htaccess security. 787 ; http://php.net/cgi.dicard-path 788 ;cgi.discard_path=1 789 ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate 790 ; security tokens of the calling client. This allows IIS to define the 791 ; security context that the request runs under. mod_fastcgi under Apache 792 ; does not currently support this feature (03/17/2002) 793 ; Set to 1 if running under IIS. Default is zero. 794 ; http://php.net/fastcgi.impersonate 795 ;fastcgi.impersonate = 1 796 797 ; Disable logging through FastCGI connection. PHP‘s default behavior is to enable 798 ; this feature. 799 ;fastcgi.logging = 0 800 801 ; cgi.rfc2616_headers configuration option tells PHP what type of headers to 802 ; use when sending HTTP response code. If set to 0, PHP sends Status: header that 803 ; is supported by Apache. When this option is set to 1, PHP will send 804 ; RFC2616 compliant header. 805 ; Default is zero. 806 ; http://php.net/cgi.rfc2616-headers 807 ;cgi.rfc2616_headers = 0 808 809 ; cgi.check_shebang_line controls whether CGI PHP checks for line starting with #! 810 ; (shebang) at the top of the running script. This line might be needed if the 811 ; script support running both as stand-alone script and via PHP CGI<. PHP in CGI 812 ; mode skips this line and ignores its content if this directive is turned on. 813 ; http://php.net/cgi.check-shebang-line 814 ;cgi.check_shebang_line=1 815 ;;;;;;;;;;;;;;;; 816 ; File Uploads ; 817 ;;;;;;;;;;;;;;;; 818 819 ; Whether to allow HTTP file uploads. 820 ; http://php.net/file-uploads 821 file_uploads = On 822 823 ; Temporary directory for HTTP uploaded files (will use system default if not 824 ; specified). 825 ; http://php.net/upload-tmp-dir 826 upload_tmp_dir ="D:/wamp/tmp" 827 828 ; Maximum allowed size for uploaded files. 829 ; http://php.net/upload-max-filesize 830 upload_max_filesize = 2M 831 832 ; Maximum number of files that can be uploaded via a single request 833 max_file_uploads = 20 834 835 ;;;;;;;;;;;;;;;;;; 836 ; Fopen wrappers ; 837 ;;;;;;;;;;;;;;;;;; 838 839 ; Whether to allow the treatment of URLs (like http:// or ftp://) as files. 840 ; http://php.net/allow-url-fopen 841 allow_url_fopen = On 842 843 ; Whether to allow include/require to open URLs (like http:// or ftp://) as files. 844 ; http://php.net/allow-url-include 845 allow_url_include = Off 846 847 ; Define the anonymous ftp password (your email address). PHP‘s default setting 848 ; for this is empty. 849 ; http://php.net/from 850 ;from="[email protected]" 851 852 ; Define the User-Agent string. PHP‘s default setting for this is empty. 853 ; http://php.net/user-agent 854 ;user_agent="PHP" 855 856 ; Default timeout for socket based streams (seconds) 857 ; http://php.net/default-socket-timeout 858 default_socket_timeout = 60 859 860 ; If your scripts have to deal with files from Macintosh systems, 861 ; or you are running on a Mac and need to deal with files from 862 ; unix or win32 systems, setting this flag will cause PHP to 863 ; automatically detect the EOL character in those files so that 864 ; fgets() and file() will work regardless of the source of the file. 865 ; http://php.net/auto-detect-line-endings 866 ;auto_detect_line_endings = Off 867 868 ;;;;;;;;;;;;;;;;;;;;;; 869 ; Dynamic Extensions ; 870 ;;;;;;;;;;;;;;;;;;;;;; 871 872 ; If you wish to have an extension loaded automatically, use the following 873 ; syntax: 874 ; 875 ; extension=modulename.extension 876 ; 877 ; For example, on Windows: 878 ; 879 ; extension=msql.dll 880 ; 881 ; ... or under UNIX: 882 ; 883 ; extension=msql.so 884 ; 885 ; ... or with a path: 886 ; 887 ; extension=/path/to/extension/msql.so 888 ; 889 ; If you only provide the name of the extension, PHP will look for it in its 890 ; default extension directory. 891 ; 892 ; Windows Extensions 893 ; Note that ODBC support is built in, so no dll is needed for it. 894 ; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5+) 895 ; extension folders as well as the separate PECL DLL download (PHP 5+). 896 ; Be sure to appropriately set the extension_dir directive. 897 ; 898 extension=php_bz2.dll 899 extension=php_curl.dll 900 ;extension=php_com_dotnet.dll 901 ;extension=php_enchant.dll 902 extension=php_fileinfo.dll 903 ;extension=php_ftp.dll 904 extension=php_gd2.dll 905 extension=php_gettext.dll 906 extension=php_gmp.dll 907 extension=php_intl.dll 908 extension=php_imap.dll 909 ;extension=php_interbase.dll 910 extension=php_ldap.dll 911 extension=php_mbstring.dll 912 extension=php_exif.dll ; Must be after mbstring as it depends on it 913 extension=php_mysqli.dll 914 ;extension=php_odbc.dll 915 extension=php_openssl.dll 916 ;extension=php_pdo_firebird.dll 917 extension=php_pdo_mysql.dll 918 ;extension=php_pdo_oci.dll 919 ;extension=php_pdo_odbc.dll 920 ;extension=php_pdo_pgsql.dll 921 extension=php_pdo_sqlite.dll 922 ;extension=php_pgsql.dll 923 ;extension=php_phpdbg_webhelper.dll 924 ;extension=php_shmop.dll 925 926 ; The MIBS data available in the PHP distribution must be installed. 927 ; See http://www.php.net/manual/en/snmp.installation.php 928 ;extension=php_snmp.dll 929 930 extension=php_soap.dll 931 extension=php_sockets.dll 932 extension=php_sqlite3.dll 933 ;extension=php_sysvshm.dll 934 ;extension=php_tidy.dll 935 extension=php_xmlrpc.dll 936 extension=php_xsl.dll 937 ;extension=php_amqp.dll 938 ;extension=php_redis.dll 939 ;extension=php_mongodb.dll 940 941 ;;;;;;;;;;;;;;;;;;; 942 ; Module Settings ; 943 ;;;;;;;;;;;;;;;;;;; 944 945 [CLI Server] 946 ; Whether the CLI web server uses ANSI color coding in its terminal output. 947 cli_server.color = On 948 949 [Date] 950 ; Defines the default timezone used by the date functions 951 ; http://php.net/date.timezone 952 date.timezone ="UTC" 953 954 ; http://php.net/date.default-latitude 955 ;date.default_latitude = 31.7667 956 957 ; http://php.net/date.default-longitude 958 ;date.default_longitude = 35.2333 959 960 ; http://php.net/date.sunrise-zenith 961 ;date.sunrise_zenith = 90.583333 962 963 ; http://php.net/date.sunset-zenith 964 ;date.sunset_zenith = 90.583333 965 966 [filter] 967 ; http://php.net/filter.default 968 ;filter.default = unsafe_raw 969 970 ; http://php.net/filter.default-flags 971 ;filter.default_flags = 972 973 [iconv] 974 ; Use of this INI entry is deprecated, use global input_encoding instead. 975 ; If empty, default_charset or input_encoding or iconv.input_encoding is used. 976 ; The precedence is: default_charset < intput_encoding < iconv.input_encoding 977 ;iconv.input_encoding = 978 979 ; Use of this INI entry is deprecated, use global internal_encoding instead. 980 ; If empty, default_charset or internal_encoding or iconv.internal_encoding is used. 981 ; The precedence is: default_charset < internal_encoding < iconv.internal_encoding 982 ;iconv.internal_encoding = 983 984 ; Use of this INI entry is deprecated, use global output_encoding instead. 985 ; If empty, default_charset or output_encoding or iconv.output_encoding is used. 986 ; The precedence is: default_charset < output_encoding < iconv.output_encoding 987 ; To use an output encoding conversion, iconv‘s output handler must be set 988 ; otherwise output encoding conversion cannot be performed. 989 ;iconv.output_encoding = 990 991 [intl] 992 ;intl.default_locale = 993 ; This directive allows you to produce PHP errors when some error 994 ; happens within intl functions. The value is the level of the error produced. 995 ; Default is 0, which does not produce any errors. 996 ;intl.error_level = E_WARNING 997 ;intl.use_exceptions = 0 998 999 [sqlite3] 1000 ;sqlite3.extension_dir = 1001 1002 [Pcre] 1003 ;PCRE library backtracking limit. 1004 ; http://php.net/pcre.backtrack-limit 1005 ;pcre.backtrack_limit=100000 1006 1007 ;PCRE library recursion limit. 1008 ;Please note that if you set this value to a high number you may consume all 1009 ;the available process stack and eventually crash PHP (due to reaching the 1010 ;stack size limit imposed by the Operating System). 1011 ; http://php.net/pcre.recursion-limit 1012 ;pcre.recursion_limit=100000 1013 1014 ;Enables or disables JIT compilation of patterns. This requires the PCRE 1015 ;library to be compiled with JIT support. 1016 ;pcre.jit=1 1017 1018 [Pdo] 1019 ; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off" 1020 ; http://php.net/pdo-odbc.connection-pooling 1021 ;pdo_odbc.connection_pooling=strict 1022 1023 ;pdo_odbc.db2_instance_name 1024 1025 [Pdo_mysql] 1026 ; If mysqlnd is used: Number of cache slots for the internal result set cache 1027 ; http://php.net/pdo_mysql.cache_size 1028 pdo_mysql.cache_size = 2000 1029 1030 ; Default socket name for local MySQL connects. If empty, uses the built-in 1031 ; MySQL defaults. 1032 ; http://php.net/pdo_mysql.default-socket 1033 pdo_mysql.default_socket= 1034 1035 [Phar] 1036 ; http://php.net/phar.readonly 1037 ;phar.readonly = On 1038 1039 ; http://php.net/phar.require-hash 1040 ;phar.require_hash = On 1041 1042 ;phar.cache_list = 1043 1044 [mail function] 1045 ; For Win32 only. 1046 ; http://php.net/smtp 1047 SMTP = localhost 1048 ; http://php.net/smtp-port 1049 smtp_port = 25 1050 1051 ; For Win32 only. 1052 ; http://php.net/sendmail-from 1053 sendmail_from ="[email protected]" 1054 1055 ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). 1056 ; http://php.net/sendmail-path 1057 ;sendmail_path = 1058 1059 ; Force the addition of the specified parameters to be passed as extra parameters 1060 ; to the sendmail binary. These parameters will always replace the value of 1061 ; the 5th parameter to mail(). 1062 ;mail.force_extra_parameters = 1063 1064 ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename 1065 mail.add_x_header = On 1066 1067 ; The path to a log file that will log all mail() calls. Log entries include 1068 ; the full path of the script, line number, To address and headers. 1069 ;mail.log = 1070 ; Log mail to syslog (Event Log on Windows). 1071 ;mail.log = syslog 1072 1073 [SQL] 1074 ; http://php.net/sql.safe-mode 1075 sql.safe_mode = Off 1076 1077 [ODBC] 1078 ; http://php.net/odbc.default-db 1079 ;odbc.default_db = Not yet implemented 1080 1081 ; http://php.net/odbc.default-user 1082 ;odbc.default_user = Not yet implemented 1083 1084 ; http://php.net/odbc.default-pw 1085 ;odbc.default_pw = Not yet implemented 1086 1087 ; Controls the ODBC cursor model. 1088 ; Default: SQL_CURSOR_STATIC (default). 1089 ;odbc.default_cursortype 1090 1091 ; Allow or prevent persistent links. 1092 ; http://php.net/odbc.allow-persistent 1093 odbc.allow_persistent = On 1094 1095 ; Check that a connection is still valid before reuse. 1096 ; http://php.net/odbc.check-persistent 1097 odbc.check_persistent = On 1098 1099 ; Maximum number of persistent links. -1 means no limit. 1100 ; http://php.net/odbc.max-persistent 1101 odbc.max_persistent = -1 1102 1103 ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1104 ; http://php.net/odbc.max-links 1105 odbc.max_links = -1 1106 1107 ; Handling of LONG fields. Returns number of bytes to variables. 0 means 1108 ; passthru. 1109 ; http://php.net/odbc.defaultlrl 1110 odbc.defaultlrl = 4096 1111 1112 ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char. 1113 ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation 1114 ; of odbc.defaultlrl and odbc.defaultbinmode 1115 ; http://php.net/odbc.defaultbinmode 1116 odbc.defaultbinmode = 1 1117 1118 ;birdstep.max_links = -1 1119 1120 [Interbase] 1121 ; Allow or prevent persistent links. 1122 ibase.allow_persistent = 1 1123 1124 ; Maximum number of persistent links. -1 means no limit. 1125 ibase.max_persistent = -1 1126 1127 ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1128 ibase.max_links = -1 1129 1130 ; Default database name for ibase_connect(). 1131 ;ibase.default_db = 1132 1133 ; Default username for ibase_connect(). 1134 ;ibase.default_user = 1135 1136 ; Default password for ibase_connect(). 1137 ;ibase.default_password = 1138 1139 ; Default charset for ibase_connect(). 1140 ;ibase.default_charset = 1141 1142 ; Default timestamp format. 1143 ibase.timestampformat = "%Y-%m-%d %H:%M:%S" 1144 1145 ; Default date format. 1146 ibase.dateformat = "%Y-%m-%d" 1147 1148 ; Default time format. 1149 ibase.timeformat = "%H:%M:%S" 1150 1151 [MySQLi] 1152 1153 ; Maximum number of persistent links. -1 means no limit. 1154 ; http://php.net/mysqli.max-persistent 1155 mysqli.max_persistent = -1 1156 1157 ; Allow accessing, from PHP‘s perspective, local files with LOAD DATA statements 1158 ; http://php.net/mysqli.allow_local_infile 1159 ;mysqli.allow_local_infile = On 1160 1161 ; Allow or prevent persistent links. 1162 ; http://php.net/mysqli.allow-persistent 1163 mysqli.allow_persistent = On 1164 1165 ; Maximum number of links. -1 means no limit. 1166 ; http://php.net/mysqli.max-links 1167 mysqli.max_links = -1 1168 1169 ; If mysqlnd is used: Number of cache slots for the internal result set cache 1170 ; http://php.net/mysqli.cache_size 1171 mysqli.cache_size = 2000 1172 1173 ; Default port number for mysqli_connect(). If unset, mysqli_connect() will use 1174 ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the 1175 ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look 1176 ; at MYSQL_PORT. 1177 ; http://php.net/mysqli.default-port 1178 mysqli.default_port = 3306 1179 1180 ; Default socket name for local MySQL connects. If empty, uses the built-in 1181 ; MySQL defaults. 1182 ; http://php.net/mysqli.default-socket 1183 mysqli.default_socket = 1184 1185 ; Default host for mysql_connect() (doesn‘t apply in safe mode). 1186 ; http://php.net/mysqli.default-host 1187 mysqli.default_host = 1188 1189 ; Default user for mysql_connect() (doesn‘t apply in safe mode). 1190 ; http://php.net/mysqli.default-user 1191 mysqli.default_user = 1192 1193 ; Default password for mysqli_connect() (doesn‘t apply in safe mode). 1194 ; Note that this is generally a *bad* idea to store passwords in this file. 1195 ; *Any* user with PHP access can run ‘echo get_cfg_var("mysqli.default_pw") 1196 ; and reveal this password! And of course, any users with read access to this 1197 ; file will be able to reveal the password as well. 1198 ; http://php.net/mysqli.default-pw 1199 mysqli.default_pw = 1200 1201 ; Allow or prevent reconnect 1202 mysqli.reconnect = Off 1203 1204 [mysqlnd] 1205 ; Enable / Disable collection of general statistics by mysqlnd which can be 1206 ; used to tune and monitor MySQL operations. 1207 ; http://php.net/mysqlnd.collect_statistics 1208 mysqlnd.collect_statistics = On 1209 1210 ; Enable / Disable collection of memory usage statistics by mysqlnd which can be 1211 ; used to tune and monitor MySQL operations. 1212 ; http://php.net/mysqlnd.collect_memory_statistics 1213 mysqlnd.collect_memory_statistics = On 1214 1215 ; Records communication from all extensions using mysqlnd to the specified log 1216 ; file. 1217 ; http://php.net/mysqlnd.debug 1218 ;mysqlnd.debug = 1219 ; Defines which queries will be logged. 1220 ; http://php.net/mysqlnd.log_mask 1221 ;mysqlnd.log_mask = 0 1222 ; Default size of the mysqlnd memory pool, which is used by result sets. 1223 ; http://php.net/mysqlnd.mempool_default_size 1224 ;mysqlnd.mempool_default_size = 16000 1225 ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes. 1226 ; http://php.net/mysqlnd.net_cmd_buffer_size 1227 ;mysqlnd.net_cmd_buffer_size = 2048 1228 1229 ; Size of a pre-allocated buffer used for reading data sent by the server in 1230 ; bytes. 1231 ; http://php.net/mysqlnd.net_read_buffer_size 1232 ;mysqlnd.net_read_buffer_size = 32768 1233 1234 ; Timeout for network requests in seconds. 1235 ; http://php.net/mysqlnd.net_read_timeout 1236 ;mysqlnd.net_read_timeout = 31536000 1237 ; SHA-256 Authentication Plugin related. File with the MySQL server public RSA 1238 ; key. 1239 ; http://php.net/mysqlnd.sha256_server_public_key 1240 ;mysqlnd.sha256_server_public_key = 1241 [OCI8] 1242 1243 ; Connection: Enables privileged connections using external 1244 ; credentials (OCI_SYSOPER, OCI_SYSDBA) 1245 ; http://php.net/oci8.privileged-connect 1246 ;oci8.privileged_connect = Off 1247 1248 ; Connection: The maximum number of persistent OCI8 connections per 1249 ; process. Using -1 means no limit. 1250 ; http://php.net/oci8.max-persistent 1251 ;oci8.max_persistent = -1 1252 1253 ; Connection: The maximum number of seconds a process is allowed to 1254 ; maintain an idle persistent connection. Using -1 means idle 1255 ; persistent connections will be maintained forever. 1256 ; http://php.net/oci8.persistent-timeout 1257 ;oci8.persistent_timeout = -1 1258 1259 ; Connection: The number of seconds that must pass before issuing a 1260 ; ping during oci_pconnect() to check the connection validity. When 1261 ; set to 0, each oci_pconnect() will cause a ping. Using -1 disables 1262 ; pings completely. 1263 ; http://php.net/oci8.ping-interval 1264 ;oci8.ping_interval = 60 1265 1266 ; Connection: Set this to a user chosen connection class to be used 1267 ; for all pooled server requests with Oracle 11g Database Resident 1268 ; Connection Pooling (DRCP). To use DRCP, this value should be set to 1269 ; the same string for all web servers running the same application, 1270 ; the database pool must be configured, and the connection string must 1271 ; specify to use a pooled server. 1272 ;oci8.connection_class = 1273 1274 ; High Availability: Using On lets PHP receive Fast Application 1275 ; Notification (FAN) events generated when a database node fails. The 1276 ; database must also be configured to post FAN events. 1277 ;oci8.events = Off 1278 1279 ; Tuning: This option enables statement caching, and specifies how 1280 ; many statements to cache. Using 0 disables statement caching. 1281 ; http://php.net/oci8.statement-cache-size 1282 ;oci8.statement_cache_size = 20 1283 1284 ; Tuning: Enables statement prefetching and sets the default number of 1285 ; rows that will be fetched automatically after statement execution. 1286 ; http://php.net/oci8.default-prefetch 1287 ;oci8.default_prefetch = 100 1288 1289 ; Compatibility. Using On means oci_close() will not close 1290 ; oci_connect() and oci_new_connect() connections. 1291 ; http://php.net/oci8.old-oci-close-semantics 1292 ;oci8.old_oci_close_semantics = Off 1293 1294 [PostgreSQL] 1295 ; Allow or prevent persistent links. 1296 ; http://php.net/pgsql.allow-persistent 1297 pgsql.allow_persistent = On 1298 1299 ; Detect broken persistent links always with pg_pconnect(). 1300 ; Auto reset feature requires a little overheads. 1301 ; http://php.net/pgsql.auto-reset-persistent 1302 pgsql.auto_reset_persistent = Off 1303 1304 ; Maximum number of persistent links. -1 means no limit. 1305 ; http://php.net/pgsql.max-persistent 1306 pgsql.max_persistent = -1 1307 1308 ; Maximum number of links (persistent+non persistent). -1 means no limit. 1309 ; http://php.net/pgsql.max-links 1310 pgsql.max_links = -1 1311 1312 ; Ignore PostgreSQL backends Notice message or not. 1313 ; Notice message logging require a little overheads. 1314 ; http://php.net/pgsql.ignore-notice 1315 pgsql.ignore_notice = 0 1316 1317 ; Log PostgreSQL backends Notice message or not. 1318 ; Unless pgsql.ignore_notice=0, module cannot log notice message. 1319 ; http://php.net/pgsql.log-notice 1320 pgsql.log_notice = 0 1321 1322 [bcmath] 1323 ; Number of decimal digits for all bcmath functions. 1324 ; http://php.net/bcmath.scale 1325 bcmath.scale = 0 1326 1327 [browscap] 1328 ; http://php.net/browscap 1329 ;browscap = extra/browscap.ini 1330 1331 [Session] 1332 ; Handler used to store/retrieve data. 1333 ; http://php.net/session.save-handler 1334 session.save_handler = files 1335 1336 ; Argument passed to save_handler. In the case of files, this is the path 1337 ; where data files are stored. Note: Windows users have to change this 1338 ; variable in order to use PHP‘s session functions. 1339 ; 1340 ; The path can be defined as: 1341 ; 1342 ; session.save_path = "N;/path" 1343 ; 1344 ; where N is an integer. Instead of storing all the session files in 1345 ; /path, what this will do is use subdirectories N-levels deep, and 1346 ; store the session data in those directories. This is useful if 1347 ; your OS has problems with many files in one directory, and is 1348 ; a more efficient layout for servers that handle many sessions. 1349 ; 1350 ; NOTE 1: PHP will not create this directory structure automatically. 1351 ; You can use the script in the ext/session dir for that purpose. 1352 ; NOTE 2: See the section on garbage collection below if you choose to 1353 ; use subdirectories for session storage 1354 ; 1355 ; The file storage module creates files using mode 600 by default. 1356 ; You can change that by using 1357 ; 1358 ; session.save_path = "N;MODE;/path" 1359 ; 1360 ; where MODE is the octal representation of the mode. Note that this 1361 ; does not overwrite the process‘s umask. 1362 ; http://php.net/session.save-path 1363 session.save_path ="D:/wamp/tmp" 1364 1365 ; Whether to use strict session mode. 1366 ; Strict session mode does not accept uninitialized session ID and regenerate 1367 ; session ID if browser sends uninitialized session ID. Strict mode protects 1368 ; applications from session fixation via session adoption vulnerability. It is 1369 ; disabled by default for maximum compatibility, but enabling it is encouraged. 1370 ; https://wiki.php.net/rfc/strict_sessions 1371 session.use_strict_mode = 0 1372 1373 ; Whether to use cookies. 1374 ; http://php.net/session.use-cookies 1375 session.use_cookies = 1 1376 1377 ; http://php.net/session.cookie-secure 1378 ;session.cookie_secure = 1379 1380 ; This option forces PHP to fetch and use a cookie for storing and maintaining 1381 ; the session id. We encourage this operation as it‘s very helpful in combating 1382 ; session hijacking when not specifying and managing your own session id. It is 1383 ; not the be-all and end-all of session hijacking defense, but it‘s a good start. 1384 ; http://php.net/session.use-only-cookies 1385 session.use_only_cookies = 1 1386 1387 ; Name of the session (used as cookie name). 1388 ; http://php.net/session.name 1389 session.name = PHPSESSID 1390 1391 ; Initialize session on request startup. 1392 ; http://php.net/session.auto-start 1393 session.auto_start = 0 1394 1395 ; Lifetime in seconds of cookie or, if 0, until browser is restarted. 1396 ; http://php.net/session.cookie-lifetime 1397 session.cookie_lifetime = 0 1398 1399 ; The path for which the cookie is valid. 1400 ; http://php.net/session.cookie-path 1401 session.cookie_path = / 1402 1403 ; The domain for which the cookie is valid. 1404 ; http://php.net/session.cookie-domain 1405 session.cookie_domain = 1406 1407 ; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript. 1408 ; http://php.net/session.cookie-httponly 1409 session.cookie_httponly = 1410 1411 ; Handler used to serialize data. php is the standard serializer of PHP. 1412 ; http://php.net/session.serialize-handler 1413 session.serialize_handler = php 1414 1415 ; Defines the probability that the ‘garbage collection‘ process is started 1416 ; on every session initialization. The probability is calculated by using 1417 ; gc_probability/gc_divisor. Where session.gc_probability is the numerator 1418 ; and gc_divisor is the denominator in the equation. Setting this value to 1 1419 ; when the session.gc_divisor value is 100 will give you approximately a 1% chance 1420 ; the gc will run on any give request. 1421 ; Default Value: 1 1422 ; Development Value: 1 1423 ; Production Value: 1 1424 ; http://php.net/session.gc-probability 1425 session.gc_probability = 1 1426 1427 ; Defines the probability that the ‘garbage collection‘ process is started on every 1428 ; session initialization. The probability is calculated by using the following equation: 1429 ; gc_probability/gc_divisor. Where session.gc_probability is the numerator and 1430 ; session.gc_divisor is the denominator in the equation. Setting this value to 1 1431 ; when the session.gc_divisor value is 100 will give you approximately a 1% chance 1432 ; the gc will run on any give request. Increasing this value to 1000 will give you 1433 ; a 0.1% chance the gc will run on any give request. For high volume production servers, 1434 ; this is a more efficient approach. 1435 ; Default Value: 100 1436 ; Development Value: 1000 1437 ; Production Value: 1000 1438 ; http://php.net/session.gc-divisor 1439 session.gc_divisor = 1000 1440 1441 ; After this number of seconds, stored data will be seen as ‘garbage‘ and 1442 ; cleaned up by the garbage collection process. 1443 ; http://php.net/session.gc-maxlifetime 1444 session.gc_maxlifetime = 1440 1445 1446 ; NOTE: If you are using the subdirectory option for storing session files 1447 ; (see session.save_path above), then garbage collection does *not* 1448 ; happen automatically. You will need to do your own garbage 1449 ; collection through a shell script, cron entry, or some other method. 1450 ; For example, the following script would is the equivalent of 1451 ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes): 1452 ; find /path/to/sessions -cmin +24 -type f | xargs rm 1453 1454 ; Check HTTP Referer to invalidate externally stored URLs containing ids. 1455 ; HTTP_REFERER has to contain this substring for the session to be 1456 ; considered as valid. 1457 ; http://php.net/session.referer-check 1458 session.referer_check = 1459 1460 ; Set to {nocache,private,public,} to determine HTTP caching aspects 1461 ; or leave this empty to avoid sending anti-caching headers. 1462 ; http://php.net/session.cache-limiter 1463 session.cache_limiter = nocache 1464 1465 ; Document expires after n minutes. 1466 ; http://php.net/session.cache-expire 1467 session.cache_expire = 180 1468 1469 ; trans sid support is disabled by default. 1470 ; Use of trans sid may risk your users‘ security. 1471 ; Use this option with caution. 1472 ; - User may send URL contains active session ID 1473 ; to other person via. email/irc/etc. 1474 ; - URL that contains active session ID may be stored 1475 ; in publicly accessible computer. 1476 ; - User may access your site with the same session ID 1477 ; always using URL stored in browser‘s history or bookmarks. 1478 ; http://php.net/session.use-trans-sid 1479 session.use_trans_sid = 0 1480 1481 ; Set session ID character length. This value could be between 22 to 256. 1482 ; Shorter length than default is supported only for compatibility reason. 1483 ; Users should use 32 or more chars. 1484 ; http://php.net/session.sid-length 1485 ; Default Value: 32 1486 ; Development Value: 26 1487 ; Production Value: 26 1488 session.sid_length = 26 1489 1490 ; The URL rewriter will look for URLs in a defined set of HTML tags. 1491 ; <form> is special; if you include them here, the rewriter will 1492 ; add a hidden <input> field with the info which is otherwise appended 1493 ; to URLs. <form> tag‘s action attribute URL will not be modified 1494 ; unless it is specified. 1495 ; Note that all valid entries require a "=", even if no value follows. 1496 ; Default Value: "a=href,area=href,frame=src,form=" 1497 ; Development Value: "a=href,area=href,frame=src,form=" 1498 ; Production Value: "a=href,area=href,frame=src,form=" 1499 ; http://php.net/url-rewriter.tags 1500 session.trans_sid_tags = "a=href,area=href,frame=src,form=" 1501 1502 ; URL rewriter does not rewrite absolute URLs by default. 1503 ; To enable rewrites for absolute pathes, target hosts must be specified 1504 ; at RUNTIME. i.e. use ini_set() 1505 ; <form> tags is special. PHP will check action attribute‘s URL regardless 1506 ; of session.trans_sid_tags setting. 1507 ; If no host is defined, HTTP_HOST will be used for allowed host. 1508 ; Example value: php.net,www.php.net,wiki.php.net 1509 ; Use "," for multiple hosts. No spaces are allowed. 1510 ; Default Value: "" 1511 ; Development Value: "" 1512 ; Production Value: "" 1513 ;session.trans_sid_hosts="" 1514 1515 ; Define how many bits are stored in each character when converting 1516 ; the binary hash data to something readable. 1517 ; Possible values: 1518 ; 4 (4 bits: 0-9, a-f) 1519 ; 5 (5 bits: 0-9, a-v) 1520 ; 6 (6 bits: 0-9, a-z, A-Z, "-", ",") 1521 ; Default Value: 4 1522 ; Development Value: 5 1523 ; Production Value: 5 1524 ; http://php.net/session.hash-bits-per-character 1525 session.sid_bits_per_character = 5 1526 1527 ; Enable upload progress tracking in $_SESSION 1528 ; Default Value: On 1529 ; Development Value: On 1530 ; Production Value: On 1531 ; http://php.net/session.upload-progress.enabled 1532 ;session.upload_progress.enabled = On 1533 1534 ; Cleanup the progress information as soon as all POST data has been read 1535 ; (i.e. upload completed). 1536 ; Default Value: On 1537 ; Development Value: On 1538 ; Production Value: On 1539 ; http://php.net/session.upload-progress.cleanup 1540 ;session.upload_progress.cleanup = On 1541 1542 ; A prefix used for the upload progress key in $_SESSION 1543 ; Default Value: "upload_progress_" 1544 ; Development Value: "upload_progress_" 1545 ; Production Value: "upload_progress_" 1546 ; http://php.net/session.upload-progress.prefix 1547 ;session.upload_progress.prefix = "upload_progress_" 1548 1549 ; The index name (concatenated with the prefix) in $_SESSION 1550 ; containing the upload progress information 1551 ; Default Value: "PHP_SESSION_UPLOAD_PROGRESS" 1552 ; Development Value: "PHP_SESSION_UPLOAD_PROGRESS" 1553 ; Production Value: "PHP_SESSION_UPLOAD_PROGRESS" 1554 ; http://php.net/session.upload-progress.name 1555 ;session.upload_progress.name = "PHP_SESSION_UPLOAD_PROGRESS" 1556 1557 ; How frequently the upload progress should be updated. 1558 ; Given either in percentages (per-file), or in bytes 1559 ; Default Value: "1%" 1560 ; Development Value: "1%" 1561 ; Production Value: "1%" 1562 ; http://php.net/session.upload-progress.freq 1563 ;session.upload_progress.freq = "1%" 1564 1565 ; The minimum delay between updates, in seconds 1566 ; Default Value: 1 1567 ; Development Value: 1 1568 ; Production Value: 1 1569 ; http://php.net/session.upload-progress.min-freq 1570 ;session.upload_progress.min_freq = "1" 1571 1572 ; Only write session data when session data is changed. Enabled by default. 1573 ; http://php.net/session.lazy-write 1574 ;session.lazy_write = On 1575 1576 [Assertion] 1577 ; Switch whether to compile assertions at all (to have no overhead at run-time) 1578 ; -1: Do not compile at all 1579 ; 0: Jump over assertion at run-time 1580 ; 1: Execute assertions 1581 ; 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) 1582 ; Default Value: 1 1583 ; Development Value: 1 1584 ; Production Value: -1 1585 ; http://php.net/zend.assertions 1586 zend.assertions = 1 1587 1588 ; Assert(expr); active by default. 1589 ; http://php.net/assert.active 1590 ;assert.active = On 1591 1592 ; Throw an AssertationException on failed assertions 1593 ; http://php.net/assert.exception 1594 ;assert.exception = On 1595 1596 ; Issue a PHP warning for each failed assertion. (Overridden by assert.exception if active) 1597 ; http://php.net/assert.warning 1598 ;assert.warning = On 1599 1600 ; Don‘t bail out by default. 1601 ; http://php.net/assert.bail 1602 ;assert.bail = Off 1603 1604 ; User-function to be called if an assertion fails. 1605 ; http://php.net/assert.callback 1606 ;assert.callback = 0 1607 1608 ; Eval the expression with current error_reporting(). Set to true if you want 1609 ; error_reporting(0) around the eval(). 1610 ; http://php.net/assert.quiet-eval 1611 ;assert.quiet_eval = 0 1612 1613 [COM] 1614 ; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs 1615 ; http://php.net/com.typelib-file 1616 ;com.typelib_file = 1617 1618 ; allow Distributed-COM calls 1619 ; http://php.net/com.allow-dcom 1620 ;com.allow_dcom = true 1621 1622 ; autoregister constants of a components typlib on com_load() 1623 ; http://php.net/com.autoregister-typelib 1624 ;com.autoregister_typelib = true 1625 1626 ; register constants casesensitive 1627 ; http://php.net/com.autoregister-casesensitive 1628 ;com.autoregister_casesensitive = false 1629 1630 ; show warnings on duplicate constant registrations 1631 ; http://php.net/com.autoregister-verbose 1632 ;com.autoregister_verbose = true 1633 1634 ; The default character set code-page to use when passing strings to and from COM objects. 1635 ; Default: system ANSI code page 1636 ;com.code_page= 1637 1638 [mbstring] 1639 ; language for internal character representation. 1640 ; This affects mb_send_mail() and mbstring.detect_order. 1641 ; http://php.net/mbstring.language 1642 ;mbstring.language = Japanese 1643 1644 ; Use of this INI entry is deprecated, use global internal_encoding instead. 1645 ; internal/script encoding. 1646 ; Some encoding cannot work as internal encoding. (e.g. SJIS, BIG5, ISO-2022-*) 1647 ; If empty, default_charset or internal_encoding or iconv.internal_encoding is used. 1648 ; The precedence is: default_charset < internal_encoding < iconv.internal_encoding 1649 ;mbstring.internal_encoding = 1650 1651 ; Use of this INI entry is deprecated, use global input_encoding instead. 1652 ; http input encoding. 1653 ; mbstring.encoding_traslation = On is needed to use this setting. 1654 ; If empty, default_charset or input_encoding or mbstring.input is used. 1655 ; The precedence is: default_charset < intput_encoding < mbsting.http_input 1656 ; http://php.net/mbstring.http-input 1657 ;mbstring.http_input = 1658 1659 ; Use of this INI entry is deprecated, use global output_encoding instead. 1660 ; http output encoding. 1661 ; mb_output_handler must be registered as output buffer to function. 1662 ; If empty, default_charset or output_encoding or mbstring.http_output is used. 1663 ; The precedence is: default_charset < output_encoding < mbstring.http_output 1664 ; To use an output encoding conversion, mbstring‘s output handler must be set 1665 ; otherwise output encoding conversion cannot be performed. 1666 ; http://php.net/mbstring.http-output 1667 ;mbstring.http_output = 1668 1669 ; enable automatic encoding translation according to 1670 ; mbstring.internal_encoding setting. Input chars are 1671 ; converted to internal encoding by setting this to On. 1672 ; Note: Do _not_ use automatic encoding translation for 1673 ; portable libs/applications. 1674 ; http://php.net/mbstring.encoding-translation 1675 ;mbstring.encoding_translation = Off 1676 1677 ; automatic encoding detection order. 1678 ; "auto" detect order is changed according to mbstring.language 1679 ; http://php.net/mbstring.detect-order 1680 ;mbstring.detect_order = auto 1681 1682 ; substitute_character used when character cannot be converted 1683 ; one from another 1684 ; http://php.net/mbstring.substitute-character 1685 ;mbstring.substitute_character = none 1686 1687 ; overload(replace) single byte functions by mbstring functions. 1688 ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(), 1689 ; etc. Possible values are 0,1,2,4 or combination of them. 1690 ; For example, 7 for overload everything. 1691 ; 0: No overload 1692 ; 1: Overload mail() function 1693 ; 2: Overload str*() functions 1694 ; 4: Overload ereg*() functions 1695 ; http://php.net/mbstring.func-overload 1696 ;mbstring.func_overload = 0 1697 1698 ; enable strict encoding detection. 1699 ; Default: Off 1700 ;mbstring.strict_detection = On 1701 1702 ; This directive specifies the regex pattern of content types for which mb_output_handler() 1703 ; is activated. 1704 ; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml) 1705 ;mbstring.http_output_conv_mimetype= 1706 1707 [gd] 1708 ; Tell the jpeg decode to ignore warnings and try to create 1709 ; a gd image. The warning will then be displayed as notices 1710 ; disabled by default 1711 ; http://php.net/gd.jpeg-ignore-warning 1712 ;gd.jpeg_ignore_warning = 1 1713 1714 [exif] 1715 ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS. 1716 ; With mbstring support this will automatically be converted into the encoding 1717 ; given by corresponding encode setting. When empty mbstring.internal_encoding 1718 ; is used. For the decode settings you can distinguish between motorola and 1719 ; intel byte order. A decode setting cannot be empty. 1720 ; http://php.net/exif.encode-unicode 1721 ;exif.encode_unicode = ISO-8859-15 1722 1723 ; http://php.net/exif.decode-unicode-motorola 1724 ;exif.decode_unicode_motorola = UCS-2BE 1725 1726 ; http://php.net/exif.decode-unicode-intel 1727 ;exif.decode_unicode_intel = UCS-2LE 1728 1729 ; http://php.net/exif.encode-jis 1730 ;exif.encode_jis = 1731 1732 ; http://php.net/exif.decode-jis-motorola 1733 ;exif.decode_jis_motorola = JIS 1734 1735 ; http://php.net/exif.decode-jis-intel 1736 ;exif.decode_jis_intel = JIS 1737 1738 [Tidy] 1739 ; The path to a default tidy configuration file to use when using tidy 1740 ; http://php.net/tidy.default-config 1741 ;tidy.default_config = /usr/local/lib/php/default.tcfg 1742 1743 ; Should tidy clean and repair output automatically? 1744 ; WARNING: Do not use this option if you are generating non-html content 1745 ; such as dynamic images 1746 ; http://php.net/tidy.clean-output 1747 tidy.clean_output = Off 1748 1749 [soap] 1750 ; Enables or disables WSDL caching feature. 1751 ; http://php.net/soap.wsdl-cache-enabled 1752 soap.wsdl_cache_enabled=1 1753 1754 ; Sets the directory name where SOAP extension will put cache files. 1755 ; http://php.net/soap.wsdl-cache-dir 1756 soap.wsdl_cache_dir="D:/wamp/tmp" 1757 1758 ; (time to live) Sets the number of second while cached file will be used 1759 ; instead of original one. 1760 ; http://php.net/soap.wsdl-cache-ttl 1761 soap.wsdl_cache_ttl=86400 1762 1763 ; Sets the size of the cache limit. (Max. number of WSDL files to cache) 1764 soap.wsdl_cache_limit = 5 1765 1766 [sysvshm] 1767 ; A default size of the shared memory segment 1768 ;sysvshm.init_mem = 10000 1769 1770 [ldap] 1771 ; Sets the maximum number of open links or -1 for unlimited. 1772 ldap.max_links = -1 1773 1774 [mcrypt] 1775 ; For more information about mcrypt settings see http://php.net/mcrypt-module-open 1776 1777 ; Directory where to load mcrypt algorithms 1778 ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt) 1779 ;mcrypt.algorithms_dir= 1780 1781 ; Directory where to load mcrypt modes 1782 ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt) 1783 ;mcrypt.modes_dir= 1784 1785 [dba] 1786 ;dba.default_handler= 1787 1788 [opcache] 1789 ; Determines if Zend OPCache is enabled 1790 ;opcache.enable=1 1791 1792 ; Determines if Zend OPCache is enabled for the CLI version of PHP 1793 ;opcache.enable_cli=1 1794 1795 ; The OPcache shared memory storage size. 1796 ;opcache.memory_consumption=128 1797 1798 ; The amount of memory for interned strings in Mbytes. 1799 ;opcache.interned_strings_buffer=8 1800 1801 ; The maximum number of keys (scripts) in the OPcache hash table. 1802 ; Only numbers between 200 and 1000000 are allowed. 1803 ;opcache.max_accelerated_files=10000 1804 1805 ; The maximum percentage of "wasted" memory until a restart is scheduled. 1806 ;opcache.max_wasted_percentage=5 1807 1808 ; When this directive is enabled, the OPcache appends the current working 1809 ; directory to the script key, thus eliminating possible collisions between 1810 ; files with the same name (basename). Disabling the directive improves 1811 ; performance, but may break existing applications. 1812 ;opcache.use_cwd=1 1813 1814 ; When disabled, you must reset the OPcache manually or restart the 1815 ; webserver for changes to the filesystem to take effect. 1816 ;opcache.validate_timestamps=1 1817 1818 ; How often (in seconds) to check file timestamps for changes to the shared 1819 ; memory storage allocation. ("1" means validate once per second, but only 1820 ; once per request. "0" means always validate) 1821 ;opcache.revalidate_freq=2 1822 1823 ; Enables or disables file search in include_path optimization 1824 ;opcache.revalidate_path=0 1825 1826 ; If disabled, all PHPDoc comments are dropped from the code to reduce the 1827 ; size of the optimized code. 1828 ;opcache.save_comments=1 1829 1830 ; If enabled, a fast shutdown sequence is used for the accelerated code 1831 ; Depending on the used Memory Manager this may cause some incompatibilities. 1832 ;opcache.fast_shutdown=0 1833 1834 ; Allow file existence override (file_exists, etc.) performance feature. 1835 ;opcache.enable_file_override=0 1836 1837 ; A bitmask, where each bit enables or disables the appropriate OPcache 1838 ; passes 1839 ;opcache.optimization_level=0xffffffff 1840 1841 ;opcache.inherited_hack=1 1842 ;opcache.dups_fix=0 1843 1844 ; The location of the OPcache blacklist file (wildcards allowed). 1845 ; Each OPcache blacklist file is a text file that holds the names of files 1846 ; that should not be accelerated. The file format is to add each filename 1847 ; to a new line. The filename may be a full path or just a file prefix 1848 ; (i.e., /var/www/x blacklists all the files and directories in /var/www 1849 ; that start with ‘x‘). Line starting with a ; are ignored (comments). 1850 ;opcache.blacklist_filename= 1851 1852 ; Allows exclusion of large files from being cached. By default all files 1853 ; are cached. 1854 ;opcache.max_file_size=0 1855 1856 ; Check the cache checksum each N requests. 1857 ; The default value of "0" means that the checks are disabled. 1858 ;opcache.consistency_checks=0 1859 1860 ; How long to wait (in seconds) for a scheduled restart to begin if the cache 1861 ; is not being accessed. 1862 ;opcache.force_restart_timeout=180 1863 1864 ; OPcache error_log file name. Empty string assumes "stderr". 1865 ;opcache.error_log= 1866 1867 ; All OPcache errors go to the Web server log. 1868 ; By default, only fatal errors (level 0) or errors (level 1) are logged. 1869 ; You can also enable warnings (level 2), info messages (level 3) or 1870 ; debug messages (level 4). 1871 ;opcache.log_verbosity_level=1 1872 1873 ; Preferred Shared Memory back-end. Leave empty and let the system decide. 1874 ;opcache.preferred_memory_model= 1875 1876 ; Protect the shared memory from unexpected writing during script execution. 1877 ; Useful for internal debugging only. 1878 ;opcache.protect_memory=0 1879 1880 ; Allows calling OPcache API functions only from PHP scripts which path is 1881 ; started from specified string. The default "" means no restriction 1882 ;opcache.restrict_api= 1883 1884 ; Mapping base of shared memory segments (for Windows only). All the PHP 1885 ; processes have to map shared memory into the same address space. This 1886 ; directive allows to manually fix the "Unable to reattach to base address" 1887 ; errors. 1888 ;opcache.mmap_base= 1889 1890 ; Enables and sets the second level cache directory. 1891 ; It should improve performance when SHM memory is full, at server restart or 1892 ; SHM reset. The default "" disables file based caching. 1893 ;opcache.file_cache= 1894 1895 ; Enables or disables opcode caching in shared memory. 1896 ;opcache.file_cache_only=0 1897 1898 ; Enables or disables checksum validation when script loaded from file cache. 1899 ;opcache.file_cache_consistency_checks=1 1900 1901 ; Implies opcache.file_cache_only=1 for a certain process that failed to 1902 ; reattach to the shared memory (for Windows only). Explicitly enabled file 1903 ; cache is required. 1904 ;opcache.file_cache_fallback=1 1905 1906 ; Enables or disables copying of PHP code (text segment) into HUGE PAGES. 1907 ; This should improve performance, but requires appropriate OS configuration. 1908 ;opcache.huge_code_pages=0 1909 1910 ; Validate cached file permissions. 1911 ;opcache.validate_permission=0 1912 ; Prevent name collisions in chroot‘ed environment. 1913 ;opcache.validate_root=0 1914 [curl] 1915 ; A default value for the CURLOPT_CAINFO option. This is required to be an 1916 ; absolute path. 1917 ;curl.cainfo = 1918 1919 [openssl] 1920 ; The location of a Certificate Authority (CA) file on the local filesystem 1921 ; to use when verifying the identity of SSL/TLS peers. Most users should 1922 ; not specify a value for this directive as PHP will attempt to use the 1923 ; OS-managed cert stores in its absence. If specified, this value may still 1924 ; be overridden on a per-stream basis via the "cafile" SSL stream context 1925 ; option. 1926 ;openssl.cafile= 1927 1928 ; If openssl.cafile is not specified or if the CA file is not found, the 1929 ; directory pointed to by openssl.capath is searched for a suitable 1930 ; certificate. This value must be a correctly hashed certificate directory. 1931 ; Most users should not specify a value for this directive as PHP will 1932 ; attempt to use the OS-managed cert stores in its absence. If specified, 1933 ; this value may still be overridden on a per-stream basis via the "capath" 1934 ; SSL stream context option. 1935 ;openssl.capath= 1936 1937 ; Local Variables: 1938 ; tab-width: 4 1939 ; End: 1940 1941 1942 zend_extension = "D:/wamp/bin/php/php7.1.15/zend_ext/php_xdebug-2.5.5-7.1-vc14.dll" 1943 1944 [xdebug] 1945 xdebug.remote_enable = off 1946 xdebug.profiler_enable = off 1947 xdebug.profiler_enable_trigger = off 1948 xdebug.profiler_output_name = cachegrind.out.%t.%p 1949 xdebug.profiler_output_dir = "D:/wamp/tmp"
9.退出wampmanger.exe,重新启动wampmanger,访问 http://localhost
三、问题排查
启动wampserver之后,访问 http://localhost,报如下错误:
解决办法( wamp You don‘t have permission to access / on this server等问题的解决) ,编辑 D:\wamp\bin\apache\apache2.2.22-fcgid\conf\httpd.conf 文件:
#找到这一行,添加 +ExecCGI <Directory "D:/wamp/www/"> Options Indexes FollowSymLinks +ExecCGI AllowOverride all Order Allow,Deny Allow from all </Directory>
重启Apache服务。
PS:
Apache2.2升级Apache2.4(Windows环境)
原文地址:https://www.cnblogs.com/phpdragon/p/8526719.html