Mobile app version of vmapp.org
Login or Join
Shakeerah822

: 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.

@Shakeerah822

Posted in: #Configuration #Nginx

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Shakeerah822

1 Comments

Sorted by latest first Latest Oldest Best

 

@Debbie626

You didn't write ; at the end of the line. :) I've done the same mistake - and got the same alert.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme