Last active
March 12, 2021 07:56
-
-
Save omkar-tenkale/69558fcc182eb5d3a0f44cae47f7194e to your computer and use it in GitHub Desktop.
nginx ubuntu wordpress theme upload error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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