Skip to content

Commit

Permalink
修改开发环境的默认配置
Browse files Browse the repository at this point in the history
  • Loading branch information
hyyi1 committed May 10, 2021
1 parent a5a2f63 commit 5cdb645
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions php/config/php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ expose_php = On
; Maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time = 30
max_execution_time = 120

; Maximum amount of time each script may spend parsing request data. It's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
Expand Down Expand Up @@ -460,7 +460,7 @@ memory_limit = -1
; Development Value: E_ALL
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
; http://php.net/error-reporting
error_reporting = E_ALL&~E_NOTICE
error_reporting = E_ALL

; This directive controls whether or not and where PHP will output errors,
; notices and warnings too. Error output is very useful during development, but
Expand All @@ -477,7 +477,7 @@ error_reporting = E_ALL&~E_NOTICE
; Development Value: On
; Production Value: Off
; http://php.net/display-errors
display_errors = Off
display_errors = On

; The display of errors which occur during PHP's startup sequence are handled
; separately from display_errors. PHP's default behavior is to suppress those
Expand All @@ -488,7 +488,7 @@ display_errors = Off
; Development Value: On
; Production Value: Off
; http://php.net/display-startup-errors
display_startup_errors = Off
display_startup_errors = On

; Besides displaying errors, PHP can also log errors to locations such as a
; server-specific log, STDERR, or a location specified by the error_log
Expand Down Expand Up @@ -844,7 +844,7 @@ file_uploads = On

; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 2M
upload_max_filesize = 10M

; Maximum number of files that can be uploaded via a single request
max_file_uploads = 20
Expand Down

0 comments on commit 5cdb645

Please sign in to comment.