HTTP 413 error on larger file upload to Wordpress

So I recently tried to increase my file size upload limits via phprc.

I first upgraded to PHP 7.1 FastCGI (it was 5.6 before). Then I created the phprc and added:

upload_max_filesize = 200M
post_max_size = 205M
max_execution_time = 500
max_input_time = 500

I’d actually like to make it more like 1000M/1005M/2000/2000 (would that work too?), but since I was having problems with that, reduced it.

Killed all PHP processes.

The new limits reflect in the Wordpress media uploader.

The problem is that when I try to upload my 160 MB file, I get an immediate HTTP 413 error: Request entity too large

Despite multiple attempts, in my ~/logs/domain/http/error.log, all I find is this one line:

[Sat Oct 07 07:56:52 2017] [error] [client] Premature end of script headers: admin-ajax.php, referer:

Any ideas what’s going on?

Possibly you need to increase memory_limit too? The PHP INI page mentions that memory_limit should be set larger then post_max_size.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.