用Nginx + PHP-FPM,預設上傳限制是511M,因此需要修改相關設定才能提高上傳大小
一、php.ini設定
#vim /etc/php.ini
expose_php = off
upload_max_filesize = 10240M
max_file_uploads = 100
post_max_size = 10240M
date.timezone = “Asia/Taipei”
memory_limit = 512M
max_input_time 3600
max_execution_time 3600
upload_tmp_dir = /data/tmp #這是拿來放暫存檔的
二、使用Nginx + PHP-FPM
#vim /var/www/nextcloud/.user.ini
upload_max_filesize=10240M
post_max_size=10240M
三、使用Apache + PHP
#vim /var/www/nextcloud/.htaccess
找到對應的版本php5 / php7 下
php_value upload_max_filesize 10240M
php_value post_max_size 10240M