readthefuckingmanual.net

[SOLVED] - Invalid command 'AuthUserFile', perhaps misspelled or defined by a module not included in the server configuration

Error added: 2008-01-15 16:56

6 solutions found.

Answer 1:

I fixed this by adding "--enable-auth" at compilation time.

Answer 2:

httpd.conf: LoadModule authn_file_module modules/mod_authn_file.so worked for me

Answer 3:

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.

Answer 4:

I used authn_file flag in APACHE2_MODULES defined in /etc/make.conf. After etc-update my problem was solved.

Answer 5:

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)

Answer 6:

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)

Add an answer/solution

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


Please enter 61948 here

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?

Valid XHTML 1.1