: Nginx fails to restart after changing "client_max_body_size" I'm testing Wordpress on Ubuntu 14.04 with Lemp and having some issues - the latest is I'm trying to import a 30mb file into Wordpress.
I'm testing Wordpress on Ubuntu 14.04 with Lemp and having some issues - the latest is I'm trying to import a 30mb file into Wordpress. Doing the import it says 128M limit - which I configured in the php.ini.
But I get a "Request Entity Too Large" error when I tried to upload.
Looking up that error I learned nginx has a default of 1mb for uploads and you need to add, to the nginx.conf (I also tried the .../sites-available/default) file the line:
client_max_body_size 128m (for 128m limit)
When I do that I reload php - no problem.
When I try to restart nginx it says "fail" in red in my terminal window.
Can anyone help out?
More posts by @Shakeerah822
1 Comments
Sorted by latest first Latest Oldest Best
You didn't write ; at the end of the line. :) I've done the same mistake - and got the same alert.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.