Internal Server Error (500) because of limitation in PHP values

Post Reply
User avatar
Posts: 61
Joined: Mon Jul 19, 2021 1:41 am

If we search for more details in PHP error log and see:

Code: Select all

[Tue Oct 04 01:20:00.425656 2022] [proxy_fcgi:error] [pid 26104:tid 140062074345216] [client] AH01067: Failed to read FastCGI header, referer:
[Tue Oct 04 01:20:00.425674 2022] [proxy_fcgi:error] [pid 26104:tid 140062074345216] (104)Connection reset by peer: [client] AH01075: Error dispatching request to : , referer:
Error dispatching indicates that problem is probably in the request_terminate_timeout value (value from pool.d conf file) or process died because of some internal PHP error.

So for more information we should inspect /var/log/phpX.X-fpm.log

For example, here we will find:

Code: Select all

[04-Oct-2022 01:20:00] WARNING: [pool] child 8996, script '//home/oskar/web/' (request: "POST /dup-installer/main.installer.php") execution timed out (31.889541 sec), terminating
[04-Oct-2022 01:20:00] WARNING: [pool] child 8996 exited on signal 15 (SIGTERM) after 36.079954 seconds from start
So, here we clearly see that problem is in request_terminate_timeout.
In order to prevent this error, we should increase this value. Here you can read more about where and how to do that: viewtopic.php?p=172#p172

Post Reply