Docker PHP Runtime Debugger

•
45
•

Diagnoses and fixes PHP-FPM and Nginx container failures including 502 errors, OOM kills, and permission issues.

This skill provides Claude Code with specialized expertise in troubleshooting containerized PHP environments. It systematically analyzes logs and configurations to identify the root causes of common runtime failures such as 502 Bad Gateway errors, OOM (Out of Memory) terminations, PHP-FPM pool exhaustion, and networking misconfigurations. By leveraging predefined detection patterns and grep-based diagnostics, it offers actionable fixes for Docker Compose setups, php.ini tuning, and Dockerfile permissions, significantly reducing the time spent debugging infrastructure-level issues in PHP applications.

Key Features

01Analysis of PHP-FPM pool exhaustion and segmentation faults
02Diagnosis of OOM (Out of Memory) kills with memory limit optimization
03Troubleshooting for connection refused and service dependency issues
04Identification of file ownership and permission errors in Docker layers
0545 GitHub stars
06Automated detection of 502 Bad Gateway and PHP-FPM crashes

Use Cases

01Resolving permission denied errors when moving code to a production Docker image
02Optimizing PHP-FPM configuration for high-traffic Docker environments
03Debugging a containerized PHP app that keeps restarting or timing out