Initializationfailure php-52 Phpini Chinese version of the configuration instructions 1th/3 page

Source: Internet
Author: User
Tags bitwise operators parse error syslog
;;;;;;;;;;;;
;; grammar;;
; The syntax of the file is very simple. whitespace characters and lines beginning with semicolons are simply ignored.
; Chapter headings (For example: [PHP]) are also simply ignored, even though they may have some meaning in the future.
; The format of the instruction is as follows:
; directive = value
; The instruction name (Directive) is case-sensitive! So "Foo=bar" is different from "Foo=bar".
; Value can be:
; 1. Strings defined in quotation marks (e.g. "foo")
; 2. A number (integer or floating point, such as: 0, 1, 34,-1, 33.55)
; 3. A PHP constant (for example: E_all, M_PI)
; 4. One INI constant (on, Off, none)
; 5. An expression (for example: E_all & ~e_notice)
; INI file uses only: bitwise operators, logical non, parentheses:
; | Bit or
; & Bit and
; ~ Bit non-
; ! Logical Non-
; The Boolean flag is opened with on, and off.
; An empty string can be used after the equal sign to not write anything, or with the None keyword:
; Foo =; Set Foo to an empty string
; foo = none; Set Foo to an empty string
; Foo = "None"; Set Foo to string ' None '
; If you use constants in the instruction value in the dynamic extension (PHP extension or zend extension),
; Then you can only use these constants after loading these dynamically extended command lines.
;; httpd.conf;;
; You can also override the value of php.ini in httpd.conf for more flexible configuration:
; Php_value name value; set non-bool directives, set value to None to clear previous settings
; Php_flag name On|off; only instructions for setting the bool type
; PHP constants (such as E_all) can only be used in php.ini, and the corresponding mask values must be used in httpd.conf.
; Instructions with the "SYS" flag can only be used in the Global configuration section of httpd.conf.
; [Updated on 2007-4-9, added more information about PHP6, and revised and added some information based on PHP-5.2.2]
;=============================================
;; ========== Configuration Instruction Detailed ===========================
;=============================================
; The set values for each of the following directives are the same as the default values built into the PHP-5.2.2.
; That is, if ' php.ini ' does not exist, or if you delete some rows, the default value is the same.
;;;;;;;;;;;;;;
;; Apache;;
[Apache]
; Only valid when PHP is used as an Apache module.
Child_terminate = Off
; Whether the PHP script allows the apache_child_terminate () function to terminate the child process after the request has ended.
; This directive is available only on UNIX platforms where PHP is installed as a Apache1.3 module. No other circumstances exist.
Engine = On
; Whether to enable the PHP parsing engine.
; Tip: You can open or close the PHP parsing engine in httpd.conf based on a directory or a virtual host.
Last_modified = Off
; Whether to place the last modified time of the PHP script in the last-modified answer header.
Xbithack = Off
; Regardless of the end of the file, it is parsed as a PHP executable bit group.
;; PHP core;;
[Php-core-datetime]
; The first four configuration options are currently available only for the date_sunrise () and Date_sunset () functions.
Date.default_latitude = 31.7667
; Default Latitude
Date.default_longitude = 35.2333
; Default longitude
Date.sunrise_zenith = 90.583333
; Default Sunrise Zenith
Date.sunset_zenith = 90.583333
; Default Sunset Zenith
Date.timezone =
; The default time zone used for all date and time functions when the TZ environment variable is not set.
; Mainland China should use "PRC"
; The order of precedence for the application time zone is:
; 1. Time zone set with the Date_default_timezone_set () function (if set)
; 2. TZ environment variable (if not empty)
; 3. The value of the directive (if set)
; 4. PHP Self-speculation (if operating system support)
; 5. If none of the above is successful, use UTC
[Php-core-assert]
Assert.active = On
; Whether to enable assert () assertion evaluation
Assert.bail = Off
; Whether to abort the execution of the script when a failure assertion occurs
Assert.callback =
; callback function to execute when failure assertion occurs
Assert.quiet_eval = Off
; Whether to use quiet evaluation (no error message is displayed, equivalent to error_reporting=0).
; If off, the current error_reporting instruction value is used when evaluating an assertion expression.
Assert.warning = On
; Whether to warn each failed assertion
[Php-core-safemode]
; Security mode is created to address the security issues of shared servers.
; But trying to solve this problem in the PHP layer is structurally unreasonable,
; The correct approach should be to modify the Web server layer and the operating system layer.
; As a result, safe mode is abolished in PHP6 and Open_basedir-based security protection is used.
; This part of the instruction has all been removed in PHP6.
Safe_mode = Off
; SYS
; Whether Safe mode is enabled.
; When opened, PHP will check to see if the owner of the current script is the same as the owner of the file being manipulated.
; The same allows the operation, and the operation is rejected differently.
Safe_mode_gid = Off
; SYS
; In Safe mode, the UID comparison check is done by default when accessing files.
; In some cases, however, a strict UID check is not appropriate, and a loose GID check is sufficient.
; If you want to loosen it up to only GID comparisons, you can open this parameter.
Safe_mode_allowed_env_vars = "Php_"
; SYS
; In safe mode, the user can only change the prefix list of environment variables (comma delimited).
; Allowing users to set certain environment variables can lead to potential security vulnerabilities.
; Note: If this parameter value is NULL, PHP will allow the user to change any environment variable!
Safe_mode_protected_env_vars = "Ld_library_path"
; SYS
; In safe mode, the user cannot change the list of environment variables (comma delimited).
; These variables will be protected even if the safe_mode_allowed_env_vars instruction is set to allow.
Safe_mode_exec_dir = "/usr/local/php/bin"
; SYS
; In safe mode, only executable programs in this directory allow functions executed by system programs to execute.
; These functions are: System, Escapeshellarg, Escapeshellcmd, exec, PassThru,
; Proc_close, Proc_get_status, Proc_nice, Proc_open, Proc_terminate, shell_exec
Safe_mode_include_dir =
; SYS
; In Safe mode, the Uid/gid check is skipped when the files under this group directory and its subdirectories are included.
; In other words, if the value here is empty, any files that are not compliant with the Uid/gid are not allowed to be included.
; The directory set here must already exist in the Include_path directive or be included with the full path.
; Multiple directories are separated by a colon (win under a semicolon).
; The specified limit is actually a prefix, not a directory name,
; That means "/DIR/INCL" will allow access to "/dir/include" and "/dir/incls"
; If you want to control access to a specified directory, add a slash at the end.
[Php-core-safe]
Allow_url_fopen = On
; SYS
; Whether to allow remote files to open
Allow_url_include = Off
; SYS
; Whether to allow Include/require remote files.
Disable_classes =
; SYS
; The directive accepts a comma-delimited list of class names to disable a particular class.
Disable_functions =
; SYS
; The directive accepts a comma-delimited list of function names to disable a specific function.
ENABLE_DL = On
; SYS
; Whether to allow the use of the DL () function. The DL () function is only valid if PHP is installed as an Apache module.
; Disabling the DL () function is primarily for security reasons because it bypasses the limits of the OPEN_BASEDIR directive.
; The DL () function is always disabled in safe mode, regardless of how it is set here.
; The directive was removed in the PHP6, which is equivalent to set to OFF.
expose_php = On
; SYS
; Whether to expose the fact that PHP is installed on the server (plus its signature in the HTTP header).
; It does not have a direct security threat, but it makes the client aware that PHP is installed on the server.
Open_basedir =
; SYS
; Restrict all files (including the file itself) that PHP allows to operate under this Group directory list.
; When a script tries to open a file other than the one specified in the directory tree, it is rejected.
; All symbolic connections are parsed, so it is not possible to circumvent this restriction by symbolic connections.
; Special value '. ' Specifies that the directory where the script is stored will be treated as a base directory.
; But this is a bit risky because the working directory of the script can easily be changed by ChDir ().
; For shared servers, it can be very useful to set the directive flexibly in httpd.conf.
; A semicolon-delimited directory in Windows, separated by colons in a UNIX system.
; As an Apache module, the Open_basedir path in the parent directory is automatically inherited.
; The specified limit is actually a prefix, not a directory name,
; That means "/DIR/INCL" will allow access to "/dir/include" and "/dir/incls",
; If you want to control access to a specified directory, add a slash at the end.
; By default, all files are allowed to open.
Sql.safe_mode = Off
; SYS
; Whether to use SQL security mode.
; If you open, the database connection function that specifies the default value will use these default values instead of the supported parameters.
; For each connection function for a different database, refer to the corresponding manual page for the default values.
[Php-core-error]
error_reporting = E_all & ~e_notice
; Error reporting level is an overlay of bit fields, it is recommended to use E_all | E_strict
; 1 E_error Fatal Run-time error
; 2 e_warning Runtime Warning (non-fatal error)
; 4 E_parse Compile-time parse error
; 8 E_notice Runtime Reminders (often bugs, may also be intentional)
; E_core_error PHP startup fatal error during initialization
; e_core_warning PHP Startup warnings during initialization (non-fatal error)
; E_compile_error compile-time fatal error
; E_compile_warning Compile-time warning (non-fatal error)
; E_user_error user-defined fatal error
; E_user_warning user-defined warning (non-fatal error)
; 1024x768 E_user_notice user-defined reminders (often bugs, may also be intentional)
; 2048 E_strict Coding Normalization Warning (recommended how to modify to forward compatible)
; 4096 E_recoverable_error near-fatal run-time error, if not captured, is considered the same as E_error
; 6143 e_all All errors except E_strict (8191 in PHP6, including all)
Track_errors = Off
; Whether to save the most recent error or warning message in the variable $php_errormsg.
Display_errors = On
; Whether to display the error message as part of the output.
; On the final published Web site, it is strongly recommended that you turn off this feature and use the error log instead (see below).
; Opening this feature on the final published Web site may expose some security information,
; For example, the file path, database planning, or other information on your Web service.
Display_startup_errors = Off
; Whether to display PHP startup errors.
; Even if the display_errors instruction is turned on, turning off this parameter will not display PHP startup errors.
; It is recommended that you turn off this feature unless you have to use it for debugging.
Report_memleaks = On
; Whether to report a memory leak. This parameter only works in PHP that is compiled in debug mode,
; and must include e_warning in the error_reporting directive
Report_zend_debug = On
; No description document yet
Html_errors = On
; Whether to use HTML tags in the error message.
; Note: Do not use this feature on published sites!
Docref_root =; " http://localhost/phpmanual/"
Docref_ext =; ". html
; If the html_errors instruction is turned on, PHP will display the hyperlink on the error message.
; Link directly to a page that describes the error or the function that caused the error.
; You can download PHP manuals from http://www.php.net/docs.php,
; and point the docref_root directive to the URL directory where your local manual is located.
; You must also set the DOCREF_EXT directive to specify the file extension (must contain '. ').
; Note: Do not use this feature on published sites.
Error_prepend_string =; ""
; String to output before the error message
Error_append_string =; ""
; String for output after error message
Xmlrpc_errors = Off
; SYS
Xmlrpc_error_number = 0
; No documents yet
[Php-core-logging]
Define_syslog_variables = Off
; Whether to define various system log variables, such as: $LOG _pid, $LOG _cron, and so on.
; A good idea to turn it off to improve efficiency.
; You can call the Define_syslog_variables () function at run time to define these variables.
Error_log =
; The file to which the error log is logged. The file must be writable to the Web server user.
; Syslog indicates logging to the system log (NT event log, syslog under UNIX (3))
; If no value is set here, the error is logged to the Web server's error log.
Log_errors = Off
; Whether the error is logged in the log file, where it is recorded depends on the error_log directive.
; It is strongly recommended that you use logging errors instead of direct output in the final published Web site.
; This allows you to know that there is a problem, and that you do not expose sensitive information.
Log_errors_max_len = 1024
; Sets the maximum length of the error source that is attached in the error log that is associated with the error message.
; The values set here are valid for both displayed and logged errors and $php_errormsg.
; Set to 0 to allow unlimited lengths.
Ignore_repeated_errors = Off
; Whether to ignore duplicate error messages when logging error logs.
; The error message must appear on the same line in the same file before it is considered duplicates.
Ignore_repeated_source = Off
; Whether duplicate error sources are ignored when repeating error messages are ignored.

Current 1/3 page 123 next page

The above describes the Initializationfailure php-52 under the Phpini Chinese version of the configuration instructions 1th/3 page, including the initializationfailure aspects of the content, I hope to be interested in PHP tutorial friends helpful.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.