1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

What are your settings for "upload_max_filesize" "post_max_size" "memory_limit" ?

Discussion in 'Server Configuration and Hosting' started by RoldanLT, Feb 7, 2014.

  1. RoldanLT

    RoldanLT Well-Known Member

    Here's mine:
    upload_max_filesize = 32M
    post_max_size = 32M
    memory_limit = 512M

    (All declared/override on /libary/config.php)
    php.ini are all default from CentminMod :)

    My Forum Stat's:
  2. Floren

    Floren Well-Known Member

    You are allowing users to upload 32MB attachments, or POST requests up to 32MB. That is a security risk, as someone malicious could easily exhaust your servers resources by posting simultaneous large posts. The easiest way to calculate the proper POST size is by making a sum of of your max allowed attachment size (i.e. 1MB) and the number of characters allowed in a post (i.e. 10,000 = 10KB). Setting a value of 1MB is more than enough for post_max_size. I personally use these values into PHP-FPM pool assigned to forums:
    php_admin_value[memory_limit] = 256M
    php_admin_value[post_max_size] = 1M
    php_admin_value[upload_max_filesize] = 1M
    You have to define those values into your Nginx configuration also, PHP is not enough.
    MattW and RoldanLT like this.

Share This Page