1

I got a PHP warning which says:

PHP Warning: POST Content-Length of 2290848 bytes exceeds the limit of 2097152 bytes in Unknown on line 0,

The following are my configuration:

In /etc/php.ini

post_max_size = 2.5M
upload_max_filesize = 500K
max_file_uploads = 5

In /etc/httpd/conf/httpd.conf

LimitRequestBody 3000000 

From the above, my post max size is supposed to be 2.5M. Why is this warning triggered at a lower limit of 2M (2097152 bytes)?

Question Overflow
  • 10,925
  • 18
  • 72
  • 110

1 Answers1

3

post_max_size is an integer, 2.5 is not.