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.

Increase File Upload Limit

Discussion in 'General Discussion' started by Soheil, Oct 15, 2006.

  1. Soheil

    Soheil Active Member

    Joined:
    Jun 24, 2003
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Hi Guys,
    I can't upload any files larger than 500k
    I have edited php.ini and set the following variables:

    file_uploads = On
    upload_max_filesize = 200M
    max_execution_time = 500
    max_input_time = 100
    memory_limit = 32M
    post_max_size = 200M

    Also, I added this line to httpd.conf on the top of the file
    LimitRequestBody 2147483647


    Restarted Apache and still can not upload files larger than 500k

    Can anyone please tell me what else I need to do please?
     
  2. split

    split Member

    Joined:
    Sep 30, 2005
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    what says the "phpinfo();" function?

    Regards,
    split.
     
  3. celliott

    celliott Well-Known Member

    Joined:
    Jan 2, 2006
    Messages:
    460
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    United Kingdom
    Are you 100% sure you are modifying the correct php.ini file? If you have Zend installed the file will be located in the Zend folder which explains why you are not seeing any changes. Check the location of the file with the phpinfo command.

    Chris.
     
  4. Soheil

    Soheil Active Member

    Joined:
    Jun 24, 2003
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Thanks for your help gusy.
    Cpanel support helped me find the problem.
    /tmp directory had incorrect permissions.
     
  5. shortfork

    shortfork Well-Known Member

    Joined:
    Sep 4, 2006
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    What are those permissions supposed to be? I'm having same problem...

    Shortz
     
  6. WebScHoLaR

    WebScHoLaR Well-Known Member

    Joined:
    Dec 14, 2005
    Messages:
    511
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Planet Earth
    /tmp permissions should be 1777:

    chmod 1777 /tmp
     
Loading...

Share This Page