Pick our brains...

Updating or changing WHM & php configuration settings

Our goal was to increase the maximum upload size via php config.  You can do this straight from WHM.  But the gotchya is that there are TWO places you can do it from.  And evidently one overrides the other.

So, for diagnosis, I created a phpinfo() file on the WP in question.  With this, I was able to see that the changes I made via WHM’s “tweak settings” were not taking affect.

So with a little more googling, I instead went to the WHM section for “php configuration”.  We’re looking for two parameters in particular:
o  max POST size  (ie: post_max_size)
o  max upload size  (ie: upload_max_filesize)

You can also find these settings, straight from the command line with:

[root@sunshine ~]# php -i | grep max

Which then outputs:

log_errors_max_len => 1024 => 1024
max_execution_time => 0 => 0
max_file_uploads => 20 => 20
max_input_nesting_level => 64 => 64
max_input_time => -1 => -1
max_input_vars => 2000 => 2000
post_max_size => 100M => 100M
upload_max_filesize => 100M => 100M
mysql.max_links => Unlimited => Unlimited
mysql.max_persistent => Unlimited => Unlimited
mysqli.max_links => Unlimited => Unlimited
mysqli.max_persistent => Unlimited => Unlimited
session.gc_maxlifetime => 1440 => 1440

A few screenshots from WHM.  The “tweak settings” section (which is what we modified first, but was overridden), and the “php configuration” section (which is what fixed things).