Title: Increasing max filesize
Last modified: August 19, 2016

---

# Increasing max filesize

 *  [chkorpsak](https://wordpress.org/support/users/chkorpsak/)
 * (@chkorpsak)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/increasing-max-filesize/)
 * I saw a link on how to increase the max file-size however I can’t find my php.
   ini
 * Then I read that there are premium accounts, but when I build sites, I just download
   wordpress 2.8 from the home page, is there a link to premium wordpress?

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [figaro](https://wordpress.org/support/users/figaro/)
 * (@figaro)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/increasing-max-filesize/#post-1122478)
 * php.ini is not in wordpress, it’s in your server software. If you are on a shared
   host, then you will need to contact them for directions on how to change the 
   max upload size…some will allow you to use a local php.ini on your account.
 *  Thread Starter [chkorpsak](https://wordpress.org/support/users/chkorpsak/)
 * (@chkorpsak)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/increasing-max-filesize/#post-1122499)
 * alrighty, so I asked my hosting company since it is a shared host, they’re saying
   to create a local .htaccess file….
 * So what should I have in there?
 *  [figaro](https://wordpress.org/support/users/figaro/)
 * (@figaro)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/increasing-max-filesize/#post-1122505)
 * Try this…
 * [http://roshanbh.com.np/2008/01/uploading-larger-files-in-php.html](http://roshanbh.com.np/2008/01/uploading-larger-files-in-php.html)
 * If it doesn’t work, then ask your host what to put in it.
 *  [shane-g](https://wordpress.org/support/users/shane-g/)
 * (@shane-g)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/increasing-max-filesize/#post-1122507)
 * Hi,
 * You can also do it for your domain from your end..YOu can either do it from wp-
   config.php or .htaccess file of your domain. Here is the code for that:
 * For wp-config.php:
    define(’WP_MEMORY_LIMIT’, ‘64M’);
 * For .htaccess:
    php_value memory_limit 64M
 * Thanks,
 * Shane G.
 *  [figaro](https://wordpress.org/support/users/figaro/)
 * (@figaro)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/increasing-max-filesize/#post-1122509)
 * [@shane](https://wordpress.org/support/users/shane/) G: Are you sure you read
   the question??
 *  [shane-g](https://wordpress.org/support/users/shane-g/)
 * (@shane-g)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/increasing-max-filesize/#post-1122525)
 * Hi,
 * [@figaro](https://wordpress.org/support/users/figaro/) – yes increase memory 
   limit as as well upload limit with this:
 * php_value upload_max_filesize 10M
 * but this code does not go through in my last post..hence, I have provided it 
   here
 * Thanks,
 * Shane G.
 *  [figaro](https://wordpress.org/support/users/figaro/)
 * (@figaro)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/increasing-max-filesize/#post-1122532)
 * So increasing the memory limit will increase the max file size upload? Hummm…
   I learn something new everyday 😉
 *  [WebTechGlobal](https://wordpress.org/support/users/webtechglobal/)
 * (@webtechglobal)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/increasing-max-filesize/#post-1122880)
 * Is this PHP INI code?
 * php_value upload_max_filesize 10M
 * I have not seen php_value before.
 *  [contactparijat](https://wordpress.org/support/users/contactparijat/)
 * (@contactparijat)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/increasing-max-filesize/#post-1123041)
 * Shane G
 * I tried your code both of them. But neither worked.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Increasing max filesize’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 5 participants
 * Last reply from: [contactparijat](https://wordpress.org/support/users/contactparijat/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/increasing-max-filesize/#post-1123041)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
