php 錯誤訊息 POST limit 2147483648 bytes

2015-04-08 CentOS

今天在遷移機器的過程中,在 Web 服務看到一段錯誤的 Log 導致某些 php 程式無法執行,隨手紀錄一下處理過程。

 

Nginx error.log

FastCGI sent in stderr: “PHP message: PHP Warning:  Unknown: POST Content-Length of 123 bytes exceeds the limit of -2147483648 bytes in Unknown on line 0” while reading response header from upstream

 

由於 LAB 環境僅允許採用 32bit Server,在 php 中 POST 最大不能 2147483648 bytes 以上,換算 Megabyte 也就是 2048M 以上

 

這個設定通常在 php.ini

post_max_size 這個參數是重點

 

當然也可能在 Web root 底下的 .htaccess 會有這樣的設定。

 

會發生這樣的錯誤動作通常在 php 執行的 POST size,檔案 Download 也會有此訊息出現

 

 

參考資料:

php#post-max-size

給 Mr. 沙先生一點建議

彙整

分類

展開全部 | 收合全部

License

訂閱 Mr. 沙先生 的文章

輸入你的 email 用於訂閱