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?
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.
Also, after changing php.ini, make sure Apache gets restarted or it will never recognize the change.
And double-check that setting in MU. Site Admin -> Options.
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?
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.