Tag: nginx

Fixing Common LEMP + WordPress Issues on Ubuntu 20.04

Fixing Common LEMP + WordPress Issues on Ubuntu 20.04

You set up a LEMP stack on Ubuntu 20.04, followed the tutorial, and now things are… not quite right. PHP doesn’t seem to work properly. Or WordPress installs fine, but you can’t upload files larger than 2MB. And every guide you find suggests editing some random php.ini or .htaccess and ends up breaking things. Let’s clean this up step by…

Read More »
Nginx

Nginx client intended to send too large body

The other day I’ve saw these error in my nginx log: It turns out I need to increase the nginx conf client_max_body_size directive. The Nginx client_max_body_size directive controls the maximum size of files that can be uploaded to your server. The default value is 1MB, which is too small for many modern applications. If you are trying to upload a…

Read More »