WordPress.org

Ready to get started?Download WordPress

Forums

Where is php.ini? i want to increase upload file size (6 posts)

  1. jnngrmnt
    Member
    Posted 7 years ago #

    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

  2. OperaManiac
    Member
    Posted 7 years ago #

    it's most like a php on your server issue. you can contact your server support people to get that limitation fixed.

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    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.

  4. jnngrmnt
    Member
    Posted 7 years ago #

    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...

  5. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    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.

  6. jnngrmnt
    Member
    Posted 7 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic