Change maximum file upload size in WordPress
Posted on: November 11, 2009 @ 5:14 pm -

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.

Leave a Reply

  • Recent Comments

    Denzel on Vimeo-Quicktag

    Well, I think I can. If I have the time. I didn't know about any new Vimeo embed codes. Because, this plugin is not popular and it has been a long time since the last bug report from user. Will take a look at the code on Vimeo now, and see if I have the ability to integrate into this plugin. Thanks for your interest.

    Moritz on Vimeo-Quicktag

    Hey Denzel, thanks for the great work! We really would like to use the new vimeo embed code so iPad and iPhone owners can view the videos too. Do you plan to update the plugin? Again, thanks for this really nice plugin! Moritz

    ileane on Video Sidebar Widgets Comments & FAQ

    Hi there, great plugin!! I had to come to this site in order to find the video id. It would be great if that info was found on the widget set up dialog. Thanks for creating this!

    Denzel on Video Sidebar Widgets Comments & FAQ

    I don't understand your situation. If you want to have random video. Use the random video widget. If you want a single video use the video sidebar widget. If you want a few videos on your sidebar, just drag the widget over the sidebar as many times you want and set it up. Please read the documentation on the plugin page. Thanks.

    Ben on Video Sidebar Widgets Comments & FAQ

    Hi there, I'm trying to put your widget in Wordpress Version 3.0.1 but when I add it in the widgets sidebar I don't have an option for any more than one video. Any help would be much appreciated. Thanks!


  • Recent Posts

    Changes to post image function names in WP2.9RC1

    has_post_image() has been changed to has_post_thumbnail() and…..

    Change maximum file upload size in WordPress

    How to change maximum file upload size.

    Expanded My Post Meta Box

    I specially coded a meta box for my theme to control my theme layout

    Thanks for Rating My Plugin

    Thank you for the 5 star ratings!

    Video Sidebar Widgets Update

    Updated to Version 2.2 to include support for videos from tangle.com


  • Twitter Updates

    Follow me on Twitter or RSS