Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

Three places to set upload_max_filesize ?

Discussion in 'General Discussion' started by shacker23, Feb 16, 2012.

  1. shacker23

    shacker23 Well-Known Member

    Feb 20, 2005
    Likes Received:
    Trophy Points:
    OK, we have:

    Tweak Settings | PHP | cPanel PHP max upload size
    PHP Configuration Editor | upload_max_filesize

    On my system, these are both currently set to 50MB. First question: What is the relationship/difference between these two settings?

    And each user has their own php.ini. For one of my users, it's currently set to:

    upload_max_filesize 20M

    But for that user, WordPress says the max upload size is 8MBs. Where is the 8MB report coming from? I assume the user should be able to set this as high as one of the first two thresholds allows, no? (which one?)

    What I want to be able to do:

    - Set a server wide default of 2MBs
    - Let users override this through php.ini, not exceeding a server-wide maximum

    Thanks if anyone can shed light on this.
  2. elmediano

    elmediano Registered

    Nov 30, 2012
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Did you ever get an answer for this? I'm having the same thing here:

    Wordpress says 8M even when upload_max_filesize is set to 20M. But if I then change the upload_max_filesize under PHP Configuration Editor to anything below 8M, it gets reflected on Wordpress. Weird!

    I even logged in as root through SSH and changed the php.ini file manually and restarted Apache but no luck.

    Can someone please explain?

    Thank you!


Share This Page