diff --git a/conf/php-fpm.ini b/conf/php-fpm.ini new file mode 100644 index 0000000..0dab855 --- /dev/null +++ b/conf/php-fpm.ini @@ -0,0 +1,10 @@ +; Common values to change to increase file upload limit +; upload_max_filesize = 50M +; post_max_size = 50M +; mail.add_x_header = Off + +; Other common parameters +; max_execution_time = 600 +; max_input_time = 300 +; memory_limit = 256M +; short_open_tag = On \ No newline at end of file diff --git a/scripts/backup b/scripts/backup index 0aeaf10..d7d42af 100644 --- a/scripts/backup +++ b/scripts/backup @@ -48,8 +48,8 @@ ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf" # BACKUP THE PHP-FPM CONFIGURATION #================================================= -ynh_backup "/etc/php7/fpm/pool.d/$app.conf" -ynh_backup "/etc/php7/fpm/conf.d/20-$app.ini" +ynh_backup "/etc/php7.0/fpm/pool.d/$app.conf" +ynh_backup "/etc/php7.0/fpm/conf.d/20-$app.ini" # Backup directory location for the app from where the script is executed and # which will be compressed afterward diff --git a/scripts/remove b/scripts/remove index 8df465c..1bbd556 100644 --- a/scripts/remove +++ b/scripts/remove @@ -55,7 +55,7 @@ ynh_app_setting_set $app is_public $is_public if [ "$(lsb_release --codename --short)" != "jessie" ] then - ynh_install_app_dependencies php-sqlite3 + ynh_install_app_dependencies php7.0-sqlite3 else ynh_install_app_dependencies php5-sqlite fi diff --git a/scripts/restore b/scripts/restore index 46203de..3b5972a 100644 --- a/scripts/restore +++ b/scripts/restore @@ -55,7 +55,7 @@ ynh_app_setting_set $app is_public $is_public if [ "$(lsb_release --codename --short)" != "jessie" ] then - ynh_install_app_dependencies php-sqlite3 + ynh_install_app_dependencies php7.0-sqlite3 else ynh_install_app_dependencies php5-sqlite fi diff --git a/scripts/upgrade b/scripts/upgrade index 46203de..3b5972a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -55,7 +55,7 @@ ynh_app_setting_set $app is_public $is_public if [ "$(lsb_release --codename --short)" != "jessie" ] then - ynh_install_app_dependencies php-sqlite3 + ynh_install_app_dependencies php7.0-sqlite3 else ynh_install_app_dependencies php5-sqlite fi