apfelcast

Nextcloud 19

Jun 13th, 2020
5,796
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. ##### NC Upadte auf V19 #####
  2.  
  3. cd /var/www/nextcloud
  4. sudo -u www-data php occ upgrade
  5. sudo -u www-data php occ maintenance:mode --off
  6.  
  7. nano .htaccess
  8. Header set Strict-Transport-Security "max-age=31536000; includeSubDomains;
  9.  
  10.  
  11. ##### PHP 7.2 zu PHP 7.4 #####
  12.  
  13.  
  14. apt install software-properties-common
  15. add-apt-repository ppa:ondrej/php
  16. apt update
  17.  
  18.  
  19. apt install php7.4 php7.4-common php7.4-cli
  20.  
  21. apt install php7.4-curl php7.4-mbstring php7.4-bz2 php7.4-readline php7.4-intl
  22. apt install php7.4-bcmath php7.4-bz2 php7.4-curl php7.4-intl php7.4-mbstring php7.4-mysql php7.4-readline php7.4-xml php7.4-zip php7.4-apcu php7.4-redis
  23.  
  24. a2dismod php7.2
  25. a2enmod php7.4
  26.  
  27. service apache2 restart
  28.  
  29. php -v
  30.  
  31. apt purge php7.2 php7.2-common
  32.  
  33. service apache2 restart
  34.  
  35. nano /etc/php/7.4/apache2/php.ini
  36.  
  37. upload_max_filesize = 50G
  38. post_max_size = 50G
  39. memory_limit = 256M
  40. max_execution_time = 600
  41. max_input_vars = 3000
  42. date.timezone = Europe/Berlin
  43.  
  44. opcache.enable=1
  45. opcache.enable_cli=1
  46. opcache.interned_strings_buffer=8
  47. opcache.max_accelerated_files=10000
  48. opcache.memory_consumption=128
  49. opcache.save_comments=1
  50. opcache.revalidate_freq=1
  51.  
  52. service apache2 restart
Add Comment
Please, Sign In to add comment