V
V
Vyacheslav Barsukov2016-03-10 10:00:37
PHP
Vyacheslav Barsukov, 2016-03-10 10:00:37

Why is the file uploading to the server slow?

Good afternoon, there is a bunch of nginx + apache + php
There is a script that accepts a file via

$f = fopen($dir.$filename, 'ab');
  fwrite($f, file_get_contents('php://input'));
  fclose($f);

So when you upload a file to the server, the speed drops to 70kb per second. FTP download is fast. Channel 100Mbit / s
Disabled nginx - the same result.
When transferring the script to another server - no problem. So there is a limit somewhere.
What could it be? There is no fine tuning of the server.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mikes, 2016-03-10
@mikes

check memory_limit in php on both servers

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question