Page 1 of 1

[SOLVED] HTTP Error while uploading more than 10MB to Wordpress

Posted: Fri Jan 08, 2016 2:42 pm
by Ardi
Hello,

I have two VPS with 1GB Ram and both of them have Vesta Panel 0.9.8.15 and on both vps I have Wordpress 4.4.1 installed.
Whenever I try to upload files more than 10MB to wordpress media library I got :
HTTP error or
Request Entity Too Large
The requested resource
/wp-admin/media-new.php
does not allow request data with POST requests, or the amount of data provided in
the request exceeds the capacity limit.


I overdrive etc/php.ini settings as below:
max_execution_time = 30
max_input_time = 60
memory_limit = 512M
post_max_size = 1024M
upload_max_filesize = 512M
max_file_uploads = 50
default_socket_timeout = 60

I overdrive etc/my.cnf settings as below:
max_allowed_packet=512M

But still no luck, I'm tired of messing with Vesta config files and wordpress and rebooting vps.

I appreciate any help from you.
Thank you

Re: HTTP Error while uploading more than 10MB to Wordpress

Posted: Fri Jan 08, 2016 3:01 pm
by skurudo
/home/user/conf/web/nginx.conf - add client_max_body_size or edit in main nginx config

Code: Select all

server {
    ...
    client_max_body_size 32m
    ...
}

Re: HTTP Error while uploading more than 10MB to Wordpress

Posted: Fri Jan 08, 2016 3:11 pm
by Ardi
skurudo wrote:/home/user/conf/web/nginx.conf - add client_max_body_size or edit in main nginx config

Code: Select all

server {
    ...
    client_max_body_size 32m
    ...
}
At last!!!! Working, THANK YOU THANK YOU THANK YOU MILLIONS TIMES!!!!!!!!!!!!!!!!!

Best Regards!

Re: HTTP Error while uploading more than 10MB to Wordpress

Posted: Wed Jan 13, 2016 1:08 pm
by skurudo
Glad to help ;-)