Weird problem with Apache and php

Niels Kobschätzki niels at kobschaetzki.net
Thu Jun 10 07:21:01 UTC 2021


On 10 Jun 2021, at 1:50, Daniel Dowse wrote:

> On Wed, 9 Jun 2021 21:48:04 +0200
> Niels Kobschätzki <niels at kobschaetzki.net> 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: [snip]
>
> Hi niels,
>
> i would suggest to look at mod_reqtimeout and continue with loglevel
> debug/trace.

I tried it and didn’t get any new information out of that:

[Thu Jun 10 09:14:58.652992 2021] [proxy:trace2] [pid 4186:tid 34504614656] proxy_util.c(2155): [client this.is.my.ip:62429] *: using default reverse proxy worker for fcgi://127.0.0.1:9000/usr/local/www/apache22/data/www.somedomain.de/path/general.php (no keepalive), referer: https://subw.somedomain.de/path/general.html
[Thu Jun 10 09:14:58.653035 2021] [proxy:debug] [pid 4186:tid 34504614656] mod_proxy.c(1247): [client this.is.my.ip:62429] AH01143: Running scheme fcgi handler (attempt 0), referer: https://subw.somedomain.de/path/general.html
[Thu Jun 10 09:14:58.653070 2021] [proxy_fcgi:debug] [pid 4186:tid 34504614656] mod_proxy_fcgi.c(1019): [client this.is.my.ip:62429] AH01076: url: fcgi://127.0.0.1:9000/usr/local/www/apache22/data/www.somedomain.de/path/general.php proxyname: (null) proxyport: 0, referer: https://subw.somedomain.de/path/general.html
[Thu Jun 10 09:14:58.653109 2021] [proxy_fcgi:debug] [pid 4186:tid 34504614656] mod_proxy_fcgi.c(1028): [client this.is.my.ip:62429] AH01078: serving URL fcgi://127.0.0.1:9000/usr/local/www/apache22/data/www.somedomain.de/path/general.php, referer: https://subw.somedomain.de/path/general.html
[Thu Jun 10 09:14:58.653160 2021] [proxy:debug] [pid 4186:tid 34504614656] proxy_util.c(2325): AH00942: FCGI: has acquired connection for (*)
[Thu Jun 10 09:14:58.653204 2021] [proxy:debug] [pid 4186:tid 34504614656] proxy_util.c(2379): [client this.is.my.ip:62429] AH00944: connecting fcgi://127.0.0.1:9000/usr/local/www/apache22/data/www.somedomain.de/path/general.php to 127.0.0.1:9000, referer: https://subw.somedomain.de/path/general.html
[Thu Jun 10 09:14:58.653249 2021] [proxy:debug] [pid 4186:tid 34504614656] proxy_util.c(2588): [client this.is.my.ip:62429] AH00947: connected /usr/local/www/apache22/data/www.somedomain.de/path/general.php to 127.0.0.1:9000, referer: https://subw.somedomain.de/path/general.html
[Thu Jun 10 09:14:58.653306 2021] [proxy:trace2] [pid 4186:tid 34504614656] proxy_util.c(3022): FCGI: fam 2 socket created to connect to *
[Thu Jun 10 09:14:58.653552 2021] [proxy:debug] [pid 4186:tid 34504614656] proxy_util.c(3054): AH02824: FCGI: connection established with 127.0.0.1:9000 (*)
[Thu Jun 10 09:15:18.299256 2021] [proxy_fcgi:error] [pid 4186:tid 34504614656] (54)Connection reset by peer: [client this.is.my.ip:62429] AH01075: Error dispatching request to : (reading input brigade), referer: https://subw.somedomain.de/path/general.html
[Thu Jun 10 09:15:18.299303 2021] [proxy:debug] [pid 4186:tid 34504614656] proxy_util.c(2340): AH00943: FCGI: has released connection for (*)

We are talking about uploading currently relatively small files with less than 500kb that even do not work. Only very small files (somewhere between 63kb and 64kb is max) work.

Niels
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4050 bytes
Desc: S/MIME digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20210610/c9f15b48/attachment.bin>


More information about the freebsd-questions mailing list