PHP Upload Size variables for Admin & Non-Admin

SYSTEM INFORMATION
OS type and version Debian Linux 12
Virtualmin version 7.50.0 Professional

I had been modifying the upload limits for my servers using the following command line command:

virtualmin modify-php-ini --all-domains --ini-name post_max_size --ini-value 32M

But when I check in PHP’s config files (and my sites), I see there are still some items limited to 16M:

php_admin_value[post_max_size] = 16M
php_admin_value[upload_max_filesize] = 16M
php_value[post_max_size] = 32M
php_value[upload_max_filesize] = 32M

What’s the proper virtualmin command to modify the Admin settings as well?

Any word on this? Or should I open a ticket?

Hello!

Thanks for reaching out, and sorry for the late reply. I missed your original message.

No, it wasn’t possible before—now it is. Now you can use --fpm-admin-value to force the admin value to be written, or --fpm-value to force the user-level value to be written. If not set, it will default to existing logic, meaning it will preserve whichever value type exists.

You can use the following patch to make it work now:

webmin patch https://github.com/virtualmin/virtualmin-gpl/commit/5352ba0

Thank you - this is why I like Virtualmin!

It’s not urgent that I do this now (the values are already set) - I can wait for the next release to come out, and test it then.

1 Like