如果用 nginx 跑 php, 要加大上傳檔案大小的限制, 除了 php.ini 要改之外
在 nginx config 檔的 location { } 或 http { } 內加上
client_max_body_size 384m;
附贈 php.ini 改的地方
; php script 執行秒數, 等同於上傳的限制時間
max_execution_time = 600
; 三參數中最大
memory_limit = 384M
; 上傳的表單總大小, 所以次大
post_max_size = 256M
; 單檔的大小
upload_max_filesize = 200M
全站熱搜
留言列表