Skip to content

Commit 888f3e0

Browse files
committed
optimize php and nginx upload config
1 parent 7c09abc commit 888f3e0

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

conf/nginx.conf

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ http {
2323

2424
sendfile on;
2525
#tcp_nopush on;
26+
client_max_body_size 100M;
2627

2728
keepalive_timeout 65;
2829

conf/php.ini

+4-3
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ max_input_time = 60
401401

402402
; Maximum amount of memory a script may consume (128MB)
403403
; http://php.net/memory-limit
404-
memory_limit = 128M
404+
memory_limit = 256M
405405

406406
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
407407
; Error handling and logging ;
@@ -668,7 +668,7 @@ auto_globals_jit = On
668668
; Its value may be 0 to disable the limit. It is ignored if POST data reading
669669
; is disabled through enable_post_data_reading.
670670
; http://php.net/post-max-size
671-
post_max_size = 8M
671+
post_max_size = 100M
672672

673673
; Automatically add files before PHP document.
674674
; http://php.net/auto-prepend-file
@@ -821,7 +821,7 @@ file_uploads = On
821821

822822
; Maximum allowed size for uploaded files.
823823
; http://php.net/upload-max-filesize
824-
upload_max_filesize = 2M
824+
upload_max_filesize = 50M
825825

826826
; Maximum number of files that can be uploaded via a single request
827827
max_file_uploads = 20
@@ -1925,3 +1925,4 @@ ldap.max_links = -1
19251925
;xdebug.remote_port = 9000
19261926
;xdebug.remote_log = /var/log/php/xdebug.log
19271927

1928+
GIONEE_ENV=develop

0 commit comments

Comments
 (0)