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.
(2)No such file or directory: AH02291: Cannot access directory '/usr/local/apache2/logs/probe/' for main error logAH00014: Configuration check failedRead the directory in the first line. Apache needs it to hold the main error log. AH00014 on the next line reports the outcome of the configuration check.
[1] Resolve the configured filename. The test used ErrorLog logs/probe/error.log. Apache resolves a relative filename against ServerRoot. In the official image the full filename was /usr/local/apache2/logs/probe/error.log. ErrorLog path rules
$ ls -ld /usr/local/apache2/logs /usr/local/apache2/logs/probeIf the message ends in error log of vhost defined at, follow the configuration filename and line number to that virtual host. It can have its own ErrorLog. For distribution-specific locations, see Apache log paths.
[2] Check the spelling and type of the parent directory. Apache looks up the parent and reports AH02291 if the lookup fails or the entry has the wrong type. Here the operating system reported (2)No such file or directory. Correct a typo in the configuration. If a regular file already occupies the intended directory path, confirm where the logs belong before moving anything. Apache 2.4.71 directory check
[3] Create the missing directory if the path is intentional. The first test exited with status 1. From /usr/local/apache2 inside the test container, creating just the parent made the same check pass.
# mkdir logs/probe# httpd -t -c 'ServerName localhost' -c 'ErrorLog logs/probe/error.log'Syntax OKFor a deployed configuration, run the service's normal configuration check. The -c options above supply the test settings. Record the old path before changing it so you can restore and recheck it. After applying the configuration, verify that new log entries reach the intended file.
Analyze your Apache log in the browser ↗ — nothing is uploaded.