Commit e3065003c1a70ec4f136b4b90fdf1dbf0d7a7659

Authored by 鲜彤
1 parent dcaa68f7

fix php.ini

Showing 1 changed file with 9 additions and 9 deletions
conf/php/php.ini
@@ -311,7 +311,7 @@ serialize_precision = -1 @@ -311,7 +311,7 @@ serialize_precision = -1
311 ; This directive allows you to disable certain functions for security reasons. 311 ; This directive allows you to disable certain functions for security reasons.
312 ; It receives a comma-delimited list of function names. 312 ; It receives a comma-delimited list of function names.
313 ; http://php.net/disable-functions 313 ; http://php.net/disable-functions
314 -disable_functions = 314 +disable_functions = passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_open,proc_get_status,popen,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server
315 315
316 ; This directive allows you to disable certain classes for security reasons. 316 ; This directive allows you to disable certain classes for security reasons.
317 ; It receives a comma-delimited list of class names. 317 ; It receives a comma-delimited list of class names.
@@ -380,7 +380,7 @@ expose_php = On @@ -380,7 +380,7 @@ expose_php = On
380 ; Maximum execution time of each script, in seconds 380 ; Maximum execution time of each script, in seconds
381 ; http://php.net/max-execution-time 381 ; http://php.net/max-execution-time
382 ; Note: This directive is hardcoded to 0 for the CLI SAPI 382 ; Note: This directive is hardcoded to 0 for the CLI SAPI
383 -max_execution_time = 30 383 +max_execution_time = 300
384 384
385 ; Maximum amount of time each script may spend parsing request data. It's a good 385 ; Maximum amount of time each script may spend parsing request data. It's a good
386 ; idea to limit this time on productions servers in order to eliminate unexpectedly 386 ; idea to limit this time on productions servers in order to eliminate unexpectedly
@@ -390,18 +390,18 @@ max_execution_time = 30 @@ -390,18 +390,18 @@ max_execution_time = 30
390 ; Development Value: 60 (60 seconds) 390 ; Development Value: 60 (60 seconds)
391 ; Production Value: 60 (60 seconds) 391 ; Production Value: 60 (60 seconds)
392 ; http://php.net/max-input-time 392 ; http://php.net/max-input-time
393 -max_input_time = 60 393 +max_input_time = 180
394 394
395 ; Maximum input variable nesting level 395 ; Maximum input variable nesting level
396 ; http://php.net/max-input-nesting-level 396 ; http://php.net/max-input-nesting-level
397 ;max_input_nesting_level = 64 397 ;max_input_nesting_level = 64
398 398
399 ; How many GET/POST/COOKIE input variables may be accepted 399 ; How many GET/POST/COOKIE input variables may be accepted
400 -; max_input_vars = 1000 400 +max_input_vars = 3000
401 401
402 ; Maximum amount of memory a script may consume (128MB) 402 ; Maximum amount of memory a script may consume (128MB)
403 ; http://php.net/memory-limit 403 ; http://php.net/memory-limit
404 -memory_limit = 128M 404 +memory_limit = 1G
405 405
406 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 406 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
407 ; Error handling and logging ; 407 ; Error handling and logging ;
@@ -668,7 +668,7 @@ auto_globals_jit = On @@ -668,7 +668,7 @@ auto_globals_jit = On
668 ; Its value may be 0 to disable the limit. It is ignored if POST data reading 668 ; Its value may be 0 to disable the limit. It is ignored if POST data reading
669 ; is disabled through enable_post_data_reading. 669 ; is disabled through enable_post_data_reading.
670 ; http://php.net/post-max-size 670 ; http://php.net/post-max-size
671 -post_max_size = 8M 671 +post_max_size = 700M
672 672
673 ; Automatically add files before PHP document. 673 ; Automatically add files before PHP document.
674 ; http://php.net/auto-prepend-file 674 ; http://php.net/auto-prepend-file
@@ -777,7 +777,7 @@ enable_dl = Off @@ -777,7 +777,7 @@ enable_dl = Off
777 ; if cgi.discard_path is enabled, the PHP CGI binary can safely be placed outside 777 ; if cgi.discard_path is enabled, the PHP CGI binary can safely be placed outside
778 ; of the web tree and people will not be able to circumvent .htaccess security. 778 ; of the web tree and people will not be able to circumvent .htaccess security.
779 ; http://php.net/cgi.dicard-path 779 ; http://php.net/cgi.dicard-path
780 -;cgi.discard_path=1 780 +cgi.discard_path=1
781 781
782 ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate 782 ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
783 ; security tokens of the calling client. This allows IIS to define the 783 ; security tokens of the calling client. This allows IIS to define the
@@ -821,7 +821,7 @@ file_uploads = On @@ -821,7 +821,7 @@ file_uploads = On
821 821
822 ; Maximum allowed size for uploaded files. 822 ; Maximum allowed size for uploaded files.
823 ; http://php.net/upload-max-filesize 823 ; http://php.net/upload-max-filesize
824 -upload_max_filesize = 2M 824 +upload_max_filesize = 512M
825 825
826 ; Maximum number of files that can be uploaded via a single request 826 ; Maximum number of files that can be uploaded via a single request
827 max_file_uploads = 20 827 max_file_uploads = 20
@@ -936,7 +936,7 @@ cli_server.color = On @@ -936,7 +936,7 @@ cli_server.color = On
936 [Date] 936 [Date]
937 ; Defines the default timezone used by the date functions 937 ; Defines the default timezone used by the date functions
938 ; http://php.net/date.timezone 938 ; http://php.net/date.timezone
939 -;date.timezone = 939 +date.timezone = Asia/Shanghai
940 940
941 ; http://php.net/date.default-latitude 941 ; http://php.net/date.default-latitude
942 ;date.default_latitude = 31.7667 942 ;date.default_latitude = 31.7667