1[PHP] 2 3;;;;;;;;;;;;;;;;;;; 4; About php.ini ; 5;;;;;;;;;;;;;;;;;;; 6; PHP's initialization file, generally called php.ini, is responsible for 7; configuring many of the aspects of PHP's behavior. 8 9; PHP attempts to find and load this configuration from a number of locations. 10; The following is a summary of its search order: 11; 1. SAPI module specific location. 12; 2. The PHPRC environment variable. 13; 3. A number of predefined registry keys on Windows 14; 4. Current working directory (except CLI) 15; 5. The web server's directory (for SAPI modules), or directory of PHP 16; (otherwise in Windows) 17; 6. The directory from the --with-config-file-path compile time option, or the 18; Windows directory (usually C:\windows) 19; See the PHP docs for more specific information. 20; https://php.net/configuration.file 21 22; The syntax of the file is extremely simple. Whitespace and lines 23; beginning with a semicolon are silently ignored (as you probably guessed). 24; Section headers (e.g. [Foo]) are also silently ignored, even though 25; they might mean something in the future. 26 27; Directives following the section heading [PATH=/www/mysite] only 28; apply to PHP files in the /www/mysite directory. Directives 29; following the section heading [HOST=www.example.com] only apply to 30; PHP files served from www.example.com. Directives set in these 31; special sections cannot be overridden by user-defined INI files or 32; at runtime. Currently, [PATH=] and [HOST=] sections only work under 33; CGI/FastCGI. 34; https://php.net/ini.sections 35 36; Directives are specified using the following syntax: 37; directive = value 38; Directive names are *case sensitive* - foo=bar is different from FOO=bar. 39; Directives are variables used to configure PHP or PHP extensions. 40; There is no name validation. If PHP can't find an expected 41; directive because it is not set or is mistyped, a default value will be used. 42 43; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one 44; of the INI constants (On, Off, True, False, Yes, No and None) or an expression 45; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a 46; previously set variable or directive (e.g. ${foo}) 47 48; Expressions in the INI file are limited to bitwise operators and parentheses: 49; | bitwise OR 50; ^ bitwise XOR 51; & bitwise AND 52; ~ bitwise NOT 53; ! boolean NOT 54 55; Boolean flags can be turned on using the values 1, On, True or Yes. 56; They can be turned off using the values 0, Off, False or No. 57 58; An empty string can be denoted by simply not writing anything after the equal 59; sign, or by using the None keyword: 60 61; foo = ; sets foo to an empty string 62; foo = None ; sets foo to an empty string 63; foo = "None" ; sets foo to the string 'None' 64 65; If you use constants in your value, and these constants belong to a 66; dynamically loaded extension (either a PHP extension or a Zend extension), 67; you may only use these constants *after* the line that loads the extension. 68 69;;;;;;;;;;;;;;;;;;; 70; About this file ; 71;;;;;;;;;;;;;;;;;;; 72; PHP comes packaged with two INI files. One that is recommended to be used 73; in production environments and one that is recommended to be used in 74; development environments. 75 76; php.ini-production contains settings which hold security, performance and 77; best practices at its core. But please be aware, these settings may break 78; compatibility with older or less security-conscious applications. We 79; recommending using the production ini in production and testing environments. 80 81; php.ini-development is very similar to its production variant, except it is 82; much more verbose when it comes to errors. We recommend using the 83; development version only in development environments, as errors shown to 84; application users can inadvertently leak otherwise secure information. 85 86; This is the php.ini-development INI file. 87 88;;;;;;;;;;;;;;;;;;; 89; Quick Reference ; 90;;;;;;;;;;;;;;;;;;; 91 92; The following are all the settings which are different in either the production 93; or development versions of the INIs with respect to PHP's default behavior. 94; Please see the actual settings later in the document for more details as to why 95; we recommend these changes in PHP's behavior. 96 97; display_errors 98; Default Value: On 99; Development Value: On 100; Production Value: Off 101 102; display_startup_errors 103; Default Value: On 104; Development Value: On 105; Production Value: Off 106 107; error_reporting 108; Default Value: E_ALL 109; Development Value: E_ALL 110; Production Value: E_ALL & ~E_DEPRECATED 111 112; log_errors 113; Default Value: Off 114; Development Value: On 115; Production Value: On 116 117; max_input_time 118; Default Value: -1 (Unlimited) 119; Development Value: 60 (60 seconds) 120; Production Value: 60 (60 seconds) 121 122; mysqlnd.collect_memory_statistics 123; Default Value: Off 124; Development Value: On 125; Production Value: Off 126 127; output_buffering 128; Default Value: Off 129; Development Value: 4096 130; Production Value: 4096 131 132; register_argc_argv 133; Default Value: On 134; Development Value: Off 135; Production Value: Off 136 137; request_order 138; Default Value: None 139; Development Value: "GP" 140; Production Value: "GP" 141 142; session.gc_divisor 143; Default Value: 100 144; Development Value: 1000 145; Production Value: 1000 146 147; short_open_tag 148; Default Value: On 149; Development Value: Off 150; Production Value: Off 151 152; variables_order 153; Default Value: "EGPCS" 154; Development Value: "GPCS" 155; Production Value: "GPCS" 156 157; zend.assertions 158; Default Value: 1 159; Development Value: 1 160; Production Value: -1 161 162; zend.exception_ignore_args 163; Default Value: Off 164; Development Value: Off 165; Production Value: On 166 167; zend.exception_string_param_max_len 168; Default Value: 15 169; Development Value: 15 170; Production Value: 0 171 172;;;;;;;;;;;;;;;;;;;; 173; php.ini Options ; 174;;;;;;;;;;;;;;;;;;;; 175; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini" 176;user_ini.filename = ".user.ini" 177 178; To disable this feature set this option to an empty value 179;user_ini.filename = 180 181; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes) 182;user_ini.cache_ttl = 300 183 184;;;;;;;;;;;;;;;;;;;; 185; Language Options ; 186;;;;;;;;;;;;;;;;;;;; 187 188; Enable the PHP scripting language engine under Apache. 189; https://php.net/engine 190engine = On 191 192; This directive determines whether or not PHP will recognize code between 193; <? and ?> tags as PHP source which should be processed as such. It is 194; generally recommended that <?php and ?> should be used and that this feature 195; should be disabled, as enabling it may result in issues when generating XML 196; documents, however this remains supported for backward compatibility reasons. 197; Note that this directive does not control the <?= shorthand tag, which can be 198; used regardless of this directive. 199; Default Value: On 200; Development Value: Off 201; Production Value: Off 202; https://php.net/short-open-tag 203short_open_tag = Off 204 205; The number of significant digits displayed in floating point numbers. 206; https://php.net/precision 207precision = 14 208 209; Output buffering is a mechanism for controlling how much output data 210; (excluding headers and cookies) PHP should keep internally before pushing that 211; data to the client. If your application's output exceeds this setting, PHP 212; will send that data in chunks of roughly the size you specify. 213; Turning on this setting and managing its maximum buffer size can yield some 214; interesting side-effects depending on your application and web server. 215; You may be able to send headers and cookies after you've already sent output 216; through print or echo. You also may see performance benefits if your server is 217; emitting less packets due to buffered output versus PHP streaming the output 218; as it gets it. On production servers, 4096 bytes is a good setting for performance 219; reasons. 220; Note: Output buffering can also be controlled via Output Buffering Control 221; functions. 222; Possible Values: 223; On = Enabled and buffer is unlimited. (Use with caution) 224; Off = Disabled 225; Integer = Enables the buffer and sets its maximum size in bytes. 226; Note: This directive is hardcoded to Off for the CLI SAPI 227; Default Value: Off 228; Development Value: 4096 229; Production Value: 4096 230; https://php.net/output-buffering 231output_buffering = 4096 232 233; You can redirect all of the output of your scripts to a function. For 234; example, if you set output_handler to "mb_output_handler", character 235; encoding will be transparently converted to the specified encoding. 236; Setting any output handler automatically turns on output buffering. 237; Note: People who wrote portable scripts should not depend on this ini 238; directive. Instead, explicitly set the output handler using ob_start(). 239; Using this ini directive may cause problems unless you know what script 240; is doing. 241; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler" 242; and you cannot use both "ob_gzhandler" and "zlib.output_compression". 243; Note: output_handler must be empty if this is set 'On' !!!! 244; Instead you must use zlib.output_handler. 245; https://php.net/output-handler 246;output_handler = 247 248; URL rewriter function rewrites URL on the fly by using 249; output buffer. You can set target tags by this configuration. 250; "form" tag is special tag. It will add hidden input tag to pass values. 251; Refer to session.trans_sid_tags for usage. 252; Default Value: "form=" 253; Development Value: "form=" 254; Production Value: "form=" 255;url_rewriter.tags 256 257; URL rewriter will not rewrite absolute URL nor form by default. To enable 258; absolute URL rewrite, allowed hosts must be defined at RUNTIME. 259; Refer to session.trans_sid_hosts for more details. 260; Default Value: "" 261; Development Value: "" 262; Production Value: "" 263;url_rewriter.hosts 264 265; Transparent output compression using the zlib library 266; Valid values for this option are 'off', 'on', or a specific buffer size 267; to be used for compression (default is 4KB) 268; Note: Resulting chunk size may vary due to nature of compression. PHP 269; outputs chunks that are few hundreds bytes each as a result of 270; compression. If you prefer a larger chunk size for better 271; performance, enable output_buffering in addition. 272; Note: You need to use zlib.output_handler instead of the standard 273; output_handler, or otherwise the output will be corrupted. 274; https://php.net/zlib.output-compression 275zlib.output_compression = Off 276 277; https://php.net/zlib.output-compression-level 278;zlib.output_compression_level = -1 279 280; You cannot specify additional output handlers if zlib.output_compression 281; is activated here. This setting does the same as output_handler but in 282; a different order. 283; https://php.net/zlib.output-handler 284;zlib.output_handler = 285 286; Implicit flush tells PHP to tell the output layer to flush itself 287; automatically after every output block. This is equivalent to calling the 288; PHP function flush() after each and every call to print() or echo() and each 289; and every HTML block. Turning this option on has serious performance 290; implications and is generally recommended for debugging purposes only. 291; https://php.net/implicit-flush 292; Note: This directive is hardcoded to On for the CLI SAPI 293implicit_flush = Off 294 295; The unserialize callback function will be called (with the undefined class' 296; name as parameter), if the unserializer finds an undefined class 297; which should be instantiated. A warning appears if the specified function is 298; not defined, or if the function doesn't include/implement the missing class. 299; So only set this entry, if you really want to implement such a 300; callback-function. 301unserialize_callback_func = 302 303; The unserialize_max_depth specifies the default depth limit for unserialized 304; structures. Setting the depth limit too high may result in stack overflows 305; during unserialization. The unserialize_max_depth ini setting can be 306; overridden by the max_depth option on individual unserialize() calls. 307; A value of 0 disables the depth limit. 308;unserialize_max_depth = 4096 309 310; When floats & doubles are serialized, store serialize_precision significant 311; digits after the floating point. The default value ensures that when floats 312; are decoded with unserialize, the data will remain the same. 313; The value is also used for json_encode when encoding double values. 314; If -1 is used, then dtoa mode 0 is used which automatically select the best 315; precision. 316serialize_precision = -1 317 318; open_basedir, if set, limits all file operations to the defined directory 319; and below. This directive makes most sense if used in a per-directory 320; or per-virtualhost web server configuration file. 321; Note: disables the realpath cache 322; https://php.net/open-basedir 323;open_basedir = 324 325; This directive allows you to disable certain functions. 326; It receives a comma-delimited list of function names. 327; https://php.net/disable-functions 328disable_functions = 329 330; This directive allows you to disable certain classes. 331; It receives a comma-delimited list of class names. 332; https://php.net/disable-classes 333disable_classes = 334 335; Colors for Syntax Highlighting mode. Anything that's acceptable in 336; <span style="color: ???????"> would work. 337; https://php.net/syntax-highlighting 338;highlight.string = #DD0000 339;highlight.comment = #FF9900 340;highlight.keyword = #007700 341;highlight.default = #0000BB 342;highlight.html = #000000 343 344; If enabled, the request will be allowed to complete even if the user aborts 345; the request. Consider enabling it if executing long requests, which may end up 346; being interrupted by the user or a browser timing out. PHP's default behavior 347; is to disable this feature. 348; https://php.net/ignore-user-abort 349;ignore_user_abort = On 350 351; Determines the size of the realpath cache to be used by PHP. This value should 352; be increased on systems where PHP opens many files to reflect the quantity of 353; the file operations performed. 354; Note: if open_basedir is set, the cache is disabled 355; https://php.net/realpath-cache-size 356;realpath_cache_size = 4096k 357 358; Duration of time, in seconds for which to cache realpath information for a given 359; file or directory. For systems with rarely changing files, consider increasing this 360; value. 361; https://php.net/realpath-cache-ttl 362;realpath_cache_ttl = 120 363 364; Enables or disables the circular reference collector. 365; https://php.net/zend.enable-gc 366zend.enable_gc = On 367 368; If enabled, scripts may be written in encodings that are incompatible with 369; the scanner. CP936, Big5, CP949 and Shift_JIS are the examples of such 370; encodings. To use this feature, mbstring extension must be enabled. 371;zend.multibyte = Off 372 373; Allows to set the default encoding for the scripts. This value will be used 374; unless "declare(encoding=...)" directive appears at the top of the script. 375; Only affects if zend.multibyte is set. 376;zend.script_encoding = 377 378; Allows to include or exclude arguments from stack traces generated for exceptions. 379; In production, it is recommended to turn this setting on to prohibit the output 380; of sensitive information in stack traces 381; Default Value: Off 382; Development Value: Off 383; Production Value: On 384zend.exception_ignore_args = Off 385 386; Allows setting the maximum string length in an argument of a stringified stack trace 387; to a value between 0 and 1000000. 388; This has no effect when zend.exception_ignore_args is enabled. 389; Default Value: 15 390; Development Value: 15 391; Production Value: 0 392zend.exception_string_param_max_len = 15 393 394;;;;;;;;;;;;;;;;; 395; Miscellaneous ; 396;;;;;;;;;;;;;;;;; 397 398; Decides whether PHP may expose the fact that it is installed on the server 399; (e.g. by adding its signature to the Web server header). It is no security 400; threat in any way, but it makes it possible to determine whether you use PHP 401; on your server or not. 402; https://php.net/expose-php 403expose_php = On 404 405;;;;;;;;;;;;;;;;;;; 406; Resource Limits ; 407;;;;;;;;;;;;;;;;;;; 408 409; Maximum execution time of each script, in seconds 410; https://php.net/max-execution-time 411; Note: This directive is hardcoded to 0 for the CLI SAPI 412max_execution_time = 30 413 414; Maximum amount of time each script may spend parsing request data. It's a good 415; idea to limit this time on productions servers in order to eliminate unexpectedly 416; long running scripts. 417; Note: This directive is hardcoded to -1 for the CLI SAPI 418; Default Value: -1 (Unlimited) 419; Development Value: 60 (60 seconds) 420; Production Value: 60 (60 seconds) 421; https://php.net/max-input-time 422max_input_time = 60 423 424; Maximum input variable nesting level 425; https://php.net/max-input-nesting-level 426;max_input_nesting_level = 64 427 428; How many GET/POST/COOKIE input variables may be accepted 429;max_input_vars = 1000 430 431; How many multipart body parts (combined input variable and file uploads) may 432; be accepted. 433; Default Value: -1 (Sum of max_input_vars and max_file_uploads) 434;max_multipart_body_parts = 1500 435 436; Maximum amount of memory a script may consume 437; https://php.net/memory-limit 438memory_limit = 128M 439 440;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 441; Error handling and logging ; 442;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 443 444; This directive informs PHP of which errors, warnings and notices you would like 445; it to take action for. The recommended way of setting values for this 446; directive is through the use of the error level constants and bitwise 447; operators. The error level constants are below here for convenience as well as 448; some common settings and their meanings. 449; By default, PHP is set to take action on all errors, notices and warnings EXCEPT 450; those related to E_NOTICE, which together cover best practices and 451; recommended coding standards in PHP. For performance reasons, this is the 452; recommend error reporting setting. Your production server shouldn't be wasting 453; resources complaining about best practices and coding standards. That's what 454; development servers and development settings are for. 455; Note: The php.ini-development file has this setting as E_ALL. This 456; means it pretty much reports everything which is exactly what you want during 457; development and early testing. 458; 459; Error Level Constants: 460; E_ALL - All errors and warnings 461; E_ERROR - fatal run-time errors 462; E_RECOVERABLE_ERROR - almost fatal run-time errors 463; E_WARNING - run-time warnings (non-fatal errors) 464; E_PARSE - compile-time parse errors 465; E_NOTICE - run-time notices (these are warnings which often result 466; from a bug in your code, but it's possible that it was 467; intentional (e.g., using an uninitialized variable and 468; relying on the fact it is automatically initialized to an 469; empty string) 470; E_CORE_ERROR - fatal errors that occur during PHP's initial startup 471; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's 472; initial startup 473; E_COMPILE_ERROR - fatal compile-time errors 474; E_COMPILE_WARNING - compile-time warnings (non-fatal errors) 475; E_USER_ERROR - user-generated error message 476; E_USER_WARNING - user-generated warning message 477; E_USER_NOTICE - user-generated notice message 478; E_DEPRECATED - warn about code that will not work in future versions 479; of PHP 480; E_USER_DEPRECATED - user-generated deprecation warnings 481; 482; Common Values: 483; E_ALL (Show all errors, warnings and notices including coding standards.) 484; E_ALL & ~E_NOTICE (Show all errors, except for notices) 485; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors) 486; Default Value: E_ALL 487; Development Value: E_ALL 488; Production Value: E_ALL & ~E_DEPRECATED 489; https://php.net/error-reporting 490error_reporting = E_ALL 491 492; This directive controls whether or not and where PHP will output errors, 493; notices and warnings too. Error output is very useful during development, but 494; it could be very dangerous in production environments. Depending on the code 495; which is triggering the error, sensitive information could potentially leak 496; out of your application such as database usernames and passwords or worse. 497; For production environments, we recommend logging errors rather than 498; sending them to STDOUT. 499; Possible Values: 500; Off = Do not display any errors 501; stderr = Display errors to STDERR (affects only CGI/CLI binaries!) 502; On or stdout = Display errors to STDOUT 503; Default Value: On 504; Development Value: On 505; Production Value: Off 506; https://php.net/display-errors 507display_errors = On 508 509; The display of errors which occur during PHP's startup sequence are handled 510; separately from display_errors. We strongly recommend you set this to 'off' 511; for production servers to avoid leaking configuration details. 512; Default Value: On 513; Development Value: On 514; Production Value: Off 515; https://php.net/display-startup-errors 516display_startup_errors = On 517 518; Besides displaying errors, PHP can also log errors to locations such as a 519; server-specific log, STDERR, or a location specified by the error_log 520; directive found below. While errors should not be displayed on productions 521; servers they should still be monitored and logging is a great way to do that. 522; Default Value: Off 523; Development Value: On 524; Production Value: On 525; https://php.net/log-errors 526log_errors = On 527 528; Do not log repeated messages. Repeated errors must occur in same file on same 529; line unless ignore_repeated_source is set true. 530; https://php.net/ignore-repeated-errors 531ignore_repeated_errors = Off 532 533; Ignore source of message when ignoring repeated messages. When this setting 534; is On you will not log errors with repeated messages from different files or 535; source lines. 536; https://php.net/ignore-repeated-source 537ignore_repeated_source = Off 538 539; If this parameter is set to Off, then memory leaks will not be shown (on 540; stdout or in the log). This is only effective in a debug compile, and if 541; error reporting includes E_WARNING in the allowed list 542; https://php.net/report-memleaks 543report_memleaks = On 544 545; This setting is off by default. 546;report_zend_debug = 0 547 548; Turn off normal error reporting and emit XML-RPC error XML 549; https://php.net/xmlrpc-errors 550;xmlrpc_errors = 0 551 552; An XML-RPC faultCode 553;xmlrpc_error_number = 0 554 555; When PHP displays or logs an error, it has the capability of formatting the 556; error message as HTML for easier reading. This directive controls whether 557; the error message is formatted as HTML or not. 558; Note: This directive is hardcoded to Off for the CLI SAPI 559; https://php.net/html-errors 560;html_errors = On 561 562; If html_errors is set to On *and* docref_root is not empty, then PHP 563; produces clickable error messages that direct to a page describing the error 564; or function causing the error in detail. 565; You can download a copy of the PHP manual from https://php.net/docs 566; and change docref_root to the base URL of your local copy including the 567; leading '/'. You must also specify the file extension being used including 568; the dot. PHP's default behavior is to leave these settings empty, in which 569; case no links to documentation are generated. 570; Note: Never use this feature for production boxes. 571; https://php.net/docref-root 572; Examples 573;docref_root = "/phpmanual/" 574 575; https://php.net/docref-ext 576;docref_ext = .html 577 578; String to output before an error message. PHP's default behavior is to leave 579; this setting blank. 580; https://php.net/error-prepend-string 581; Example: 582;error_prepend_string = "<span style='color: #ff0000'>" 583 584; String to output after an error message. PHP's default behavior is to leave 585; this setting blank. 586; https://php.net/error-append-string 587; Example: 588;error_append_string = "</span>" 589 590; Log errors to specified file. PHP's default behavior is to leave this value 591; empty. 592; https://php.net/error-log 593; Example: 594;error_log = php_errors.log 595; Log errors to syslog (Event Log on Windows). 596;error_log = syslog 597 598; The syslog ident is a string which is prepended to every message logged 599; to syslog. Only used when error_log is set to syslog. 600;syslog.ident = php 601 602; The syslog facility is used to specify what type of program is logging 603; the message. Only used when error_log is set to syslog. 604;syslog.facility = user 605 606; Set this to disable filtering control characters (the default). 607; Some loggers only accept NVT-ASCII, others accept anything that's not 608; control characters. If your logger accepts everything, then no filtering 609; is needed at all. 610; Allowed values are: 611; ascii (all printable ASCII characters and NL) 612; no-ctrl (all characters except control characters) 613; all (all characters) 614; raw (like "all", but messages are not split at newlines) 615; https://php.net/syslog.filter 616;syslog.filter = ascii 617 618;windows.show_crt_warning 619; Default value: 0 620; Development value: 0 621; Production value: 0 622 623;;;;;;;;;;;;;;;;; 624; Data Handling ; 625;;;;;;;;;;;;;;;;; 626 627; The separator used in PHP generated URLs to separate arguments. 628; PHP's default setting is "&". 629; https://php.net/arg-separator.output 630; Example: 631;arg_separator.output = "&" 632 633; List of separator(s) used by PHP to parse input URLs into variables. 634; PHP's default setting is "&". 635; NOTE: Every character in this directive is considered as separator! 636; https://php.net/arg-separator.input 637; Example: 638;arg_separator.input = ";&" 639 640; This directive determines which super global arrays are registered when PHP 641; starts up. G,P,C,E & S are abbreviations for the following respective super 642; globals: GET, POST, COOKIE, ENV and SERVER. There is a performance penalty 643; paid for the registration of these arrays and because ENV is not as commonly 644; used as the others, ENV is not recommended on productions servers. You 645; can still get access to the environment variables through getenv() should you 646; need to. 647; Default Value: "EGPCS" 648; Development Value: "GPCS" 649; Production Value: "GPCS"; 650; https://php.net/variables-order 651variables_order = "GPCS" 652 653; This directive determines which super global data (G,P & C) should be 654; registered into the super global array REQUEST. If so, it also determines 655; the order in which that data is registered. The values for this directive 656; are specified in the same manner as the variables_order directive, 657; EXCEPT one. Leaving this value empty will cause PHP to use the value set 658; in the variables_order directive. It does not mean it will leave the super 659; globals array REQUEST empty. 660; Default Value: None 661; Development Value: "GP" 662; Production Value: "GP" 663; https://php.net/request-order 664request_order = "GP" 665 666; This directive determines whether PHP registers $argv & $argc each time it 667; runs. $argv contains an array of all the arguments passed to PHP when a script 668; is invoked. $argc contains an integer representing the number of arguments 669; that were passed when the script was invoked. These arrays are extremely 670; useful when running scripts from the command line. When this directive is 671; enabled, registering these variables consumes CPU cycles and memory each time 672; a script is executed. For performance reasons, this feature should be disabled 673; on production servers. 674; Note: This directive is hardcoded to On for the CLI SAPI 675; Default Value: On 676; Development Value: Off 677; Production Value: Off 678; https://php.net/register-argc-argv 679register_argc_argv = Off 680 681; When enabled, the ENV, REQUEST and SERVER variables are created when they're 682; first used (Just In Time) instead of when the script starts. If these 683; variables are not used within a script, having this directive on will result 684; in a performance gain. The PHP directive register_argc_argv must be disabled 685; for this directive to have any effect. 686; https://php.net/auto-globals-jit 687auto_globals_jit = On 688 689; Whether PHP will read the POST data. 690; This option is enabled by default. 691; Most likely, you won't want to disable this option globally. It causes $_POST 692; and $_FILES to always be empty; the only way you will be able to read the 693; POST data will be through the php://input stream wrapper. This can be useful 694; to proxy requests or to process the POST data in a memory efficient fashion. 695; https://php.net/enable-post-data-reading 696;enable_post_data_reading = Off 697 698; Maximum size of POST data that PHP will accept. 699; Its value may be 0 to disable the limit. It is ignored if POST data reading 700; is disabled through enable_post_data_reading. 701; https://php.net/post-max-size 702post_max_size = 8M 703 704; Automatically add files before PHP document. 705; https://php.net/auto-prepend-file 706auto_prepend_file = 707 708; Automatically add files after PHP document. 709; https://php.net/auto-append-file 710auto_append_file = 711 712; By default, PHP will output a media type using the Content-Type header. To 713; disable this, simply set it to be empty. 714; 715; PHP's built-in default media type is set to text/html. 716; https://php.net/default-mimetype 717default_mimetype = "text/html" 718 719; PHP's default character set is set to UTF-8. 720; https://php.net/default-charset 721default_charset = "UTF-8" 722 723; PHP internal character encoding is set to empty. 724; If empty, default_charset is used. 725; https://php.net/internal-encoding 726;internal_encoding = 727 728; PHP input character encoding is set to empty. 729; If empty, default_charset is used. 730; https://php.net/input-encoding 731;input_encoding = 732 733; PHP output character encoding is set to empty. 734; If empty, default_charset is used. 735; See also output_buffer. 736; https://php.net/output-encoding 737;output_encoding = 738 739;;;;;;;;;;;;;;;;;;;;;;;;; 740; Paths and Directories ; 741;;;;;;;;;;;;;;;;;;;;;;;;; 742 743; UNIX: "/path1:/path2" 744;include_path = ".:/php/includes" 745; 746; Windows: "\path1;\path2" 747;include_path = ".;c:\php\includes" 748; 749; PHP's default setting for include_path is ".;/path/to/php/pear" 750; https://php.net/include-path 751 752; The root of the PHP pages, used only if nonempty. 753; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root 754; if you are running php as a CGI under any web server (other than IIS) 755; see documentation for security issues. The alternate is to use the 756; cgi.force_redirect configuration below 757; https://php.net/doc-root 758doc_root = 759 760; The directory under which PHP opens the script using /~username used only 761; if nonempty. 762; https://php.net/user-dir 763user_dir = 764 765; Directory in which the loadable extensions (modules) reside. 766; https://php.net/extension-dir 767;extension_dir = "./" 768; On windows: 769;extension_dir = "ext" 770 771; Directory where the temporary files should be placed. 772; Defaults to the system default (see sys_get_temp_dir) 773;sys_temp_dir = "/tmp" 774 775; Whether or not to enable the dl() function. The dl() function does NOT work 776; properly in multithreaded servers, such as IIS or Zeus, and is automatically 777; disabled on them. 778; https://php.net/enable-dl 779enable_dl = Off 780 781; cgi.force_redirect is necessary to provide security running PHP as a CGI under 782; most web servers. Left undefined, PHP turns this on by default. You can 783; turn it off here AT YOUR OWN RISK 784; **You CAN safely turn this off for IIS, in fact, you MUST.** 785; https://php.net/cgi.force-redirect 786;cgi.force_redirect = 1 787 788; if cgi.nph is enabled it will force cgi to always sent Status: 200 with 789; every request. PHP's default behavior is to disable this feature. 790;cgi.nph = 1 791 792; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape 793; (iPlanet) web servers, you MAY need to set an environment variable name that PHP 794; will look for to know it is OK to continue execution. Setting this variable MAY 795; cause security issues, KNOW WHAT YOU ARE DOING FIRST. 796; https://php.net/cgi.redirect-status-env 797;cgi.redirect_status_env = 798 799; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's 800; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok 801; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting 802; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting 803; of zero causes PHP to behave as before. Default is 1. You should fix your scripts 804; to use SCRIPT_FILENAME rather than PATH_TRANSLATED. 805; https://php.net/cgi.fix-pathinfo 806;cgi.fix_pathinfo=1 807 808; if cgi.discard_path is enabled, the PHP CGI binary can safely be placed outside 809; of the web tree and people will not be able to circumvent .htaccess security. 810;cgi.discard_path=1 811 812; FastCGI under IIS supports the ability to impersonate 813; security tokens of the calling client. This allows IIS to define the 814; security context that the request runs under. mod_fastcgi under Apache 815; does not currently support this feature (03/17/2002) 816; Set to 1 if running under IIS. Default is zero. 817; https://php.net/fastcgi.impersonate 818;fastcgi.impersonate = 1 819 820; Disable logging through FastCGI connection. PHP's default behavior is to enable 821; this feature. 822;fastcgi.logging = 0 823 824; cgi.rfc2616_headers configuration option tells PHP what type of headers to 825; use when sending HTTP response code. If set to 0, PHP sends Status: header that 826; is supported by Apache. When this option is set to 1, PHP will send 827; RFC2616 compliant header. 828; Default is zero. 829; https://php.net/cgi.rfc2616-headers 830;cgi.rfc2616_headers = 0 831 832; cgi.check_shebang_line controls whether CGI PHP checks for line starting with #! 833; (shebang) at the top of the running script. This line might be needed if the 834; script support running both as stand-alone script and via PHP CGI<. PHP in CGI 835; mode skips this line and ignores its content if this directive is turned on. 836; https://php.net/cgi.check-shebang-line 837;cgi.check_shebang_line=1 838 839;;;;;;;;;;;;;;;; 840; File Uploads ; 841;;;;;;;;;;;;;;;; 842 843; Whether to allow HTTP file uploads. 844; https://php.net/file-uploads 845file_uploads = On 846 847; Temporary directory for HTTP uploaded files (will use system default if not 848; specified). 849; https://php.net/upload-tmp-dir 850;upload_tmp_dir = 851 852; Maximum allowed size for uploaded files. 853; https://php.net/upload-max-filesize 854upload_max_filesize = 2M 855 856; Maximum number of files that can be uploaded via a single request 857max_file_uploads = 20 858 859;;;;;;;;;;;;;;;;;; 860; Fopen wrappers ; 861;;;;;;;;;;;;;;;;;; 862 863; Whether to allow the treatment of URLs (like http:// or ftp://) as files. 864; https://php.net/allow-url-fopen 865allow_url_fopen = On 866 867; Whether to allow include/require to open URLs (like https:// or ftp://) as files. 868; https://php.net/allow-url-include 869allow_url_include = Off 870 871; Define the anonymous ftp password (your email address). PHP's default setting 872; for this is empty. 873; https://php.net/from 874;from="john@doe.com" 875 876; Define the User-Agent string. PHP's default setting for this is empty. 877; https://php.net/user-agent 878;user_agent="PHP" 879 880; Default timeout for socket based streams (seconds) 881; https://php.net/default-socket-timeout 882default_socket_timeout = 60 883 884; If your scripts have to deal with files from Macintosh systems, 885; or you are running on a Mac and need to deal with files from 886; unix or win32 systems, setting this flag will cause PHP to 887; automatically detect the EOL character in those files so that 888; fgets() and file() will work regardless of the source of the file. 889; https://php.net/auto-detect-line-endings 890;auto_detect_line_endings = Off 891 892;;;;;;;;;;;;;;;;;;;;;; 893; Dynamic Extensions ; 894;;;;;;;;;;;;;;;;;;;;;; 895 896; If you wish to have an extension loaded automatically, use the following 897; syntax: 898; 899; extension=modulename 900; 901; For example: 902; 903; extension=mysqli 904; 905; When the extension library to load is not located in the default extension 906; directory, You may specify an absolute path to the library file: 907; 908; extension=/path/to/extension/mysqli.so 909; 910; Note : The syntax used in previous PHP versions ('extension=<ext>.so' and 911; 'extension='php_<ext>.dll') is supported for legacy reasons and may be 912; deprecated in a future PHP major version. So, when it is possible, please 913; move to the new ('extension=<ext>) syntax. 914; 915; Notes for Windows environments : 916; 917; - Many DLL files are located in the ext/ 918; extension folders as well as the separate PECL DLL download. 919; Be sure to appropriately set the extension_dir directive. 920; 921;extension=bz2 922;extension=curl 923;extension=exif 924;extension=ffi 925;extension=ftp 926;extension=fileinfo 927;extension=gd 928;extension=gettext 929;extension=gmp 930;extension=intl 931;extension=ldap 932;extension=mbstring 933;extension=mysqli 934;extension=odbc 935;extension=openssl 936;extension=pdo_firebird 937;extension=pdo_mysql 938;extension=pdo_odbc 939;extension=pdo_pgsql 940;extension=pdo_sqlite 941;extension=pgsql 942;extension=shmop 943 944; The MIBS data available in the PHP distribution must be installed. 945; See https://www.php.net/manual/en/snmp.installation.php 946;extension=snmp 947 948;extension=soap 949;extension=sockets 950;extension=sodium 951;extension=sqlite3 952;extension=tidy 953;extension=xsl 954;extension=zip 955 956;zend_extension=opcache 957 958;;;;;;;;;;;;;;;;;;; 959; Module Settings ; 960;;;;;;;;;;;;;;;;;;; 961 962[CLI Server] 963; Whether the CLI web server uses ANSI color coding in its terminal output. 964cli_server.color = On 965 966[Date] 967; Defines the default timezone used by the date functions 968; https://php.net/date.timezone 969;date.timezone = 970 971; https://php.net/date.default-latitude 972;date.default_latitude = 31.7667 973 974; https://php.net/date.default-longitude 975;date.default_longitude = 35.2333 976 977; https://php.net/date.sunrise-zenith 978;date.sunrise_zenith = 90.833333 979 980; https://php.net/date.sunset-zenith 981;date.sunset_zenith = 90.833333 982 983[filter] 984; https://php.net/filter.default 985;filter.default = unsafe_raw 986 987; https://php.net/filter.default-flags 988;filter.default_flags = 989 990[iconv] 991; Use of this INI entry is deprecated, use global input_encoding instead. 992; If empty, default_charset or input_encoding or iconv.input_encoding is used. 993; The precedence is: default_charset < input_encoding < iconv.input_encoding 994;iconv.input_encoding = 995 996; Use of this INI entry is deprecated, use global internal_encoding instead. 997; If empty, default_charset or internal_encoding or iconv.internal_encoding is used. 998; The precedence is: default_charset < internal_encoding < iconv.internal_encoding 999;iconv.internal_encoding = 1000 1001; Use of this INI entry is deprecated, use global output_encoding instead. 1002; If empty, default_charset or output_encoding or iconv.output_encoding is used. 1003; The precedence is: default_charset < output_encoding < iconv.output_encoding 1004; To use an output encoding conversion, iconv's output handler must be set 1005; otherwise output encoding conversion cannot be performed. 1006;iconv.output_encoding = 1007 1008[intl] 1009;intl.default_locale = 1010; This directive allows you to produce PHP errors when some error 1011; happens within intl functions. The value is the level of the error produced. 1012; Default is 0, which does not produce any errors. 1013;intl.error_level = E_WARNING 1014;intl.use_exceptions = 0 1015 1016[sqlite3] 1017; Directory pointing to SQLite3 extensions 1018; https://php.net/sqlite3.extension-dir 1019;sqlite3.extension_dir = 1020 1021; SQLite defensive mode flag (only available from SQLite 3.26+) 1022; When the defensive flag is enabled, language features that allow ordinary 1023; SQL to deliberately corrupt the database file are disabled. This forbids 1024; writing directly to the schema, shadow tables (eg. FTS data tables), or 1025; the sqlite_dbpage virtual table. 1026; https://www.sqlite.org/c3ref/c_dbconfig_defensive.html 1027; (for older SQLite versions, this flag has no use) 1028;sqlite3.defensive = 1 1029 1030[Pcre] 1031; PCRE library backtracking limit. 1032; https://php.net/pcre.backtrack-limit 1033;pcre.backtrack_limit=100000 1034 1035; PCRE library recursion limit. 1036; Please note that if you set this value to a high number you may consume all 1037; the available process stack and eventually crash PHP (due to reaching the 1038; stack size limit imposed by the Operating System). 1039; https://php.net/pcre.recursion-limit 1040;pcre.recursion_limit=100000 1041 1042; Enables or disables JIT compilation of patterns. This requires the PCRE 1043; library to be compiled with JIT support. 1044;pcre.jit=1 1045 1046[Pdo] 1047; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off" 1048; https://php.net/pdo-odbc.connection-pooling 1049;pdo_odbc.connection_pooling=strict 1050 1051[Pdo_mysql] 1052; Default socket name for local MySQL connects. If empty, uses the built-in 1053; MySQL defaults. 1054pdo_mysql.default_socket= 1055 1056[Phar] 1057; https://php.net/phar.readonly 1058;phar.readonly = On 1059 1060; https://php.net/phar.require-hash 1061;phar.require_hash = On 1062 1063;phar.cache_list = 1064 1065[mail function] 1066; For Win32 only. 1067; https://php.net/smtp 1068SMTP = localhost 1069; https://php.net/smtp-port 1070smtp_port = 25 1071 1072; For Win32 only. 1073; https://php.net/sendmail-from 1074;sendmail_from = me@example.com 1075 1076; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). 1077; https://php.net/sendmail-path 1078;sendmail_path = 1079 1080; Force the addition of the specified parameters to be passed as extra parameters 1081; to the sendmail binary. These parameters will always replace the value of 1082; the 5th parameter to mail(). 1083;mail.force_extra_parameters = 1084 1085; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename 1086mail.add_x_header = Off 1087 1088; Use mixed LF and CRLF line separators to keep compatibility with some 1089; RFC 2822 non conformant MTA. 1090mail.mixed_lf_and_crlf = Off 1091 1092; The path to a log file that will log all mail() calls. Log entries include 1093; the full path of the script, line number, To address and headers. 1094;mail.log = 1095; Log mail to syslog (Event Log on Windows). 1096;mail.log = syslog 1097 1098[ODBC] 1099; https://php.net/odbc.default-db 1100;odbc.default_db = Not yet implemented 1101 1102; https://php.net/odbc.default-user 1103;odbc.default_user = Not yet implemented 1104 1105; https://php.net/odbc.default-pw 1106;odbc.default_pw = Not yet implemented 1107 1108; Controls the ODBC cursor model. 1109; Default: SQL_CURSOR_STATIC (default). 1110;odbc.default_cursortype 1111 1112; Allow or prevent persistent links. 1113; https://php.net/odbc.allow-persistent 1114odbc.allow_persistent = On 1115 1116; Check that a connection is still valid before reuse. 1117; https://php.net/odbc.check-persistent 1118odbc.check_persistent = On 1119 1120; Maximum number of persistent links. -1 means no limit. 1121; https://php.net/odbc.max-persistent 1122odbc.max_persistent = -1 1123 1124; Maximum number of links (persistent + non-persistent). -1 means no limit. 1125; https://php.net/odbc.max-links 1126odbc.max_links = -1 1127 1128; Handling of LONG fields. Returns number of bytes to variables. 0 means 1129; passthru. 1130; https://php.net/odbc.defaultlrl 1131odbc.defaultlrl = 4096 1132 1133; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char. 1134; See the documentation on odbc_binmode and odbc_longreadlen for an explanation 1135; of odbc.defaultlrl and odbc.defaultbinmode 1136; https://php.net/odbc.defaultbinmode 1137odbc.defaultbinmode = 1 1138 1139[MySQLi] 1140 1141; Maximum number of persistent links. -1 means no limit. 1142; https://php.net/mysqli.max-persistent 1143mysqli.max_persistent = -1 1144 1145; Allow accessing, from PHP's perspective, local files with LOAD DATA statements 1146; https://php.net/mysqli.allow_local_infile 1147;mysqli.allow_local_infile = On 1148 1149; It allows the user to specify a folder where files that can be sent via LOAD DATA 1150; LOCAL can exist. It is ignored if mysqli.allow_local_infile is enabled. 1151;mysqli.local_infile_directory = 1152 1153; Allow or prevent persistent links. 1154; https://php.net/mysqli.allow-persistent 1155mysqli.allow_persistent = On 1156 1157; Maximum number of links. -1 means no limit. 1158; https://php.net/mysqli.max-links 1159mysqli.max_links = -1 1160 1161; Default port number for mysqli_connect(). 1162; https://php.net/mysqli.default-port 1163mysqli.default_port = 3306 1164 1165; Default socket name for local MySQL connects. If empty, uses the built-in 1166; MySQL defaults. 1167; https://php.net/mysqli.default-socket 1168mysqli.default_socket = 1169 1170; Default host for mysqli_connect(). 1171; https://php.net/mysqli.default-host 1172mysqli.default_host = 1173 1174; Default user for mysqli_connect(). 1175; https://php.net/mysqli.default-user 1176mysqli.default_user = 1177 1178; Default password for mysqli_connect(). 1179; Note that this is generally a *bad* idea to store passwords in this file. 1180; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw") 1181; and reveal this password! And of course, any users with read access to this 1182; file will be able to reveal the password as well. 1183; https://php.net/mysqli.default-pw 1184mysqli.default_pw = 1185 1186; If this option is enabled, closing a persistent connection will rollback 1187; any pending transactions of this connection, before it is put back 1188; into the persistent connection pool. 1189;mysqli.rollback_on_cached_plink = Off 1190 1191[mysqlnd] 1192; Enable / Disable collection of general statistics by mysqlnd which can be 1193; used to tune and monitor MySQL operations. 1194mysqlnd.collect_statistics = On 1195 1196; Enable / Disable collection of memory usage statistics by mysqlnd which can be 1197; used to tune and monitor MySQL operations. 1198; Default Value: Off 1199; Development Value: On 1200; Production Value: Off 1201mysqlnd.collect_memory_statistics = On 1202 1203; Records communication from all extensions using mysqlnd to the specified log 1204; file. 1205; https://php.net/mysqlnd.debug 1206;mysqlnd.debug = 1207 1208; Defines which queries will be logged. 1209;mysqlnd.log_mask = 0 1210 1211; Default size of the mysqlnd memory pool, which is used by result sets. 1212;mysqlnd.mempool_default_size = 16000 1213 1214; Size of a pre-allocated buffer used when sending commands to MySQL in bytes. 1215;mysqlnd.net_cmd_buffer_size = 2048 1216 1217; Size of a pre-allocated buffer used for reading data sent by the server in 1218; bytes. 1219;mysqlnd.net_read_buffer_size = 32768 1220 1221; Timeout for network requests in seconds. 1222;mysqlnd.net_read_timeout = 31536000 1223 1224; SHA-256 Authentication Plugin related. File with the MySQL server public RSA 1225; key. 1226;mysqlnd.sha256_server_public_key = 1227 1228[PostgreSQL] 1229; Allow or prevent persistent links. 1230; https://php.net/pgsql.allow-persistent 1231pgsql.allow_persistent = On 1232 1233; Detect broken persistent links always with pg_pconnect(). 1234; Auto reset feature requires a little overheads. 1235; https://php.net/pgsql.auto-reset-persistent 1236pgsql.auto_reset_persistent = Off 1237 1238; Maximum number of persistent links. -1 means no limit. 1239; https://php.net/pgsql.max-persistent 1240pgsql.max_persistent = -1 1241 1242; Maximum number of links (persistent+non persistent). -1 means no limit. 1243; https://php.net/pgsql.max-links 1244pgsql.max_links = -1 1245 1246; Ignore PostgreSQL backends Notice message or not. 1247; Notice message logging require a little overheads. 1248; https://php.net/pgsql.ignore-notice 1249pgsql.ignore_notice = 0 1250 1251; Log PostgreSQL backends Notice message or not. 1252; Unless pgsql.ignore_notice=0, module cannot log notice message. 1253; https://php.net/pgsql.log-notice 1254pgsql.log_notice = 0 1255 1256[bcmath] 1257; Number of decimal digits for all bcmath functions. 1258; https://php.net/bcmath.scale 1259bcmath.scale = 0 1260 1261[browscap] 1262; https://php.net/browscap 1263;browscap = extra/browscap.ini 1264 1265[Session] 1266; Handler used to store/retrieve data. 1267; https://php.net/session.save-handler 1268session.save_handler = files 1269 1270; Argument passed to save_handler. In the case of files, this is the path 1271; where data files are stored. Note: Windows users have to change this 1272; variable in order to use PHP's session functions. 1273; 1274; The path can be defined as: 1275; 1276; session.save_path = "N;/path" 1277; 1278; where N is an integer. Instead of storing all the session files in 1279; /path, what this will do is use subdirectories N-levels deep, and 1280; store the session data in those directories. This is useful if 1281; your OS has problems with many files in one directory, and is 1282; a more efficient layout for servers that handle many sessions. 1283; 1284; NOTE 1: PHP will not create this directory structure automatically. 1285; You can use the script in the ext/session dir for that purpose. 1286; NOTE 2: See the section on garbage collection below if you choose to 1287; use subdirectories for session storage 1288; 1289; The file storage module creates files using mode 600 by default. 1290; You can change that by using 1291; 1292; session.save_path = "N;MODE;/path" 1293; 1294; where MODE is the octal representation of the mode. Note that this 1295; does not overwrite the process's umask. 1296; https://php.net/session.save-path 1297;session.save_path = "/tmp" 1298 1299; Whether to use strict session mode. 1300; Strict session mode does not accept an uninitialized session ID, and 1301; regenerates the session ID if the browser sends an uninitialized session ID. 1302; Strict mode protects applications from session fixation via a session adoption 1303; vulnerability. It is disabled by default for maximum compatibility, but 1304; enabling it is encouraged. 1305; https://wiki.php.net/rfc/strict_sessions 1306session.use_strict_mode = 0 1307 1308; Whether to use cookies. 1309; https://php.net/session.use-cookies 1310session.use_cookies = 1 1311 1312; https://php.net/session.cookie-secure 1313;session.cookie_secure = 1314 1315; This option forces PHP to fetch and use a cookie for storing and maintaining 1316; the session id. We encourage this operation as it's very helpful in combating 1317; session hijacking when not specifying and managing your own session id. It is 1318; not the be-all and end-all of session hijacking defense, but it's a good start. 1319; https://php.net/session.use-only-cookies 1320session.use_only_cookies = 1 1321 1322; Name of the session (used as cookie name). 1323; https://php.net/session.name 1324session.name = PHPSESSID 1325 1326; Initialize session on request startup. 1327; https://php.net/session.auto-start 1328session.auto_start = 0 1329 1330; Lifetime in seconds of cookie or, if 0, until browser is restarted. 1331; https://php.net/session.cookie-lifetime 1332session.cookie_lifetime = 0 1333 1334; The path for which the cookie is valid. 1335; https://php.net/session.cookie-path 1336session.cookie_path = / 1337 1338; The domain for which the cookie is valid. 1339; https://php.net/session.cookie-domain 1340session.cookie_domain = 1341 1342; Whether or not to add the httpOnly flag to the cookie, which makes it 1343; inaccessible to browser scripting languages such as JavaScript. 1344; https://php.net/session.cookie-httponly 1345session.cookie_httponly = 1346 1347; Add SameSite attribute to cookie to help mitigate Cross-Site Request Forgery (CSRF/XSRF) 1348; Current valid values are "Strict", "Lax" or "None". When using "None", 1349; make sure to include the quotes, as `none` is interpreted like `false` in ini files. 1350; https://tools.ietf.org/html/draft-west-first-party-cookies-07 1351session.cookie_samesite = 1352 1353; Handler used to serialize data. php is the standard serializer of PHP. 1354; https://php.net/session.serialize-handler 1355session.serialize_handler = php 1356 1357; Defines the probability that the 'garbage collection' process is started on every 1358; session initialization. The probability is calculated by using gc_probability/gc_divisor, 1359; e.g. 1/100 means there is a 1% chance that the GC process starts on each request. 1360; Default Value: 1 1361; Development Value: 1 1362; Production Value: 1 1363; https://php.net/session.gc-probability 1364session.gc_probability = 1 1365 1366; Defines the probability that the 'garbage collection' process is started on every 1367; session initialization. The probability is calculated by using gc_probability/gc_divisor, 1368; e.g. 1/100 means there is a 1% chance that the GC process starts on each request. 1369; For high volume production servers, using a value of 1000 is a more efficient approach. 1370; Default Value: 100 1371; Development Value: 1000 1372; Production Value: 1000 1373; https://php.net/session.gc-divisor 1374session.gc_divisor = 1000 1375 1376; After this number of seconds, stored data will be seen as 'garbage' and 1377; cleaned up by the garbage collection process. 1378; https://php.net/session.gc-maxlifetime 1379session.gc_maxlifetime = 1440 1380 1381; NOTE: If you are using the subdirectory option for storing session files 1382; (see session.save_path above), then garbage collection does *not* 1383; happen automatically. You will need to do your own garbage 1384; collection through a shell script, cron entry, or some other method. 1385; For example, the following script is the equivalent of setting 1386; session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes): 1387; find /path/to/sessions -cmin +24 -type f | xargs rm 1388 1389; Check HTTP Referer to invalidate externally stored URLs containing ids. 1390; HTTP_REFERER has to contain this substring for the session to be 1391; considered as valid. 1392; https://php.net/session.referer-check 1393session.referer_check = 1394 1395; Set to {nocache,private,public,} to determine HTTP caching aspects 1396; or leave this empty to avoid sending anti-caching headers. 1397; https://php.net/session.cache-limiter 1398session.cache_limiter = nocache 1399 1400; Document expires after n minutes. 1401; https://php.net/session.cache-expire 1402session.cache_expire = 180 1403 1404; trans sid support is disabled by default. 1405; Use of trans sid may risk your users' security. 1406; Use this option with caution. 1407; - User may send URL contains active session ID 1408; to other person via. email/irc/etc. 1409; - URL that contains active session ID may be stored 1410; in publicly accessible computer. 1411; - User may access your site with the same session ID 1412; always using URL stored in browser's history or bookmarks. 1413; https://php.net/session.use-trans-sid 1414session.use_trans_sid = 0 1415 1416; The URL rewriter will look for URLs in a defined set of HTML tags. 1417; <form> is special; if you include them here, the rewriter will 1418; add a hidden <input> field with the info which is otherwise appended 1419; to URLs. <form> tag's action attribute URL will not be modified 1420; unless it is specified. 1421; Note that all valid entries require a "=", even if no value follows. 1422; Default Value: "a=href,area=href,frame=src,form=" 1423; Development Value: "a=href,area=href,frame=src,form=" 1424; Production Value: "a=href,area=href,frame=src,form=" 1425; https://php.net/url-rewriter.tags 1426session.trans_sid_tags = "a=href,area=href,frame=src,form=" 1427 1428; URL rewriter does not rewrite absolute URLs by default. 1429; To enable rewrites for absolute paths, target hosts must be specified 1430; at RUNTIME. i.e. use ini_set() 1431; <form> tags is special. PHP will check action attribute's URL regardless 1432; of session.trans_sid_tags setting. 1433; If no host is defined, HTTP_HOST will be used for allowed host. 1434; Example value: php.net,www.php.net,wiki.php.net 1435; Use "," for multiple hosts. No spaces are allowed. 1436; Default Value: "" 1437; Development Value: "" 1438; Production Value: "" 1439;session.trans_sid_hosts="" 1440 1441; Enable upload progress tracking in $_SESSION 1442; Default Value: On 1443; Development Value: On 1444; Production Value: On 1445; https://php.net/session.upload-progress.enabled 1446;session.upload_progress.enabled = On 1447 1448; Cleanup the progress information as soon as all POST data has been read 1449; (i.e. upload completed). 1450; Default Value: On 1451; Development Value: On 1452; Production Value: On 1453; https://php.net/session.upload-progress.cleanup 1454;session.upload_progress.cleanup = On 1455 1456; A prefix used for the upload progress key in $_SESSION 1457; Default Value: "upload_progress_" 1458; Development Value: "upload_progress_" 1459; Production Value: "upload_progress_" 1460; https://php.net/session.upload-progress.prefix 1461;session.upload_progress.prefix = "upload_progress_" 1462 1463; The index name (concatenated with the prefix) in $_SESSION 1464; containing the upload progress information 1465; Default Value: "PHP_SESSION_UPLOAD_PROGRESS" 1466; Development Value: "PHP_SESSION_UPLOAD_PROGRESS" 1467; Production Value: "PHP_SESSION_UPLOAD_PROGRESS" 1468; https://php.net/session.upload-progress.name 1469;session.upload_progress.name = "PHP_SESSION_UPLOAD_PROGRESS" 1470 1471; How frequently the upload progress should be updated. 1472; Given either in percentages (per-file), or in bytes 1473; Default Value: "1%" 1474; Development Value: "1%" 1475; Production Value: "1%" 1476; https://php.net/session.upload-progress.freq 1477;session.upload_progress.freq = "1%" 1478 1479; The minimum delay between updates, in seconds 1480; Default Value: 1 1481; Development Value: 1 1482; Production Value: 1 1483; https://php.net/session.upload-progress.min-freq 1484;session.upload_progress.min_freq = "1" 1485 1486; Only write session data when session data is changed. Enabled by default. 1487; https://php.net/session.lazy-write 1488;session.lazy_write = On 1489 1490[Assertion] 1491; Switch whether to compile assertions at all (to have no overhead at run-time) 1492; -1: Do not compile at all 1493; 0: Jump over assertion at run-time 1494; 1: Execute assertions 1495; Changing from or to a negative value is only possible in php.ini! 1496; (For turning assertions on and off at run-time, toggle zend.assertions between the values 1 and 0) 1497; Default Value: 1 1498; Development Value: 1 1499; Production Value: -1 1500; https://php.net/zend.assertions 1501zend.assertions = 1 1502 1503[COM] 1504; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs 1505; https://php.net/com.typelib-file 1506;com.typelib_file = 1507 1508; allow Distributed-COM calls 1509; https://php.net/com.allow-dcom 1510;com.allow_dcom = true 1511 1512; autoregister constants of a component's typelib on com_load() 1513; https://php.net/com.autoregister-typelib 1514;com.autoregister_typelib = true 1515 1516; register constants casesensitive 1517; https://php.net/com.autoregister-casesensitive 1518;com.autoregister_casesensitive = false 1519 1520; show warnings on duplicate constant registrations 1521; https://php.net/com.autoregister-verbose 1522;com.autoregister_verbose = true 1523 1524; The default character set code-page to use when passing strings to and from COM objects. 1525; Default: system ANSI code page 1526;com.code_page= 1527 1528; The version of the .NET framework to use. The value of the setting are the first three parts 1529; of the framework's version number, separated by dots, and prefixed with "v", e.g. "v4.0.30319". 1530;com.dotnet_version= 1531 1532[mbstring] 1533; language for internal character representation. 1534; This affects mb_send_mail() and mbstring.detect_order. 1535; https://php.net/mbstring.language 1536;mbstring.language = Japanese 1537 1538; Use of this INI entry is deprecated, use global internal_encoding instead. 1539; internal/script encoding. 1540; Some encoding cannot work as internal encoding. (e.g. SJIS, BIG5, ISO-2022-*) 1541; If empty, default_charset or internal_encoding or iconv.internal_encoding is used. 1542; The precedence is: default_charset < internal_encoding < iconv.internal_encoding 1543;mbstring.internal_encoding = 1544 1545; Use of this INI entry is deprecated, use global input_encoding instead. 1546; http input encoding. 1547; mbstring.encoding_translation = On is needed to use this setting. 1548; If empty, default_charset or input_encoding or mbstring.input is used. 1549; The precedence is: default_charset < input_encoding < mbstring.http_input 1550; https://php.net/mbstring.http-input 1551;mbstring.http_input = 1552 1553; Use of this INI entry is deprecated, use global output_encoding instead. 1554; http output encoding. 1555; mb_output_handler must be registered as output buffer to function. 1556; If empty, default_charset or output_encoding or mbstring.http_output is used. 1557; The precedence is: default_charset < output_encoding < mbstring.http_output 1558; To use an output encoding conversion, mbstring's output handler must be set 1559; otherwise output encoding conversion cannot be performed. 1560; https://php.net/mbstring.http-output 1561;mbstring.http_output = 1562 1563; enable automatic encoding translation according to 1564; mbstring.internal_encoding setting. Input chars are 1565; converted to internal encoding by setting this to On. 1566; Note: Do _not_ use automatic encoding translation for 1567; portable libs/applications. 1568; https://php.net/mbstring.encoding-translation 1569;mbstring.encoding_translation = Off 1570 1571; automatic encoding detection order. 1572; "auto" detect order is changed according to mbstring.language 1573; https://php.net/mbstring.detect-order 1574;mbstring.detect_order = auto 1575 1576; substitute_character used when character cannot be converted 1577; one from another 1578; https://php.net/mbstring.substitute-character 1579;mbstring.substitute_character = none 1580 1581; Enable strict encoding detection. 1582;mbstring.strict_detection = Off 1583 1584; This directive specifies the regex pattern of content types for which mb_output_handler() 1585; is activated. 1586; Default: mbstring.http_output_conv_mimetypes=^(text/|application/xhtml\+xml) 1587;mbstring.http_output_conv_mimetypes= 1588 1589; This directive specifies maximum stack depth for mbstring regular expressions. It is similar 1590; to the pcre.recursion_limit for PCRE. 1591;mbstring.regex_stack_limit=100000 1592 1593; This directive specifies maximum retry count for mbstring regular expressions. It is similar 1594; to the pcre.backtrack_limit for PCRE. 1595;mbstring.regex_retry_limit=1000000 1596 1597[gd] 1598; Tell the jpeg decode to ignore warnings and try to create 1599; a gd image. The warning will then be displayed as notices 1600; disabled by default 1601; https://php.net/gd.jpeg-ignore-warning 1602;gd.jpeg_ignore_warning = 1 1603 1604[exif] 1605; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS. 1606; With mbstring support this will automatically be converted into the encoding 1607; given by corresponding encode setting. When empty mbstring.internal_encoding 1608; is used. For the decode settings you can distinguish between motorola and 1609; intel byte order. A decode setting must not be empty. 1610; https://php.net/exif.encode-unicode 1611;exif.encode_unicode = ISO-8859-15 1612 1613; https://php.net/exif.decode-unicode-motorola 1614;exif.decode_unicode_motorola = UCS-2BE 1615 1616; https://php.net/exif.decode-unicode-intel 1617;exif.decode_unicode_intel = UCS-2LE 1618 1619; https://php.net/exif.encode-jis 1620;exif.encode_jis = 1621 1622; https://php.net/exif.decode-jis-motorola 1623;exif.decode_jis_motorola = JIS 1624 1625; https://php.net/exif.decode-jis-intel 1626;exif.decode_jis_intel = JIS 1627 1628[Tidy] 1629; The path to a default tidy configuration file to use when using tidy 1630; https://php.net/tidy.default-config 1631;tidy.default_config = /usr/local/lib/php/default.tcfg 1632 1633; Should tidy clean and repair output automatically? 1634; WARNING: Do not use this option if you are generating non-html content 1635; such as dynamic images 1636; https://php.net/tidy.clean-output 1637tidy.clean_output = Off 1638 1639[soap] 1640; Enables or disables WSDL caching feature. 1641; https://php.net/soap.wsdl-cache-enabled 1642soap.wsdl_cache_enabled=1 1643 1644; Sets the directory name where SOAP extension will put cache files. 1645; https://php.net/soap.wsdl-cache-dir 1646soap.wsdl_cache_dir="/tmp" 1647 1648; (time to live) Sets the number of second while cached file will be used 1649; instead of original one. 1650; https://php.net/soap.wsdl-cache-ttl 1651soap.wsdl_cache_ttl=86400 1652 1653; Sets the size of the cache limit. (Max. number of WSDL files to cache) 1654soap.wsdl_cache_limit = 5 1655 1656[sysvshm] 1657; A default size of the shared memory segment 1658;sysvshm.init_mem = 10000 1659 1660[ldap] 1661; Sets the maximum number of open links or -1 for unlimited. 1662ldap.max_links = -1 1663 1664[dba] 1665;dba.default_handler= 1666 1667[opcache] 1668; Determines if Zend OPCache is enabled 1669;opcache.enable=1 1670 1671; Determines if Zend OPCache is enabled for the CLI version of PHP 1672;opcache.enable_cli=0 1673 1674; The OPcache shared memory storage size. 1675;opcache.memory_consumption=128 1676 1677; The amount of memory for interned strings in Mbytes. 1678;opcache.interned_strings_buffer=8 1679 1680; The maximum number of keys (scripts) in the OPcache hash table. 1681; Only numbers between 200 and 1000000 are allowed. 1682;opcache.max_accelerated_files=10000 1683 1684; The maximum percentage of "wasted" memory until a restart is scheduled. 1685;opcache.max_wasted_percentage=5 1686 1687; When this directive is enabled, the OPcache appends the current working 1688; directory to the script key, thus eliminating possible collisions between 1689; files with the same name (basename). Disabling the directive improves 1690; performance, but may break existing applications. 1691;opcache.use_cwd=1 1692 1693; When disabled, you must reset the OPcache manually or restart the 1694; webserver for changes to the filesystem to take effect. 1695;opcache.validate_timestamps=1 1696 1697; How often (in seconds) to check file timestamps for changes to the shared 1698; memory storage allocation. ("1" means validate once per second, but only 1699; once per request. "0" means always validate) 1700;opcache.revalidate_freq=2 1701 1702; Enables or disables file search in include_path optimization 1703;opcache.revalidate_path=0 1704 1705; If disabled, all PHPDoc comments are dropped from the code to reduce the 1706; size of the optimized code. 1707;opcache.save_comments=1 1708 1709; If enabled, compilation warnings (including notices and deprecations) will 1710; be recorded and replayed each time a file is included. Otherwise, compilation 1711; warnings will only be emitted when the file is first cached. 1712;opcache.record_warnings=0 1713 1714; Allow file existence override (file_exists, etc.) performance feature. 1715;opcache.enable_file_override=0 1716 1717; A bitmask, where each bit enables or disables the appropriate OPcache 1718; passes 1719;opcache.optimization_level=0x7FFFBFFF 1720 1721;opcache.dups_fix=0 1722 1723; The location of the OPcache blacklist file (wildcards allowed). 1724; Each OPcache blacklist file is a text file that holds the names of files 1725; that should not be accelerated. The file format is to add each filename 1726; to a new line. The filename may be a full path or just a file prefix 1727; (i.e., /var/www/x blacklists all the files and directories in /var/www 1728; that start with 'x'). Line starting with a ; are ignored (comments). 1729;opcache.blacklist_filename= 1730 1731; Allows exclusion of large files from being cached. By default all files 1732; are cached. 1733;opcache.max_file_size=0 1734 1735; How long to wait (in seconds) for a scheduled restart to begin if the cache 1736; is not being accessed. 1737;opcache.force_restart_timeout=180 1738 1739; OPcache error_log file name. Empty string assumes "stderr". 1740;opcache.error_log= 1741 1742; All OPcache errors go to the Web server log. 1743; By default, only fatal errors (level 0) or errors (level 1) are logged. 1744; You can also enable warnings (level 2), info messages (level 3) or 1745; debug messages (level 4). 1746;opcache.log_verbosity_level=1 1747 1748; Preferred Shared Memory back-end. Leave empty and let the system decide. 1749;opcache.preferred_memory_model= 1750 1751; Protect the shared memory from unexpected writing during script execution. 1752; Useful for internal debugging only. 1753;opcache.protect_memory=0 1754 1755; Allows calling OPcache API functions only from PHP scripts which path is 1756; started from specified string. The default "" means no restriction 1757;opcache.restrict_api= 1758 1759; Mapping base of shared memory segments (for Windows only). All the PHP 1760; processes have to map shared memory into the same address space. This 1761; directive allows to manually fix the "Unable to reattach to base address" 1762; errors. 1763;opcache.mmap_base= 1764 1765; Facilitates multiple OPcache instances per user (for Windows only). All PHP 1766; processes with the same cache ID and user share an OPcache instance. 1767;opcache.cache_id= 1768 1769; Enables and sets the second level cache directory. 1770; It should improve performance when SHM memory is full, at server restart or 1771; SHM reset. The default "" disables file based caching. 1772;opcache.file_cache= 1773 1774; Enables or disables read-only mode for the second level cache directory. 1775; It should improve performance for read-only containers, 1776; when the cache is pre-warmed and packaged alongside the application. 1777; Best used with `opcache.validate_timestamps=0`, `opcache.enable_file_override=1` 1778; and `opcache.file_cache_consistency_checks=0`. 1779; Note: A cache generated with a different build of PHP, a different file path, 1780; or different settings (including which extensions are loaded), may be ignored. 1781;opcache.file_cache_read_only=0 1782 1783; Enables or disables opcode caching in shared memory. 1784;opcache.file_cache_only=0 1785 1786; Enables or disables checksum validation when script loaded from file cache. 1787;opcache.file_cache_consistency_checks=1 1788 1789; Implies opcache.file_cache_only=1 for a certain process that failed to 1790; reattach to the shared memory (for Windows only). Explicitly enabled file 1791; cache is required. 1792;opcache.file_cache_fallback=1 1793 1794; Enables or disables copying of PHP code (text segment) into HUGE PAGES. 1795; Under certain circumstances (if only a single global PHP process is 1796; started from which all others fork), this can increase performance 1797; by a tiny amount because TLB misses are reduced. On the other hand, this 1798; delays PHP startup, increases memory usage and degrades performance 1799; under memory pressure - use with care. 1800; Requires appropriate OS configuration. 1801;opcache.huge_code_pages=0 1802 1803; Validate cached file permissions. 1804;opcache.validate_permission=0 1805 1806; Prevent name collisions in chroot'ed environment. 1807;opcache.validate_root=0 1808 1809; If specified, it produces opcode dumps for debugging different stages of 1810; optimizations. 1811;opcache.opt_debug_level=0 1812 1813; Specifies a PHP script that is going to be compiled and executed at server 1814; start-up. 1815; https://php.net/opcache.preload 1816;opcache.preload= 1817 1818; Preloading code as root is not allowed for security reasons. This directive 1819; facilitates to let the preloading to be run as another user. 1820; https://php.net/opcache.preload_user 1821;opcache.preload_user= 1822 1823; Prevents caching files that are less than this number of seconds old. It 1824; protects from caching of incompletely updated files. In case all file updates 1825; on your site are atomic, you may increase performance by setting it to "0". 1826;opcache.file_update_protection=2 1827 1828; Absolute path used to store shared lockfiles (for *nix only). 1829;opcache.lockfile_path=/tmp 1830 1831[curl] 1832; A default value for the CURLOPT_CAINFO option. This is required to be an 1833; absolute path. 1834;curl.cainfo = 1835 1836[openssl] 1837; The location of a Certificate Authority (CA) file on the local filesystem 1838; to use when verifying the identity of SSL/TLS peers. Most users should 1839; not specify a value for this directive as PHP will attempt to use the 1840; OS-managed cert stores in its absence. If specified, this value may still 1841; be overridden on a per-stream basis via the "cafile" SSL stream context 1842; option. 1843;openssl.cafile= 1844 1845; If openssl.cafile is not specified or if the CA file is not found, the 1846; directory pointed to by openssl.capath is searched for a suitable 1847; certificate. This value must be a correctly hashed certificate directory. 1848; Most users should not specify a value for this directive as PHP will 1849; attempt to use the OS-managed cert stores in its absence. If specified, 1850; this value may still be overridden on a per-stream basis via the "capath" 1851; SSL stream context option. 1852;openssl.capath= 1853 1854[ffi] 1855; FFI API restriction. Possible values: 1856; "preload" - enabled in CLI scripts and preloaded files (default) 1857; "false" - always disabled 1858; "true" - always enabled 1859;ffi.enable=preload 1860 1861; List of headers files to preload, wildcard patterns allowed. 1862;ffi.preload= 1863