The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

increasing max file size upload php

Discussion in 'General Discussion' started by jdawes, Oct 13, 2003.

  1. jdawes

    jdawes Well-Known Member

    Joined:
    Aug 7, 2003
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Australia
    Can someone direct me to the required procedure to increase the maximum file size and timeout for the php upload. I believe it is set and a tiny 2mb at the moment and I would like to increase this to say 20mb or so. Someone told me that it was a setting in my http.conf file but i wasnt sure if that was the case and if that worked for cpanel?

    cPanel.net Support Ticket Number:
     
  2. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    Edit: /usr/local/lib/php.ini
    Search for: upload
    Change the variable as you see fit.

    The timeout variables are set in the apache config file.

    cPanel.net Support Ticket Number:
     
  3. oderland

    oderland Well-Known Member
    PartnerNOC

    Joined:
    Dec 30, 2002
    Messages:
    103
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Kungsbacka, Sweden
    hi there

    neomail would not allow to upload attachments bigger then 2 MB. We changed it in php.ini , phptest say it is now 50MB (I know it is to much :) but neomail still says that it has problems with attachments bigger then 2 MB!
    Any clue ? all services restarted even the machine.
     
  4. RJ2

    RJ2 Registered

    Joined:
    Jun 6, 2003
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Got it working, thanks!
     
    #4 RJ2, Feb 16, 2004
    Last edited: Aug 10, 2004
  5. tipsterbaine

    tipsterbaine Member

    Joined:
    Dec 17, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Check LimitRequestBody in httpd.conf (apache 1.3 ish +)
     
  6. nybble

    nybble Well-Known Member

    Joined:
    Jan 26, 2004
    Messages:
    223
    Likes Received:
    0
    Trophy Points:
    16
    Well I would guess that neomail or what ever limits it in its own way - edit it, read threw its files and I be there is an if($UPLOAD['file'] > 2000 bytes) sort of setup in it, may take some time :) did you try google? google is your friend :)
     
Loading...

Share This Page