readthefuckingmanual.net

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

Error added: 2008-01-15 16:56:51

1 person waiting for the answer...

7 answers found.

Answer 1180 (100.0 % helpful)

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)
Permalink

Answer 1181 (100.0 % helpful)

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)
Permalink

Answer 650 (92.30769 % helpful)

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

Answer 964 (87.5 % helpful)

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

Answer 1595 (85.71429 % helpful)

the easier way to do this on debian is:
a2enmod authn_file
apache2ctl graceful
Permalink

Answer 633

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

Answer 862

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.

Permalink

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.


Please enter 61948 here

If you want to be notified via email when this is solved, enter your email address here:


Psst - want to help build a list of common error messages?
Put the following line in your /etc/[r]syslog.conf file:

*.emerg,*.alert,*.crit,*.err       @syslog.readthefuckingmanual.net

Collecting solutions to error messages since Aug 2005. © rtfm 2005-2014