Skip to content

Limited PHP upload_max_filesize and post_max_size for apps vhost/pool

The NGINX apps vhost explicitly sets client_max_body_size 100M, but the apps can't take advantage of that because they still depend on what the user has specified in /etc/php.ini which defaults to 2M.

For example when trying to upload an SQL DB dump in PHPMyAdmin:

image

I suggest the following PHP option overrides in the apps pool:

php_admin_value[post_max_size] = 100M;
php_admin_value[upload_max_filesize] = 100M;

Someone who uses apache should also investigate if server/conf/apache_apps.vhost.master should be modified to increase the max body size to match the NGINX configuration.