Learn about Centmin Mod LEMP Stack today
Register Now

Wordpress PHP upload max filesize

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Matt Williams, Oct 20, 2015.

  1. Matt Williams

    Matt Williams WordPress Fanatic

    537
    104
    43
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +157
    Local Time:
    4:22 AM
    latest
    10
    Is there another location this would be at to up the filesize? Editing phpedit doesn't do it.

    If I recall, there is a second location? But can't remember where :banghead:

     
  2. eva2000

    eva2000 Administrator Staff Member

    55,811
    12,273
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,859
    Local Time:
    6:22 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    For custom php settings read centminmod.com/phpfpm.html#customphpini the settings are in default custom ini file at /etc/centminmod/php.d/a_customphp.ini. You might want to create /etc/centminmod/php.d/b_customphp.ini to override centmin mod defaults at /etc/centminmod/php.d/a_customphp.ini

    btw what size you want to change it to ? it defaults to 40M already in /etc/centminmod/php.d/a_customphp.ini

    Code:
    cat /etc/centminmod/php.d/a_customphp.ini
    date.timezone = UTC
    max_execution_time = 60
    short_open_tag = On
    realpath_cache_size = 1024k
    realpath_cache_ttl = 14400
    upload_max_filesize = 40M
    memory_limit = 160M
    post_max_size = 40M
    expose_php = Off
    mail.add_x_header = Off
    max_input_nesting_level = 128
    max_input_vars = 2000
    mysqlnd.net_cmd_buffer_size = 16384
    ;always_populate_raw_post_data=-1
     
  3. Matt Williams

    Matt Williams WordPress Fanatic

    537
    104
    43
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +157
    Local Time:
    4:22 AM
    latest
    10
    Thank you!
    Changed to 100MB per client suggestion
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,811
    12,273
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,859
    Local Time:
    6:22 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  5. eva2000

    eva2000 Administrator Staff Member

    55,811
    12,273
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,859
    Local Time:
    6:22 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+