Skip to content

Instantly share code, notes, and snippets.

@omkar-tenkale
Last active March 12, 2021 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omkar-tenkale/69558fcc182eb5d3a0f44cae47f7194e to your computer and use it in GitHub Desktop.
Save omkar-tenkale/69558fcc182eb5d3a0f44cae47f7194e to your computer and use it in GitHub Desktop.
nginx ubuntu wordpress theme upload error
How to fix errors while uploading themes on wordpress site (Ubuntu NGINX LEMP)
[Useful nano shortcut]
Search: CTRL + W
Save file: CTRL + X
1.Fix "413 Request Entity Too Large" Error
sudo nano /etc/nginx/nginx.conf
Add a line in the http section:
http {
client_max_body_size 100M;
}
systemctl restart nginx
2.Fix "The uploaded file exceeds the upload_max_filesize directive in php.ini." Error
sudo nano /etc/php/7.4/fpm/php.ini
Modify lines:
post_max_size 100M
upload_max_filesize 100M
sudo service php7.4-fpm restart
systemctl restart nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment