Weird problem with Apache and php
Niels Kobschätzki
niels at kobschaetzki.net
Thu Jun 10 02:14:57 UTC 2021
Schöne Grüße
Niels
> On 9. Jun 2021, at 22:35, Valeri Galtsev <galtsev at kicp.uchicago.edu> wrote:
>
>
>
>> On 6/9/21 2:48 PM, Niels Kobschätzki wrote:
>> Hi,
>> I have a weird problem on an old machine (FBSD 11.2, Apache 2.4, php 7.1 - please don’t ask): I am trying to upload files via a simple php-script. I am using mod_proxy_fcgi for connecting Apache to php-fpm. When I try to upload a file of a size between 63 and 64 KByte it works fine. As soon as the file is 1 Byte bigger the following happens:
>> The upload starts and I see the temporary file popping up in /tmp and it is at max ca 40KByte in size. Interestingly it was today a different size in Bytes then with my tests yesterday but it is over the day always the exact same size. Then php hangs and suddenly php-fpm disconnects and errors out and the browser shows that something went wrong - maybe the server is busy, but no error code. That suddenly is always around 18 seconds and it is also always the same time.
>> I attached truss to the php-fpm-process that handles the upload and you see it start, then nothing happens and php-fpm releases the connection. I did a tcpdump on the loopback-interface on port 9000 and you see that the upload starts and suddenly there is an error uploading the file-message in the dump.
>> I checked the post_max_size and the upload_max_size, they are at over 100MB.
>
> I would also check memory_limit and make it larger than the above.
That’s already the the case.
Niels
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2481 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20210610/5eb064fb/attachment.bin>
More information about the freebsd-questions
mailing list