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.

Upload limit error when uploading file from a website form

Discussion in 'General Discussion' started by nitdna, Mar 4, 2014.

  1. nitdna

    nitdna Member

    Joined:
    Nov 13, 2013
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello

    Having this annoying issue of a file size limit being set (presumably in PHP) to 8MB (but expressed in bytes: 8388608).
    When submitting a file upload from a form on a website the following error is logged:
    Set in the php.ini file for the website is the following:
    upload_max_filesize = 50M
    post_max_size = 200M

    When this was set and the error still occurred started to look at other settings and so have made temp changes to PHP settings for the server under PHP configuration in WHM as well as in the Tweak settings for PHP in WHM.

    Yet every time a file is uploaded the error is logged.

    Where else could this limit be set?
     
  2. nitdna

    nitdna Member

    Joined:
    Nov 13, 2013
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Wow! found it!
    php.ini file that had this line in it: post_max_size = 8M
    file was located in /usr/lib (Go figure!).
    Once this was changed all good.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    I am happy to see the issue is now resolved. Note that the php.ini file in /usr/lib is actually a link to /usr/local/lib/php.ini.

    Thank you.
     
Loading...

Share This Page