If you're experiencing PHP issues, please review the following advice, depending on the specific issue or problem. Some of the most common issues: 499 HTTP response, max_children reached, Execution timeout, signal 11 (SIGSEGV), signal 9 (SIGKILL), Resource temporarily unavailable...
499 HTTP response status code
If you see 499 status code in your access.log file, then your PHP container running out of PHP-FPM works. The solution is to configure PHP sizing.
Server reached max_children
This error will appear in your app.log when your PHP container run out of PHP-FPM workers. The solution is to configure PHP sizing.
Execution timeout
If your PHP app can’t handle the amount of traffic or is slow, you encounter a message like:
WARNING: [pool web] child 120, script '/app/public/index.php' (request: "GET /index.php") execution timed out (358.009855 sec), terminating
To solve the issue, you need to configure max_execution_time.
Troubleshoot a crashed PHP process
If your PHP process crashed with a segmentation fault, you encounter a message like:
WARNING: [pool web] child 112 exited on signal 11 (SIGSEGV) after 7.405936 seconds from start
Either a PHP extension is hitting a segmentation fault or your PHP app code is crashing. Review recent changes in your app and try to find the root cause. You might want to use a tool such as Xdebug for quicker troubleshooting.
Troubleshoot a killed PHP process
If your PHP process is killed by the kernel, you encounter a message like:
WARNING: [pool web] child 429 exited on signal 9 (SIGKILL) after 50.938617 seconds from start
Review our documentation for further information on this topic.
Resource temporarily unavailable
If all PHP workers are busy, you encounter a message like:
connect() to unix:/run/app.sock failed (11: Resource temporarily unavailable)
This can be because too many requests are coming in at once or the requests are taking too long to be processed (such as with calls to external third-party servers without timeouts).
Review our documentation for further information on this topic.