Control Web Panel

WebPanel => Apache => Topic started by: seco on January 26, 2017, 03:00:20 PM

Title: error while uploading a file using file manager
Post by: 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

Code: [Select]
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.
Title: Re: error while uploading a file using file manager
Post by: robbyq on January 26, 2017, 03:17:25 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

Code: [Select]
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
Title: Re: error while uploading a file using file manager
Post by: 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
Title: Re: error while uploading a file using file manager
Post by: robbyq on January 26, 2017, 03:34:18 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.
Title: Re: error while uploading a file using file manager
Post by: seco on January 26, 2017, 03:52:14 PM
i restart the whole server not just apache and still the cwp file manager not able to upload 7MB file !!
Title: Re: error while uploading a file using file manager
Post by: Sandeep on January 27, 2017, 06:10:56 AM
http://forum.centos-webpanel.com/mysql/413-request-entity-too-large-by-phpmyadmin/msg9632/#msg9632
Title: Re: error while uploading a file using file manager
Post by: seco on January 27, 2017, 07:06:21 AM
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
Title: Re: error while uploading a file using file manager
Post by: Sandeep on January 27, 2017, 08:37:09 AM
you're doing it wrong follow the instructions carefully. if you're using centos 7 CWP