• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

KennethJackson.Tech

Multimedia Production in Amarillo, Texas

  • Home
  • IT Services
    • Web
  • Music
    • Audio
    • Woodshed
  • Video
  • News
  • About
  • Contact
You are here: Home / NGINX / Increase File Upload Size Limit in PHP-Nginx

Increase File Upload Size Limit in PHP-Nginx

October 22, 2020 by Kenneth Jackson Leave a Comment

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/

Share this:

  • Share
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to print (Opens in new window) Print
  • Click to email a link to a friend (Opens in new window) Email
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on WhatsApp (Opens in new window) WhatsApp

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

Leave a ReplyCancel reply

  • Facebook
  • GitHub
  • Twitter
  • YouTube

Kenneth Jackson

(806) 374-2323
Please leave a voice or text message.

Contact Kenneth

Recent Posts: KennethJackson.Tech

Effects Design – Jon Dattorro – Notes

Erica Synths – EDU DIY Hi-Hat – Notes

Erica Synths – EDU DIY Snare Drum – Notes

Erica Synths – EDU DIY Kick Drum – Notes

Ornament and Crime (o_C) – Notes

  • Facebook
  • Twitter
  • YouTube
  • GitHub
  • Discord
  • Contact Me
  • Payments
  • Privacy Policy

Copyright © Kenneth Jackson

Designed by Kenneth Jackson in Amarillo, Texas

Powered by WPplaces

 

Loading Comments...