Vesta 2.0 is coming soon! See our progress update: https://vestacp.com/docs/vesta-2-update
[SOLVED] HTTP Error while uploading more than 10MB to Wordpress
[SOLVED] HTTP Error while uploading more than 10MB to Wordpress
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
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
/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
At last!!!! Working, THANK YOU THANK YOU THANK YOU MILLIONS TIMES!!!!!!!!!!!!!!!!!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 ... }
Best Regards!
Re: HTTP Error while uploading more than 10MB to Wordpress
Glad to help ;-)