Three places to set upload_max_filesize ?

shacker23

Well-Known Member
Feb 20, 2005
263
1
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.
 

elmediano

Registered
Nov 30, 2012
3
0
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!

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.