From d66955e6c2e778575f05f1a9d922d22c1229c7c1 Mon Sep 17 00:00:00 2001 From: anmol26s Date: Wed, 3 Oct 2018 21:24:59 +0530 Subject: [PATCH] Remove ini file for php --- conf/php-fpm.conf | 12 ++++++++++++ conf/php-fpm.ini | 10 ---------- scripts/backup | 2 +- scripts/restore | 4 ++-- 4 files changed, 15 insertions(+), 13 deletions(-) delete mode 100644 conf/php-fpm.ini diff --git a/conf/php-fpm.conf b/conf/php-fpm.conf index 8affbc2..57affa6 100644 --- a/conf/php-fpm.conf +++ b/conf/php-fpm.conf @@ -390,3 +390,15 @@ catch_workers_output = yes ;php_admin_value[error_log] = /var/log/fpm-php.www.log ;php_admin_flag[log_errors] = on ;php_admin_value[memory_limit] = 32M + +; 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 + diff --git a/conf/php-fpm.ini b/conf/php-fpm.ini deleted file mode 100644 index 5c27d59..0000000 --- a/conf/php-fpm.ini +++ /dev/null @@ -1,10 +0,0 @@ -; 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 diff --git a/scripts/backup b/scripts/backup index 89baf90..9018672 100644 --- a/scripts/backup +++ b/scripts/backup @@ -55,7 +55,7 @@ ynh_backup "/etc/php5/fpm/conf.d/20-$app.ini" # BACKUP LOGROTATE #================================================= -ynh_backup "/etc/logrotate.d/$app" +ynh_backup "$final_path/data/log.txt" #================================================= # BACKUP FAIL2BAN CONFIGURATION diff --git a/scripts/restore b/scripts/restore index 4f1ed5a..6fdffe6 100644 --- a/scripts/restore +++ b/scripts/restore @@ -89,7 +89,7 @@ ynh_install_app_dependencies 'php5-cli|php-cli' php-gettext 'php5-curl|php-curl' # RESTORE THE LOGROTATE CONFIGURATION #================================================= -ynh_restore_file "/etc/logrotate.d/$app" +ynh_restore_file "$final_path/data/log.txt" #================================================= # RESTORE FAIL2BAN CONFIGURATION @@ -104,7 +104,7 @@ systemctl restart fail2ban #================================================= # RELOAD NGINX AND PHP-FPM #================================================= - +systemctl reload php5-fpm systemctl reload nginx