Recently encountered a problem when uploading a large video to my web hosting server, for testing out my new WordPress Plugin to play self-hosted videos. I found out that the web hosting provider only allows 2M uploads by default. So, I checked with my web hosting provider (Hostmonster.com), and the online support says the maximum upload limit can be changed, up to 50M. So, I googled more and came up with the following solution.
1. Check with your web hosting provider for the maximum file uploading size allowed.
2. Create a text file named php.ini with the following content to change the default php setting.
[PHP] upload_max_filesize = 50M post_max_size = 50M
3. Upload the newly created php.ini into WordPress wp-admin folder. There is no need to upload php.ini to other folders.
That’s it.
P.S. Please note that there is no option in WordPress to change the file upload size. It is controlled by the Web Hosting Provider.
I am using PHP5 configuration and not the PHP fastcgi.