Wordpress 2.5 - php.ini upload_max_filesize

Default is 2mb. To increase, you need to change the file size limit in the php.ini or .htaccess file.

php.ini
Add these lines:

upload_max_filesize = 10M ;
post_max_size = 20M ;

Chances are, you don’t have access to the php.ini file, so you have to edit the .htaccess file.

.htaccess (Example link: http://tchan4.com/blog/.htaccess)
Add these lines:

php_value upload_max_filesize 10M
php_value post_max_size 20M

If you don’t have a .htaccess file, just create one and put it into your blog’s root directory (http://tchan4.com/blog/.htaccess).

‘Post Max’ size is the maximum size of all he files in each posts you make.
‘Max File’ size is the maximum size per file you can upload.
Change the values 10M/20M to what you want, just make sure the ‘post max’ is bigger than ‘max file’.

This entry was posted on Thursday, May 15th, 2008 at 5:27 pm and is filed under Uncategorised. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

4 Responses to “Wordpress 2.5 - php.ini upload_max_filesize”

  1. Katie Ball Says:

    I cannot thank you enough for putting this response in plain English. I can finally upload my larger files! This has involved a lot of going back and forth between my hosting company and searching the forums. The one thing the hosting co did, which might have also helped (but not without the allowable posting code in place) was that they also added this:
    php_value max_execution_time 1000

    between the two it finally works. Another tip, if it doesn’t upload with the first wordpress browser, try the second one - that’s what worked for me.

  2. Sugar Web Design Says:

    If I can just echo Katie’s comment, thanks for explaining this clearly. Has saved me so much time and easy to implement for me (.htaccess file).

  3. Surviving a corrupt WordPress database - ManiaRavings Says:

    [...] took me to this article which suggested getting around the file size limit by editing the .htaccess file instead. This is a [...]

  4. Ben Says:

    Thankyou so much, I had issues with 500 errors when i used htaccess. but using the php.ini method (both in the root and in wp-content and wp-admin) has done the trick.

    for now anyway!

Leave a Reply