Expert help to see HTTP Error 500 error code 0xc0000005
Environment: Windows 10, iis10, php5.531cnt, and mysql5.7.1
IIS settings:
Added OPcache and Zendloader
PHP testing is normal
An error occurred while running the php source code:
Reply to discussion (solution)
Enable the php error display function
At least you can see something went wrong, not 500.
The program has an error. enable the php error display function.
Add the following code to open the error prompt.
ini_set('display_errors','on');error_reporting(E_ALL);
Thank you for your enthusiastic reply. I am a newbie and I will help you read my php. ini. thank you!
Set display_errors = Off
Error_log = 1.log
I don't know if it is set correctly. why cannot I find the log file?
Unable to upload the file. multipart response code. please take a look.
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php. ini;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php. ini, is responsible
; Refreshing behavior of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
; 1. SAPI module specific location.
; 2. The PHPRC environment variable. (As of PHP 5.2.0)
; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
; 4. Current working directory (workflow t cli)
5. The web server's directory (for SAPI modules), or directory of PHP
; (Otherwise in Windows)
; 6. The directory from the -- with-config-file-path compile time option, or
; Windows directory (C: \ windows or C: \ winnt)
; See the PHP docs for more specific information.
Http://php.net/configuration.file
; The syntax of the file is extremely simple. Whitespace and lines
; Beginning with a semicolon are silently ignored (as you probably guessed ).
; Section headers (e.g. [Foo]) are also silently ignored, even though
; They might mean something in the future.
; Directives following the section heading [PATH =/www/mysite] only
; Apply to PHP files in the/www/mysite directory. Directives
; Following the section heading [HOST = www.example.com] only apply
; PHP files served from www.example.com. Directives set in these
; Special sections cannot be overridden by user-defined INI files or
; At runtime. Currently, [PATH =] and [HOST =] sections only work under
; CGI/FastCGI.
Http://php.net/ini.sections
; Directives are specified using the following syntax:
; Directive = value
; Directive names are * case sensitive *-foo = bar is different from FOO = bar.
; Directives are variables used to configure PHP or PHP extensions.
; There is no name validation. If PHP can't find an expected
; Directive because it is not set or is mistyped, a default value will be used.
; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
; Of the INI constants (On, Off, True, False, Yes, No and None) or an expression
; (E.g. E_ALL &~ E_NOTICE), a quoted string ("bar"), or a reference to
; Previusly set variable or directive (e.g. $ {foo })
; Expressions in the INI file are limited to bitwise operators and parentheses:
; | Bitwise OR
; ^ Bitwise XOR
; & Bitwise AND
;~ Bitwise NOT
;! Boolean NOT
; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No.
; An empty string can be denoted by simply not writing anything after the equal
; Sign, or by using the None keyword:
; Foo =; sets foo to an empty string
; Foo = None; sets foo to an empty string
; Foo = "None"; sets foo to the string 'none'
; If you use constants in your value, and these constants belong to
; Dynamically loaded extension (either a PHP extension or a Zend extension ),
; You may only use these constants * after * the line that loads the extension.
;;;;;;;;;;;;;;;;;;;
; About this file;
;;;;;;;;;;;;;;;;;;;
; PHP comes packaged with two INI files. One that is recommended to be used
; In production environments and one that is recommended to be used in
; Development environments.
; Php. ini-production contains settings which hold security, performance and
; Best practices at its core. But please be aware, these settings may break
; Compatibility with older or less security conscience applications. We
; Recommending using the production ini in production and testing environments.
; Php. ini-development is very similar to its production variant, doesn't it's
; Much more verbose when it comes to errors. We recommending using
; Development version only in development environments as errors shown
; Application users can inadvertently leak otherwise secure information.
; This is php. ini-development INI file.
;;;;;;;;;;;;;;;;;;;
; Quick Reference;
;;;;;;;;;;;;;;;;;;;
; The following are all the settings which are different in either the production
; Or development versions of the INIs with respect to PHP's default behavior.
; Please see the actual settings later in the document for more details as to why
; We recommend these changes in PHP's behavior.
; Display_errors
; Default Value: On
; Development Value: On
; Production Value: Off
; Display_startup_errors
; Default Value: Off
; Development Value: On
; Production Value: Off
; Error_reporting
; Default Value: E_ALL &~ E_NOTICE &~ E_STRICT &~ E_DEPRECATED
; Development Value: E_ALL
; Production Value: E_ALL &~ E_DEPRECATED &~ E_STRICT
; Html_errors
; Default Value: On
; Development Value: On
; Production value: On
; Log_errors
; Default Value: Off
; Development Value: On
; Production Value: On
; Max_input_time
; Default Value:-1 (Unlimited)
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; Output_buffering
; Default Value: Off
; Development Value: 4096
; Production Value: 4096
; Register_argc_argv
; Default Value: On
; Development Value: Off
; Production Value: Off
; Request_order
; Default Value: None
; Development Value: "GP"
; Production Value: "GP"
; Session. gc_pisor
; Default Value: 100
; Development Value: 1000
; Production Value: 1000
; Session. hash_bits_per_character
; Default Value: 4
; Development Value: 5
; Production Value: 5
; Short_open_tag
; Default Value: On
; Development Value: Off
; Production Value: Off
; Track_errors
; Default Value: Off
; Development Value: On
; Production Value: Off
; Url_rewriter.tags
; Default Value: "a = href, area = href, frame = src, form =, fieldset ="
; Development Value: "a = href, area = href, frame = src, input = src, form = fakeentry"
; Production Value: "a = href, area = href, frame = src, input = src, form = fakeentry"
; Variables_order
; Default Value: "EGPCS"
; Development Value: "GPCS"
; Production Value: "GPCS"
;;;;;;;;;;;;;;;;;;;;
; Php. ini Options;
;;;;;;;;;;;;;;;;;;;;
; Name for user-defined php. ini (. htaccess) files. Default is ". user. ini"
; User_ini.filename = ". user. ini"
; To disable this feature set this option to empty value
; User_ini.filename =
; TTL for user-defined php. ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes)
; User_ini.cache_ttl = 300
;;;;;;;;;;;;;;;;;;;;
; Language Options;
;;;;;;;;;;;;;;;;;;;;
; Enable the PHP scripting language engine under Apache.
Http://php.net/engine
Engine = On
Set display_errors = On in php. ini and restart the server.
Http://www.cnblogs.com/GISerYang/archive/2012/09/10/2679340.html
Enable IIS error details first
IIS has no detailed error. it may be that zend is not compatible and has been abandoned. Other source code is used. thank you!