error while uploading a file using file manager

Started by seco, January 26, 2017, 03:00:20 PM

Previous topic - Next topic

seco

Hello
i just install cwp on centos 7 and im trying to upload a 7MB file using simple file manager
it gives me this error

413 Request Entity Too Large
nginx


i search google for that and found that have to set client_max_body_size to higher value and php max_post size
and upload_max_size and also
i set all this nothing worked ans still the same error
i even change the server from apache+nginx proxy to varnish and still shows the same error !!

how to solve this?
thanks in advance.

robbyq

Quote from: seco on January 26, 2017, 03:00:20 PM
Hello
i just install cwp on centos 7 and im trying to upload a 7MB file using simple file manager
it gives me this error

413 Request Entity Too Large
nginx


i search google for that and found that have to set client_max_body_size to higher value and php max_post size
and upload_max_size and also
i set all this nothing worked ans still the same error
i even change the server from apache+nginx proxy to varnish and still shows the same error !!

how to solve this?
thanks in advance.

go edit nano /etc/php.ini

seco

#2
what value exactly in php you mean to modify
i already modify
post_max_size
and
upload_max_size
in php.ini

robbyq

Quote from: seco on January 26, 2017, 03:21:22 PM
what value exactly in php you mean to modify
i already modify
post_max_size
and
upload_max_size
in php.ini

thatok, try service httpd restart and see if can upload.

seco

i restart the whole server not just apache and still the cwp file manager not able to upload 7MB file !!


seco

i adjust client_max_body_size and restart the server and still the same
even i completely remove nginx and still the same error !!

but i tried something
i tried to upload a file by a normal php upload script from my website and it is very big it uploaded successfully
i think this error in the configuration of teh cwp file manager

Sandeep

you're doing it wrong follow the instructions carefully. if you're using centos 7 CWP