diff --git a/conf/nginx.conf b/conf/nginx.conf index 3159d95..6c5d7ec 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -65,7 +65,7 @@ location ^~ __PATH__/ { location ~ ^__PATH__/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+|ocm-provider/.+)\.php(/.*|)$ { include fastcgi_params; - fastcgi_split_path_info ^(.+\.php)(/.*|)$; + fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param HTTPS on; diff --git a/conf/php-fpm.conf b/conf/php-fpm.conf index 74825fa..f13ed6d 100644 --- a/conf/php-fpm.conf +++ b/conf/php-fpm.conf @@ -392,7 +392,7 @@ chdir = __FINALPATH__ ;env[TMP] = /tmp ;env[TMPDIR] = /tmp ;env[TEMP] = /tmp - +env[PATH] = $PATH ; Additional php.ini defines, specific to this pool of workers. These settings ; overwrite the values previously defined in the php.ini. The directives are the ; same as the PHP SAPI: @@ -433,7 +433,6 @@ chdir = __FINALPATH__ php_value[upload_max_filesize] = 10G php_value[post_max_size] = 10G php_value[default_charset] = UTF-8 -php_value[always_populate_raw_post_data] = -1 php_value[opcache.enable]=1 php_value[opcache.enable_cli]=1 php_value[opcache.interned_strings_buffer]=8 diff --git a/conf/php-fpm.ini b/conf/php-fpm.ini deleted file mode 100644 index 104f242..0000000 --- a/conf/php-fpm.ini +++ /dev/null @@ -1,7 +0,0 @@ -opcache.enable=1 -opcache.enable_cli=1 -opcache.interned_strings_buffer=8 -opcache.max_accelerated_files=10000 -opcache.memory_consumption=128 -opcache.save_comments=1 -opcache.revalidate_freq=1 diff --git a/scripts/upgrade b/scripts/upgrade index ef86f45..167bbe0 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -148,6 +148,10 @@ ynh_print_info "Upgrading php-fpm configuration..." # Create a dedicated php-fpm config ynh_add_fpm_config +# Delete existing ini configuration file (backward compatibility) +if [ -f /etc/php/7.0/fpm/conf.d/20-$app.ini ]; then + ynh_secure_remove /etc/php/7.0/fpm/conf.d/20-$app.ini +fi #================================================= # UPGRADE DEPENDENCIES #=================================================