I have modified the php_ini and still get PHP warning POST Content-Length exceed the limit

后端 未结 1 1912
太阳男子
太阳男子 2020-12-21 23:58

I have changed php.ini, post_max_size = 20M;

php -i | grep \'post_max_file\' ,post_max_size => 20M => 20M

A

相关标签:
1条回答
  • 2020-12-22 00:22

    In my case, my problem was that I'd updated the php.ini at /etc/php/7.3/cli/php.ini instead of at /etc/php/7.3/fpm/php.ini.

    (CLI is not the same as FPM.)

    My site behaved properly after I updated the FPM php.ini and ran sudo service php7.3-fpm restart.

    0 讨论(0)
提交回复
热议问题