The MU forums have moved to WordPress.org

Upload Max Filesize Incorrect (6 posts)

  1. connorg
    Member
    Posted 15 years ago #

    I have set both in WordPress mu and in my php.ini file that the "upload_max_filesize" is 10MB. But when I try to upload anything over 2MB in WordPress, it gives me a warning saying "This file is too big. Your php.ini upload_max_filesize is 2M." Of course that error is wrong, here is a copy of my php.ini file:

    ;;;;;;;;;;;;;;;;
    ; File Uploads ;
    ;;;;;;;;;;;;;;;;
    
    ; Whether to allow HTTP file uploads.
    file_uploads = On
    
    ; Temporary directory for HTTP uploaded files (will use system default if not
    ; specified).
    ;upload_tmp_dir =
    
    ; Maximum allowed size for uploaded files.
    upload_max_filesize = 10M

    Whats wrong and how can I upload more than 2 MB?

  2. SteveAtty
    Member
    Posted 15 years ago #

    do a quick check for other php.ini files. I know for example that Ubuntu has two php.ini files : one for the command line and one for the web server.

    Or it might be that your host company have locked it down.

  3. tmoorewp
    Member
    Posted 15 years ago #

    Also, after changing php.ini, make sure Apache gets restarted or it will never recognize the change.

  4. andrea_r
    Moderator
    Posted 15 years ago #

    And double-check that setting in MU. Site Admin -> Options.

  5. connorg
    Member
    Posted 15 years ago #

    I double checked for other php.ini files and found none. I also double checked my setting in WPMU but they are exactly the same at 10,240 KB, exactly 10MB. How do you restart Apache after changing your php.ini file?

  6. SteveAtty
    Member
    Posted 15 years ago #

    It depends on your hosting solution. If you've got a control panel you can do it through that. But I guess that means that you haven't restarted apache after making the change.

About this Topic

  • Started 15 years ago by connorg
  • Latest reply from SteveAtty