• Resolved nathank1989

    (@nathank1989)


    1. Upload limit is stuck at 2MB
    2. my PHP.ini file has upload_max_filesize = 1024M
    3. I’m running WP-Multisite, and the default is 1024000KB
    4. The specific site I also edited to set 1024MB
    5. In WP-Config I have set: define( 'WP_MEMORY_LIMIT', '512M' );
    define( 'WP_MAX_MEMORY_LIMIT', '1024M' );
    6. in my theme functions.php I have added: @ini_set( 'upload_max_size' , '1024M' );
    @ini_set( 'post_max_size', '1024M');
    @ini_set( 'max_execution_time', '300' );
    7. Not shared hosting. Running standard VPS with CentOS.

    All of these do not work. It displays the limit is 2MB and sternly will not let me upload anything more. This is frustrating.

Viewing 2 replies - 16 through 17 (of 17 total)
  • I am having problem with putting my my maximum upload filesize to 500M. I run my own Ubuntu Server 16.04 LTS. I was told to put a php.ini in the wordpress directory. I did it is set at 500M. It says it is locally overridden and in the Media says max upload size is 8M. Where could this be overridden.

    me<at>mikealrhughes<dot>com

    @macmikeal: by making sure you upload that php.ini in wp-admin and not public_html of your site. I know … sounds crazy, but it gives a distinctively different result / desired outcome (most of the time).

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Upload limit stuck at 2MB’ is closed to new replies.