Browse Source

Merge pull request #188 from YunoHost-Apps/fix_various_warnings

Fix impossible upload via web interface and various warnings
pull/194/head
JimboJoe 7 years ago
committed by GitHub
parent
commit
36f10cbc57
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      conf/nginx.conf
  2. 3
      conf/php-fpm.conf
  3. 7
      conf/php-fpm.ini
  4. 4
      scripts/upgrade

2
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(/.*|)$ { location ~ ^__PATH__/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+|ocm-provider/.+)\.php(/.*|)$ {
include fastcgi_params; include fastcgi_params;
fastcgi_split_path_info ^(.+\.php)(/.*|)$;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param HTTPS on; fastcgi_param HTTPS on;

3
conf/php-fpm.conf

@ -392,7 +392,7 @@ chdir = __FINALPATH__
;env[TMP] = /tmp ;env[TMP] = /tmp
;env[TMPDIR] = /tmp ;env[TMPDIR] = /tmp
;env[TEMP] = /tmp ;env[TEMP] = /tmp
env[PATH] = $PATH
; Additional php.ini defines, specific to this pool of workers. These settings ; 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 ; overwrite the values previously defined in the php.ini. The directives are the
; same as the PHP SAPI: ; same as the PHP SAPI:
@ -433,7 +433,6 @@ chdir = __FINALPATH__
php_value[upload_max_filesize] = 10G php_value[upload_max_filesize] = 10G
php_value[post_max_size] = 10G php_value[post_max_size] = 10G
php_value[default_charset] = UTF-8 php_value[default_charset] = UTF-8
php_value[always_populate_raw_post_data] = -1
php_value[opcache.enable]=1 php_value[opcache.enable]=1
php_value[opcache.enable_cli]=1 php_value[opcache.enable_cli]=1
php_value[opcache.interned_strings_buffer]=8 php_value[opcache.interned_strings_buffer]=8

7
conf/php-fpm.ini

@ -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

4
scripts/upgrade

@ -148,6 +148,10 @@ ynh_print_info "Upgrading php-fpm configuration..."
# Create a dedicated php-fpm config # Create a dedicated php-fpm config
ynh_add_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 # UPGRADE DEPENDENCIES
#================================================= #=================================================

Loading…
Cancel
Save