413 Request Entity Too Large (NGINX)

I’m trying to upload a very large backup file 1,34gb in a Local site and I’m getting this error 413.

I’ve gone after some solutions, on PHP and Apache, but none of them works.
I already increased upload_max_size and post_max_size to be able to upload the file, but something on the server complains about the file size.

My environment is PHP 7.1.4 and Apache only.

But funny enough the response header comes with information from nginx, even though I’m not using it.
image

I know there are directives from Apache and from Nginx that may influence this, but changing the Apache directive did nothing, as well as enabling Nginx and changing it.
This makes me think that maybe Local runs a top server with nginx and I can’t find any configuration for that to be able to change its directives.

Am I right to think that?
And how can I solve that?

Unless your testing something that needs to upload this, why don’t you copy it into the local directory file structure?

~/Local Sites/mysite/app/public/...

Hey Andy, thanks for the suggestion, but I’m actually using a backup plugin that doesn’t have this manual import option. I don’t know if you are familiar with All-in-one WP Migrate, but the backups when made are registered on the database, if you just upload (or move) the file to the site structure the plugin won’t find the file unless there’s an entry of it on the database…

Sorry it’s not a solution for you. It was worth a shot.

1 Like

@ atempel

Did you find any solution for this?

I am using the same plugin and getting the same error

Hey @raftaar1191 sorry but this was a long time ago.
I probably tried to find a different plugin or a different way to import the backup.

You may try to now to upload the backup file into the All-in-One folder inside the /wp-content/uploads folder. They have made possible to paste a file there and import directly from the “Backups” menu in All-in-One.
But if I’m not mistaken, you need to buy a copy of the plugin in order to apply backups back to the site from the interface.