Answer the question
In order to leave comments, you need to log in
Problem uploading files to the server
Given:
1. VPS server
2. PHP settings
- max_execution_time = 600
- max_input_time = 600
- memory_limit = 256M
- post_max_size = 100M
- upload_max_filesize = 100M
- max_file_uploads = 40
3. Nngix settings
- client_max_body_size 100M in ngnix settings
When uploading any files ( minimum size - 354 KB) the following happens to the server:
they are loaded up to about 30%, after that the download state is reset to 0%, the file is downloaded again at about 30% and the browser (Chrome) gives the following error: Error 101 (net::ERR_CONNECTION_RESET) : Connection dropped.
The situation is similar in other browsers.
Answer the question
In order to leave comments, you need to log in
Thanks for the instruction)))
Alas, but the error continues to go, when I download a file of 2.5 MB, I see a native window. There is nothing in the ngnix logs related to my problem
Now the config looks like this
The error remained, but these logs
were written 5.143.172.103 — - [03/Nov/2013:23:05:39 +0400] "-" 408 0 "-" "-"
5.143.172.103 — - [03/Nov/2013 :23:05:39 +0400] "-" 408 0 "-" "-"
5.143.172.103 — - [03/Nov/2013:23:06:27 +0400] "-" 400 0 "-" "
/etc/nginx/conf.d/*.conf; - the directory is empty
/etc/nginx/sites-enabled/*; - default -> /etc/nginx/sites-available/default
[Sun Nov 03 23:37:00 2013] [warn] [client 5.143.172.103] mod_fcgid: HTTP request length 133905 (so far) exceeds MaxRequestLen (131072), referer: http://imanit.ru/administrator/index.php?option=com_jshopping&controller=update
You know, what a crazy thought I have... Your requests are received by nginx, and then they are sent to port 81, where Apache sits... Or does it cut me like that by midnight :)
Is there any limit on the file size in php.ini? By default it's like 2 meters
exceeds MaxRequestLen (131072)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question