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!

Three places to set upload_max_filesize ?

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

  1. shacker23

    shacker23 Well-Known Member

    Joined:
    Feb 20, 2005
    Messages:
    263
    Likes Received:
    1
    Trophy Points:
    168
    OK, we have:

    Tweak Settings | PHP | cPanel PHP max upload size
    and
    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

    Joined:
    Nov 30, 2012
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice