Title: php.ini
Last modified: August 18, 2016

---

# php.ini

 *  [WizzKid](https://wordpress.org/support/users/wizzkid/)
 * (@wizzkid)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/phpini/)
 * I have been reading ‘How to change upload limit’ and people say I have to edit
   php.ini.
 * My limit stands at 2mb, and I want to rise it up to 25mb. So where can I locate
   php.ini or is there another way?
 * Thanks in advance,
 * WizzKid

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

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/phpini/#post-629537)
 * Might look in /etc folder, or sometimes it is in your web-root folder. If not,
   talk to your host.
 *  Thread Starter [WizzKid](https://wordpress.org/support/users/wizzkid/)
 * (@wizzkid)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/phpini/#post-629545)
 * I get this message:
 * _This file is not editable on the server and we are unable to change this for
   you for security reasons._
 * So this means that I cannot edit it, I have to always have 2mb upload limit 🙁,
   I want it for Gallery Remote (its a plugin)
 * Thanks,
 * WizzKid
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [18 years, 6 months ago](https://wordpress.org/support/topic/phpini/#post-629548)
 * Put this in your .htaccess file (at the top of the file):
    `php_value upload_max_filesize
   25M`
 * Sometimes that sort of thing works.
 *  Thread Starter [WizzKid](https://wordpress.org/support/users/wizzkid/)
 * (@wizzkid)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/phpini/#post-629551)
 * My hosting only supports: Mod_rewrite
 * Whatever that is :S
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [18 years, 6 months ago](https://wordpress.org/support/topic/phpini/#post-629558)
 * Yeah, but if they’re running php as an apache module for speed, then that will
   work.
 *  Thread Starter [WizzKid](https://wordpress.org/support/users/wizzkid/)
 * (@wizzkid)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/phpini/#post-629560)
 * so all I do is create a .htaccess file e.g. wp.htaccess and put php_value upload_max_filesize
   25M at the top?
 * Thanks for all the help 🙂
 * WizzHack

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

The topic ‘php.ini’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [WizzKid](https://wordpress.org/support/users/wizzkid/)
 * Last activity: [18 years, 6 months ago](https://wordpress.org/support/topic/phpini/#post-629560)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
