WordPress.org

Support

Support » How-To and Troubleshooting » Where is php.ini? i want to increase upload file size

Where is php.ini? i want to increase upload file size

  • I want to increase upload file size it said something about php.ini i am assuming i need to change max size in php.ini but i dont know where to find it. i am using red train theme. If anyone knows where to locate this in any theme let me know. And if this is the way to increase memory. help

Viewing 5 replies - 1 through 5 (of 5 total)
  • it’s most like a php on your server issue. you can contact your server support people to get that limitation fixed.

    Moderator Samuel Wood (Otto)

    @otto42

    WordPress.org Tech Dude

    If your host is running PHP as an Apache module (instead of a CGI), then you can add this to the .htaccess file to adjust it yourself:
    php_value upload_max_filesize 2M

    Adjust the 2M value to what you want the max filesize to be (2M = 2 meg).

    Note that if you get an error after adding this line (maybe even a 500 server error), then they’re not running PHP as an Apache module. Remove the line in that case, it won’t work.

    I have that in my htaccess it lets me upload files that are 12m but for some reason when i try a 35m it cant. i dont know why. it says cant move…

    Moderator Samuel Wood (Otto)

    @otto42

    WordPress.org Tech Dude

    35 meg upload? There’s no real reason that you should be allowing that sort of thing via PHP. It might be worthwhile to rethink your plan here. What 35 megabyte file could you possibly want to upload via a webpage?

    Also remember that if you upload a file, you may need to have double the size of the file available in space on that account. This is because it first saves the file data as a temp file, then copies that to the actual file where PHP expects it to be. And PHP is time limited as well, so if the upload takes too long, it’ll fail.

    In other words, it’s fine for small files, but for big ones, it needs special tuning.

    what kind of file? video file thats what kind. I have enough space. just wanted to know why its not working. i’ve seen people do this with 750m files

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Where is php.ini? i want to increase upload file size’ is closed to new replies.