Error added: 2008-01-15 16:56
I fixed this by adding "--enable-auth" at compilation time.
httpd.conf: LoadModule authn_file_module modules/mod_authn_file.so worked for me
Feb 7, 2009; using Gentoo, after merging apache-2.2.11, got this error. I tried manually downloading and installing, but that didn't fix it. I wasn't able to get it to recognize the --enable-auth option. The mod_authn_file.so wasn't present after either the merge or the make install. Fixed it by modifying the ebuild and taking authn_file out of the IUSE_MODULES list, adding it to MODULE_DEFINES, and running ebuild merge --skip-manifest. That produced the external module which I was then able to load in httpd.conf.
I used authn_file flag in APACHE2_MODULES defined in /etc/make.conf. After etc-update my problem was solved.
on Debian, I had to move authn_file.load, auth_basic.load, authz_user.load from /etc/apache2/mods-available to /etc/apache2/mods-enabled then restart the apache (apache2ctl restart)
on Debian, I had to move authn_file.load, auth_basic.load, authz_user.load from /etc/apache2/mods-available to /etc/apache2/mods-enabled then restart the apache (apache2ctl restart)
If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people struggling with this too.
There is 1 person waiting for the answer
If you want to be notified via email when this is solved, enter your email address here:
Hosted on a linuxvps.org Linux Virtual Private Server. Why not get your own?