• Skip to main content

Connections.Digital

Media Production, Mobile Web and iOS Development

  • Facebook
  • X
  • YouTube
  • GitHub
  • Home
  • Media Production
  • Blog
  • Galleries
  • Contact
  • About

October 22, 2020

Increase File Upload Size Limit in PHP-Nginx

Change php.ini

From Terminal

  • $ nano /etc/php/7.4/fpm/php.ini
  • Set…
upload_max_filesize = 120M
post_max_size = 120M

Change Nginx config

From Terminal

  • $ nano /etc/nginx/nginx.conf 
  • Set..
http {
	#...
        client_max_body_size 100m;
	#...
}

Restart NGINX

# systemctl restart nginx.service

# systemctl start php7.4-fpm.service

Changes in WordPress-Multisite

Network Admin >> Dashboard >> Settings >> Network Settings. Look for Upload Settings

Also change value for Max upload file size

wordpress-upload-settings.png

Resources

  • https://easyengine.io/tutorials/php/increase-file-upload-size-limit/

Filed Under: NGINX Tagged With: #Wordpress, Amarillo, NGINX, PHP, Texas

Reader Interactions

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Copyright © Connections Information Systems

Designed by Kenneth Jackson at Connections.Digital in Amarillo, Texas

Powered by WPplaces

 

Loading Comments...