2013-08-26 112 views
1

我想上傳通過Adminer gzip壓縮的MySQL的備份(71,2mb),它拋出我這個錯誤:POST數據太大。減少數據或增加「的post_max_size」

Too big POST data. Reduce the data or increase the "post_max_size" configuration directive.

即使我upload_tmp_dirpost_max_size以及其他PHP。 ini設置是這樣的:

post_max_size = 1024M 
upload_max_filesize = 1024M 

爲什麼我不斷收到此錯誤?

+1

可能重複http://stackoverflow.com/questions/4044201/upload-doesnt-work-right -when-the-file-is-too-big?rq = 1 –

+0

你是否也更改了.htaccess文件? –

回答

4

不僅要檢查php.ini中的值,因爲它們可以被.htaccess文件或PHP代碼覆蓋。運行phpinfo()並比較右側列中的左側&中的值。右列中的值是實際使用的值。

也藉此從documentation筆記考慮:

Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize. If memory limit is enabled by your configure script, memory_limit also affects file uploading. Generally speaking, memory_limit should be larger than post_max_size.

所以,你可能還需要改變memory_limit

memory_limit > post_max_size > upload_max_filesize 
2

我發現我編輯了錯誤的文件,和作品現在!

我意外地編輯的一個在/ etc/PHP5/CLI的/代替的/ etc/PHP5/apache2的/

+0

調用'phpinfo()'會告訴你這個 –

+0

我做過了,這就是讓我重新走上正軌的原因!謝啦! – dasmikko