httpd: Syntax error on line 69 of /usr/local/etc/httpd/httpd.conf: Cannot load lib/httpd/modules/mod_authn_file.so into server: dlopen(/usr/local/opt/httpd/lib/httpd/modules/mod_authn_file.so, 10): image not found
Asked
Active
Viewed 4,226 times
0
-
1Does your system contain a file `/usr/local/opt/httpd/lib/httpd/modules/mod_authn_file.so` ? – jrswgtr Jul 09 '19 at 11:59
-
httpd: Syntax error on line 67 of /usr/local/etc/httpd/httpd.conf: Cannot load lib/httpd/modules/mod_mpm_prefork.so into server: dlopen(/usr/local/opt/httpd/lib/httpd/modules/mod_mpm_prefork.so, 10): image not found.. im getting also this error – Walid Jul 09 '19 at 12:02
1 Answers
2
Your Apache configuration in httpd.conf, line 69 tries to use authn_file mod, which should be defined in the mod_authn_file.so at the location of
/usr/local/opt/httpd/lib/httpd/modules/mod_authn_file.so
You will need to ensure that
- the path is correct
- the file is there
- the file is not corrupted
- the user running the webserver has access to that path
or, if you do not need that mod, then you can switch it off.

Lajos Arpad
- 64,414
- 37
- 100
- 175
-
I have similar problems. Can you help me? https://stackoverflow.com/questions/65141476/why-are-there-some-warnings-when-cross-compiling-apache-httpd-2-4-46 – yanzhang.guo Jan 26 '21 at 10:31