User Tools

Site Tools


larger-uploads

Make file sizes larger in PHP and Nginx and other PHP defaults.

  • Open up /etc/nginx/nginx.conf and add this line:
# set max upload size
        client_max_body_size 1G;
  • Open up /etc/php/7.4/fpm/php.ini
  • Edit these lines
Resource Limits
memory_limit = 512M
 
Data Handling
 
post_max_size = 1024M
 
File Uploads
 
upload_max_filesize = 1024M
 
Date
 
date.timezone = Europe/London
larger-uploads.txt · Last modified: 2023/05/17 22:52 by 127.0.0.1