Blog › PHP · Published 2026-11-26

Fix PHP warning: POST Content-Length exceeds the limit

The request body is larger than post_max_size. When it is exceeded, PHP drops the POST data and shows this warning.

Fix

Edit php.ini:

post_max_size = 64M
upload_max_filesize = 64M

post_max_size should be at least as large as upload_max_filesize. Restart PHP-FPM or the web server afterwards.

Find the active file with php --ini or phpinfo(). Your web server may also have its own limit (for example client_max_body_size in Nginx).

Official sources

Need help with your project?
We build websites, systems and automation. Start your project WhatsApp

All articles