diff --git a/conf/cron b/conf/cron index f38896d..95790c9 100644 --- a/conf/cron +++ b/conf/cron @@ -1 +1 @@ -*/15 * * * * /usr/bin/php__YNH_PHP_VERSION__ __FINAL_PATH__/admin/cli/cron.php >/dev/null +*/15 * * * * __APP__ /usr/bin/php__YNH_PHP_VERSION__ -f __FINAL_PATH__/admin/cli/cron.php diff --git a/conf/nginx.conf b/conf/nginx.conf index 1efbff7..062cca2 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -11,8 +11,7 @@ location __PATH__/ { index index.php; - # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file - #client_max_body_size 50M; + client_max_body_size 1G; try_files $uri $uri/ index.php; location ~ [^/]\.php(/|$) { diff --git a/conf/php-fpm.conf b/conf/php-fpm.conf index ab1a471..77b381e 100644 --- a/conf/php-fpm.conf +++ b/conf/php-fpm.conf @@ -419,12 +419,12 @@ chdir = __FINALPATH__ ;php_admin_value[memory_limit] = 32M ; Common values to change to increase file upload limit -; php_admin_value[upload_max_filesize] = 50M -; php_admin_value[post_max_size] = 50M +php_admin_value[upload_max_filesize] = 1G +php_admin_value[post_max_size] = 1G ; php_admin_flag[mail.add_x_header] = Off ; Other common parameters ; php_admin_value[max_execution_time] = 600 ; php_admin_value[max_input_time] = 300 ; php_admin_value[memory_limit] = 256M -; php_admin_flag[short_open_tag] = On +; php_admin_flag[short_open_tag] = On \ No newline at end of file diff --git a/scripts/install b/scripts/install index b1a8a47..21f4e35 100644 --- a/scripts/install +++ b/scripts/install @@ -157,6 +157,7 @@ exec_as "$app" php$YNH_PHP_VERSION "$final_path/admin/cli/purge_caches.php" # Set up poller sudo cp "../conf/cron" "/etc/cron.d/$app" +ynh_replace_string "__APP__" "$app" "/etc/cron.d/$app" ynh_replace_string "__FINAL_PATH__" "$final_path" "/etc/cron.d/$app" ynh_replace_string "__YNH_PHP_VERSION__" "$YNH_PHP_VERSION" "/etc/cron.d/$app" diff --git a/scripts/restore b/scripts/restore index 726c428..b3aa75a 100644 --- a/scripts/restore +++ b/scripts/restore @@ -96,7 +96,7 @@ ynh_install_php --phpversion="$YNH_PHP_VERSION" --package="$extra_pkg_dependenci #================================================= # RESTORE THE POSTGRESQL DATABASE #================================================= -ynh_script_progression --message="Restoring the PostgreSQL database..."--weight=47 +ynh_script_progression --message="Restoring the PostgreSQL database..." --weight=47 ynh_psql_test_if_first_run diff --git a/scripts/upgrade b/scripts/upgrade index 3492317..80abc43 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -131,6 +131,7 @@ chown -R "$app": "$final_path" # Set up poller sudo cp "../conf/cron" "/etc/cron.d/$app" +ynh_replace_string "__APP__" "$app" "/etc/cron.d/$app" ynh_replace_string "__FINAL_PATH__" "$final_path" "/etc/cron.d/$app" ynh_replace_string "__YNH_PHP_VERSION__" "$YNH_PHP_VERSION" "/etc/cron.d/$app"