Skip to main content

Increase the size of packages allowed for upload

Applies to: Medulla
Version: All
Environment: On-Premise
Category: Server administration, Packages

Context

You can increase the maximum file upload size from the Medulla interface when creating a package.

image.png

Actions

Execute the following commands:

crudini --set /etc/php/8.2/fpm/php.ini PHP post_max_size 800M 
crudini --set /etc/php/8.2/fpm/php.ini PHP upload_max_filesize 800M
crudini --set /etc/php/8.2/fpm/php.ini PHP memory_limit 2048M
crudini --set /etc/php/8.2/fpm/php.ini PHP max_execution_time 60
crudini --set /etc/php/8.2/fpm/php.ini PHP max_input_time 60
systemctl restart php8.2-fpm

The value of memory_limit must be increased, in addition to past_max_size and upload_max_size, to at least 2.5 times the maximum package size.