Apache AH01067: Failed to read FastCGI header
Apache AH01067 means a FastCGI record header could not be read. Match AH01075 with PHP-FPM logs to distinguish a closed connection from a read timeout.
[Sat Nov 28 21:28:54.791446 2026] [proxy_fcgi:error] … AH01067: Failed to read FastCGI header[Sat Nov 28 21:28:54.791591 2026] [proxy_fcgi:error] … (70014)End of file found: … AH01075: Error dispatching request to …When Apache logs AH01067, read the error prefix on the matching AH01075 line first. mod_proxy_fcgi logs AH01067 when it cannot read a complete FastCGI record header from the connected backend. The response loop reads a header for each record, so the message alone cannot tell you which record was interrupted. FastCGI header read in httpd 2.4.71
[1] Find AH01067 and AH01075 around the time of the failure. Use the path configured in ErrorLog, including any separate log for the virtual host. With the default log format, match the timestamp, process, thread, and client. Use the access log to identify the request path and HTTP status.
$ grep -E 'AH01067|AH01075|AH01079' /usr/local/apache2/logs/error_log | tail -n 30In the test, AH01075 carried the prefix (70014)End of file found and the client got HTTP 503. The prefix helps identify the status returned by the read. If it mentions a timeout, check how long the request was in progress. If you see AH01079: failed to make connection to backend, start with the target socket and FPM listener because the connection failed earlier. Dispatch error handling · Backend connection handling
[2] Identify the FPM pool serving the failed request. Match the TCP address and port or the Unix socket in the virtual host's SetHandler, ProxyPass, or ProxyPassMatch against the pool's listen setting. For loopback, check that Apache and FPM share a network namespace. In this example they shared one, and FPM could read /var/www/html/probe.php. Apache FastCGI configuration examples · PHP-FPM pool configuration
ProxyPassMatch "^/(probe\.php)$" "fcgi://127.0.0.1:9000/var/www/html/$1"Send the repeat request to the HTTP URL served by Apache. Port 9000 in this example speaks FastCGI. If the backend URL uses http:// or https:// and the log shows AH01102, follow the HTTP status line checks.
[3] Read the FPM and application logs around the time Apache reported the failure. The example uses a systemd unit named php8.3-fpm. Adjust the unit and time range to your deployment. If FPM writes to a file, use the path in its global error_log setting.
$ journalctl -u php8.3-fpm --since '10 minutes ago' --no-pagerLook for a worker exit or pool restart at the time the connection closed. If a request limit appears to be involved, compare the pool's request_terminate_timeout with the termination time in the log. The PHP manual says FPM kills the worker serving a request that exceeds this limit. For a read timeout on the Apache side, compare backend processing time with the proxy worker's timeout for socket I/O. FPM request timeout · Apache proxy worker timeouts
[4] After fixing the cause, repeat the original request and check the HTTP response and new log entries. In the test, a backend that read the full FastCGI request and closed without replying was replaced with PHP-FPM. The Apache configuration, URL path, and backend port stayed the same. Here endpoint is the host address and port Docker assigned for the test. Use the actual HTTP URL in production.
$ curl --max-time 5 -sS -w 'HTTP %{http_code}\n' "http://$endpoint/probe.php"php-fpm okHTTP 200The request that returned 200 added no AH01067 entry. On a busy server, check the access log for the failing path and the error log for the timestamp of the repeat request.
Analyze your Apache log in the browser ↗ — nothing is uploaded.