From 4dc4201e8920acf9a480034da6125c93796e008a Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 10 Dec 2020 14:44:25 +0100 Subject: [PATCH] Increase memory_limit to 256M --- conf/extra_php-fpm.conf | 2 +- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/conf/extra_php-fpm.conf b/conf/extra_php-fpm.conf index c93210e..00d1fad 100644 --- a/conf/extra_php-fpm.conf +++ b/conf/extra_php-fpm.conf @@ -1,5 +1,5 @@ ; Additional php.ini defines, specific to this pool of workers. php_admin_value[upload_max_filesize] = 50M -php_admin_value[memory_limit] = 64M +php_admin_value[memory_limit] = 256M php_admin_value[post_max_size] = 50M diff --git a/scripts/install b/scripts/install index e32c5e8..8115366 100755 --- a/scripts/install +++ b/scripts/install @@ -88,7 +88,7 @@ ynh_system_user_create --username=$app ynh_script_progression --message="Configuring PHP-FPM..." # Create a dedicated PHP-FPM config -ynh_add_fpm_config --usage=low --footprint=low --package="$extra_php_dependencies" +ynh_add_fpm_config --usage=low --footprint=medium --package="$extra_php_dependencies" phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= diff --git a/scripts/restore b/scripts/restore index 4a51b1d..37d0227 100755 --- a/scripts/restore +++ b/scripts/restore @@ -82,7 +82,7 @@ ynh_script_progression --message="Restoring PHP-FPM configuration..." ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" # Recreate a dedicated php-fpm config -ynh_add_fpm_config --usage=low --footprint=low --package="$extra_php_dependencies" +ynh_add_fpm_config --usage=low --footprint=medium --package="$extra_php_dependencies" #================================================= # RESTORE THE MYSQL DATABASE diff --git a/scripts/upgrade b/scripts/upgrade index 9e5186b..8099e56 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -106,7 +106,7 @@ ynh_system_user_create --username=$app ynh_script_progression --message="Upgrading PHP-FPM configuration..." # Create a dedicated php-fpm config -ynh_add_fpm_config --usage=low --footprint=low --package="$extra_php_dependencies" +ynh_add_fpm_config --usage=low --footprint=medium --package="$extra_php_dependencies" phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #=================================================