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