Increasing the maximum post size

后端 未结 9 2159
旧巷少年郎
旧巷少年郎 2020-11-22 04:39

There is a lot of data being submitted no file uploads and the $_SERVER[\'CONTENT_LENGTH\'] is being exceeded. Can this be increased?

9条回答
  •  闹比i
    闹比i (楼主)
    2020-11-22 05:37

    There are 2 different places you can set it:

    php.ini

    post_max_size=20M
    upload_max_filesize=20M
    

    .htaccess / httpd.conf / virtualhost include

    php_value post_max_size 20M
    php_value upload_max_filesize 20M
    

    Which one to use depends on what you have access to.

    .htaccess will not require a server restart, but php.ini and the other apache conf files will.

提交回复
热议问题