Want more timely Centmin Mod News Updates?
Become a Member

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

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    12:44 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

    30,839
    6,903
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,393
    Local Time:
    3:44 PM
    Nginx 1.13.x
    MariaDB 5.5
    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

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    12:44 AM
    latest
    10
    Thank you!
    Changed to 100MB per client suggestion
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,839
    6,903
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,393
    Local Time:
    3:44 PM
    Nginx 1.13.x
    MariaDB 5.5
  5. eva2000

    eva2000 Administrator Staff Member

    30,839
    6,903
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,393
    Local Time:
    3:44 PM
    Nginx 1.13.x
    MariaDB 5.5