Apache logs 21
- 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.
Apache httpd 2.4.71 · PHP-FPM 8.3.37 (Docker) · 2026-11 - Fix Apache AH00132: file permissions deny server access
For a 403 with Apache AH00132, check that the request user can open the plain file at the end of the log line. Compare responses for mode 000 and 0644.
httpd 2.4.71 (Docker) · 2026-11 - Apache AH00113: cannot use a full URL in a 401 ErrorDocument directive
Apache can report Syntax OK while ignoring a full URL in ErrorDocument 401. Use a local URL path and check the notice from the same configuration test.
Apache httpd 2.4.71 (Docker) · 2026-11 - Apache AH01627: AuthType configured with no corresponding authorization directives
Fix Apache AH01627 on a protected path by restoring its Require rule. Compare the anonymous challenge with an authenticated GET after the change.
Apache httpd 2.4.71 (Docker) · 2026-11 - Apache AH02291: Cannot access directory for main error log
Resolve the ErrorLog path against ServerRoot when Apache reports AH02291. Check its parent directory and repeat the same configuration test.
Apache httpd 2.4.71 (Docker) · 2026-11 - Apache AH01102: error reading status line from remote server
Diagnose Apache AH01102 by requesting the same path directly from the backend. Check whether it sends a status line, closes the connection, or times out.
Apache httpd 2.4.71 · Python 3.12.16 (Docker) · 2026-11 - Apache AH00037: Symbolic link not allowed or link target not accessible
Apache AH00037 returns a 403 when a symlink check fails. Compare requests for the file and the link, then check the directory Options and target path.
httpd 2.4.71 (Docker) · 2026-11 - Apache AH01624: <RequireAll> directive contains only negative authorization directives
Fix Apache AH01624 by adding the intended IP allowlist to RequireAll, keeping the exclusion in place, and checking the configuration before applying it.
Apache httpd 2.4.71 (Docker) · 2026-11 - Apache log file location and LogFormat explained
Apache logs are in /var/log/apache2 on Ubuntu, /var/log/httpd on Rocky and docker logs for the httpd image. Find them via ErrorLog and CustomLog.
httpd 2.4.69 (Docker) · Ubuntu 24.04 apache2 2.4.58 · Rocky Linux 9 httpd 2.4.62 · 2026-11 - Apache "reached MaxRequestWorkers": cause and tuning
AH00484 or AH00161 in error.log means every worker slot is busy. Reproduce the queueing, find the slow requests, then size MaxRequestWorkers against memory.
Ubuntu 24.04.5 · Apache 2.4.58 (event, prefork) · 2.4 docs - Fix Apache 403 AH01630 with Require all granted
One error.log line explains a 403. Fix AH01630 with Require, see why 2.2-style Order/Allow fails on 2.4, and tell AH01630 from AH01797 and AH00035.
Ubuntu 24.04.5 · Apache 2.4.58 (temporary instance on port 18701) - Fix Apache AH00558: Could not determine the server's FQDN
If apache2ctl configtest or a reload prints AH00558, add a global ServerName. It is only a warning: the server still answered 200 with and without it.
Ubuntu 24.04 · Apache 2.4.58 (unpacked package, tested on port 18701) - Apache AH00111: Config variable ${APACHE_RUN_DIR} is not defined
AH00111 Config variable ${APACHE_RUN_DIR} is not defined: apache2 was run directly on Ubuntu and skipped envvars. Use apache2ctl with the same options.
Ubuntu 24.04 (Docker) · Apache 2.4.58 · 2026-10 - Fix Apache AH01797: client denied by old Order/Deny rules
AH01797 is a 403 from 2.2-style Order/Deny, not from Require. Find the leftover rules, convert them to Require, and see why mixing them overrides Require.
Apache httpd 2.4.69 (Docker) · 2026-10 - Fix Apache AH02565: Certificate and private key do not match
AH02565 means the first certificate and the key are not a pair. httpd -t still passes and graceful took Apache down, so compare public key hashes first.
httpd 2.4.69 (Docker) · OpenSSL 3.5.7 · 2026-10 - Fix Apache: threaded MPM, but PHP module not threadsafe
Apache refuses to start (AH00013) when a threaded MPM is loaded with a non-thread-safe mod_php. Switch back to prefork, or move to event plus PHP-FPM.
Ubuntu 24.04 · Apache 2.4.58 · PHP 8.3.6 (Docker) · 2026-10 - Fix Apache Invalid command 'RewriteEngine', perhaps misspelled
Invalid command 'RewriteEngine' means mod_rewrite is not loaded. On Ubuntu run a2enmod rewrite and restart; elsewhere uncomment LoadModule rewrite_module.
Apache 2.4.69 (Docker httpd:2.4) · Ubuntu 24.04 apache2 2.4.58 · 2026-10 - Fix Apache AH00072: make_sock: could not bind to address
Apache AH00072 make_sock: could not bind to address: a Listen socket failed. The (98), (99) or (13) prefix means port in use, missing IP or permission.
Apache 2.4.69 (Docker httpd:2.4) · Ubuntu 24.04 apache2 2.4.58 · 2026-10 - Apache AH01114 / AH00957: failed to make connection to backend
Apache AH01114 failed to make connection to backend (AH00957): the proxy could not connect and returned 503. Read the errno, then fix the address and port.
httpd 2.4.69 (Docker) · 2026-10 - Fix Apache AH01071: Got error 'Primary script unknown' (php-fpm)
Apache AH01071 'Primary script unknown': php-fpm found no file at the path Apache sent. Tell a missing .php request from an Apache/FPM path mismatch.
Apache 2.4.69 (Docker httpd:2.4) · PHP-FPM 8.3.36 (Docker) · Ubuntu 24.04 php8.3-fpm 8.3.6 · 2026-10 - Fix Apache AH00124: exceeded the limit of 10 internal redirects
AH00124 "exceeded the limit of 10 internal redirects" means a rewrite loop, such as an .htaccess RewriteRule matching its own output. Add a RewriteCond.
Apache httpd 2.4.69 (Docker) · 2026-10